on 08-23-2019 4:46 PM
Hi all,
I'm trying to find the proper Badi/user-exit to accomplish the following:
In ME55 after user selected one or all requisitions for release and press "Save Release" button I need to send pop-up message to confirm (like "Are you sure that you want to release the above requisitions?" If answer is "Yes" the release process should continue, if the answer is "No" it stops (do nothing).
I've tried Badi ME_REQ_POSTED method POSTED but if I put exit inside in case answer is "No" it doesn't work, it will continue to commit and don't see how to stop it.
method IF_EX_ME_REQ_POSTED~POSTED
if sy-tcode = 'ME55'.
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
TITLEBAR = TITEL
DIAGNOSE_OBJECT = 'TEXT1_ZUM_POPUP_TO_CONFIRM'
TEXT_QUESTION = TEXT_FRAGE
display_cancel_button = space
IMPORTING
ANSWER = ANSWER
EXCEPTIONS
OTHERS = 1.
if ANSWER = 2.
exit. "No release.
endif.
endif.
endmethod.
Some postings suggested to use EXIT_SAPLEBND_001, which is not triggered in my case.
I would appreciate your help.
Thanks,
Sasha
User | Count |
---|---|
100 | |
11 | |
10 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.