FM to create offseting entry to an Accounting Document
I have a requirement that I need to post an offseting entry to an accounting document that is already posted. The functionality is exactly like the entry that gets created during the original document's reversal. I need all the information including exchange rate to be the same as that of the original document. But what got debited in the original doc. should be credited in the new doc. and vice versa.
Is there any Function Module , BAPI available with which I can achieve this ?