‎2011 Jan 30 7:53 AM
Hi,
Im new to table control and have some doubt about it. Hope everyone can provide some advise.
1) In SM30, user may do deletion to the particular record..
I would like to add in the validation check if this record is being used in some others table. If yes, error message will display and disallow for deletion for this records. (eg: XX is being used, cant do deletion)
How can I Identify what record user perform delete in SM30? I did add the w/selcolumn in my table control.
(eg: VIM_MARKED). I did debug the program and doesnt see any value assign to VIM_MARKED.
2) Check duplicate data in SM30.
- When user perform update/ insert -> program will do the checking if these values are already exist either in this table database or in the table control screen. How do I do the coding to perform checking on this?
Process After Input
Loop extract.
chain
field 1
field 2
Module f_validate_duplicate <- my code insert here
endchain
endloop.
‎2011 Feb 01 10:52 AM
hi,
Write ur code in side condition when sy-ucomm is set for delete.