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: 

Events in Table Maintenence-for marking Deletion Flg when deleting frm SM30

RahulKeshav
Active Contributor
0 Kudos

Hi All,

I am tring to create a table maintenence.

In my table we have a field Deletion flag....

and as user hit delete in SM30 ..the record should not get delete ..but should mark the Deletion flag...

I am tring to use Events in the maintenence but didnt find this functionality..

Please suggest....

I dont want to use module program...

Thanks

RK

6 REPLIES 6

kesavadas_thekkillath
Active Contributor
0 Kudos

HI,

Another option, You can place a check box in the field i guess, or give a list box ....

Let the user mark the required entries and save it.

0 Kudos

thnx for reply.....

but if user select the perticular field as check box.....then what will happen to the Delete botton...in txn SM30...how to remove it....

thnx

RK

0 Kudos

Hi,

refer below link you will get idea to hide delete button from TMG screen

0 Kudos

Create a maintenance view and i think in the maintenance type of the view you can restrict the delete functionality.

Or in any of the events you can trigger the message when delete button is used.

nirajgadre
Active Contributor
0 Kudos

Hi,

Try to add your own module in the begining of the PAI event the your table maintenance generator.

Put the check on the OK_CODE aand when OK_CODE = 'DELE'. try to update your table with deletion flag indicator.

0 Kudos

In future what if the maintenance is regenerated, then it will create a problem.

Its better not to add any custom code in the flow logic.