In vendor master control data, provide customer No.
In customer master control data, provide vendor No
In customer master - company code data-Payment Transaction- activate Clearing with Vendor
In Vendor master -payment transactions accounting-activate Clearing with Customer
table that links customer and vendor is KLPA.