Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

EXIT needed to be executed only while posting in MIR4


I  used INVOICE_UPDATE (BAdi) to perform additional tasks while saving the document in MIR4.

It worked fine, however the requirement is now more restricted - the execution of code should only take place while posting the document (not while saving partially /fully but only while posting). This is when the sy-ucomm = 'BU'.

But after pressing the posting button (sy-ucomm = 'BU') there are some popups, that change the value of sy-ucomm , so in my BADI - i already don't know what sy-ucomm was.

I tried with transporting this sy-ucomm value to memory in "first" badi, but I'll never be sure if there was any popup before.

Maybe this is not the best way to achieve the point. If you know the better one - please let me know or if not please help to improve my way.

Thank You, Lukas.

Former Member
Not what you were looking for? View more on this topic or Ask a question