09-09-2014 11:04 AM
Hi.
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.
09-15-2014 8:43 AM