Disable delete button or not allow deletion on SM30 SAP ABAP
We need not allow delete rows of a table maintenance from SM30, some people solve this by removing delete button from SM30 and other using Authorization object for restring deletion permisson.
We are going to show yo how you can do using events on SM30.
Events SM30
I will restrict the user so that he cannot delete information when he press delete button.
Step one, go to SE11, put table name and press Modify Button:
After this going to: Utilities -> Table Maintenance Generator.
On next screen go to: Environmet -> Modification -> Events
On next screen press new entries:
Press matchcode of fitst column and select Before deleting:
Insert any name (as you prefer will call your routine) and press Editor button.
And on next screen I have put this :
Now, save and activate and go to SM30 to test if system allows you delete any record.
I hope this help you, if you have any question or comment please let me know in comments section.
Leave a Reply