Hi Elena,
You can use the below function that already exists in SAP.
Trading Partner(VBUND) is used to execute reconciliation in SAP.
Example.
Company 1(VBUND:COM1) and Company 2(VBUND:COM2) are affiliated companies.
<Company 1>
Invoice #001
AR (COM2) / Sales
<Company 2>
Invoice #001
Expense / AP(COM1)
By invoice# the transactions are reconciled. * Matching key can be changed.
Regards,
Kato