You can regroup your receivable/payable through following path;
SPRO > Financial Accounting > Accounts Receivable and Accounts Payable > Business Transactions > Closing > Regroup > Define sort method and adjustment accounts for regrouping receivables/payables
Through this configuration your regroup the credit balance in accounts receivable and debit balance in accounts payable.
In the overview of added entries screen you nee to enter the interval name and a description for it.
Now select that group and double click on receivables and click on new entries. Enter your selection based on the regrouping you have decided and save it. click on account and update the adjustment account and target account against your reconciliation account.
Go back to the initial screen and by selecting the group you have created double click on payables. Same way you update the adjustment account and target account against your reconciliation account and save it.