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.