The clearing between the customer and vendor can happen by following the below settings
1. The customer number must be entered in the corresponding vendor master record
a. FK02->General Data -> Control
In the ‘Account control’ tab, in the ‘Customer’ field, enter the customer number
b.In the Company Code Data –> Payment Transaction Accounting, select the checkbox – ‘Clrg with Cust’
note:If you do not fill ‘Customer’ field ,the ‘Clrg with Cust’ field can not display.