Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

EXIT needed to be executed only while posting in MIR4

0 Kudos

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.

1 REPLY 1

0 Kudos

SOLVED.