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: 

In tables if i delete any record delete_flag should set to 'x'

Former Member
0 Kudos

In tables if i delete any record delete_flag should set to 'x' and the record should be saved, displaying the message 'Entry deleted'.

Do u have any sample code or module written in table maintainance for this.

please help me with it.

2 REPLIES 2

Former Member
0 Kudos

Hi

This is what SAP follows, for example

When you delete an item in a PO it simply marks that record as deleted by setting the field LOEKZ = 'X'. It wont delete that record from the table

similar case with most of the transaction tables in SAP.

Programatically also you can modify that record by setting the field = 'X' in the respective table.

Reward points for useful Answers

Regards

Anji

0 Kudos

I have created an event 03 (before deletion) and set delete_flag = 'x' but i could neither save the value x in that field nor avoid from deleting.

Do u have any sample code to achieve it Anji.