Application Development and Automation 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: 
Read only

Check value in table control

Former Member
0 Likes
516

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.

1 REPLY 1
Read only

Former Member
0 Likes
340

hi,

Write ur code in side condition when sy-ucomm is set for delete.