09-14-2015 7:34 PM
Hello,
I have been asked to show a warning to users if they are trying to extend a material using MM01 and the material has a cross plant block (MARA-MSTAE). I am using popup_to_confirm with warning message icon and the options to Proceed or Exit. If the user presses 'Exit' I need to write logic here to get out of MM01 without creating the extended material. I am checking the answer from the popup_to_confirm fm (if lv_ans = 2 i.e. user chose EXIT). I have tried leave to transaction 'MM01' and EXIT. Both of those take me back to the main screen of MM01 but the record was created in the database.
Can anyone help with this?
09-21-2015 10:21 AM
Hi,
please raise a message with exception APPLICATION_ERROR, which is defined in fm EXIT_SAPLMGMU_001. (MESSAGE ... RAISING APPLICATION_ERROR. or simple RAISE APPLICATION_ERROR.)
Regards,
Klaus
09-21-2015 10:21 AM
Hi,
please raise a message with exception APPLICATION_ERROR, which is defined in fm EXIT_SAPLMGMU_001. (MESSAGE ... RAISING APPLICATION_ERROR. or simple RAISE APPLICATION_ERROR.)
Regards,
Klaus