Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8594

Table maintenance events - Deleting the entries

$
0
0

Hi Experts,

 

My table has a field called 'LOCNO'. I want to write an event to make sure the table entry is not deleted when the value of LOCNO is 'Z001'.

For this I wrote a an EVENT 03 with following code block.

 

 

IF zmpts_minmax_rul-locno = 'Z001'.
   
MESSAGE 'default row cannot be deleted, please change the values if necessary ' TYPE 'E'.
   
CLEAR zmpts_minmax_rul.
 
ENDIF.

 

But I observed that the value of zmpts_minmax_rul-locno will always be the value of LOCNO in the last row of the table. I want zmpts_minmax_rul-locno to be populated with the entry choosen for deletion.

 

Please help.


Viewing all articles
Browse latest Browse all 8594

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>