cancel
Showing results for 
Search instead for 
Did you mean: 

ME55 Badi/user-exit to stop or continue release of Requisition depending on user's answer

sasha_b1
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (0)