Hi all,
Through MIRO we are posting Invoice. After entering the data when we click on SAVE button the Invoice gets posted. When can check the document in MIR4 or in
MIRO(Invoice Document->display).
When we display the Invoice Document and click on "follow on document" to goto Accounting Document.
then Accounting entry is displayed for that Invoice.
In the Debit Entry the Reference field will be either Purchase Order Number or Reference Number which we gave during Invoice posting.
Now my requirement is to change the Purchase Order Number or Reference Number with Delivery Note Number.
I found one BADI for that. INVOICE_UPDATE. In this BADI there are 3 methods.
1. ON_SAVE
2. BEFORE_UPDATE
3. DURING_UPDATE.
I tried to changes the value in runtime after the ON_SAVE & BEFORE_UPDATE methods (with out implementing the methods). Its not working.
The Other method DURING_UPDATE is called within the FM (MRM_INVOICE_DOCUMENT_POST)
but this FM is called in the program with UPDATE TASK addition.
Ex: Call Function 'MRM_INVOICE_DOCUMENT_POST' UPDATE TASK.
and in debugging mode the control is not entering into this FM.
Can anybody tell me where i can change the PO/Reference No to Delivery Note Number before posting.
Thanks