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: 

Give error on Delete Button in Me22

Former Member
0 Kudos

Hi

I want an error stating " No authorization to delete " when a user clicks on Delete Button in Me22. Kindly suggest badi or user exit to do it.Error should come before pop up message of delete confirmation.

Regards,

Parita

3 REPLIES 3

former_member215542
Active Participant
0 Kudos

I feel this can be handled using authorisation check itself. Please consult the option with your functional and security consultant. Perhaps use of authority object M_BEST_BSA could do the trick.

However, with authority object, since the user might have 02 (change) authorisation it might become tricky. If the above doesnt work, you can use methods of BADI ME_PROCESS_PO_CUST to control the behaviour

0 Kudos

Please check the methods - PROCESS_ITEM / CHECK in the BADI - ME_PROCESS_PO_CUST. It may help you.

0 Kudos

This BADI doesnt work. I have made an implicit enhancement in INCLUDE 'MM06EF0O_OKCODE_DELE' and it works.