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

How to Avoid duplicate entry input in table control

Former Member
0 Likes
1,210

I just create a table control on screen with an internal tablefor data maintaining, there are some fields, but the first column fields must be different, that's there can't be 2 records with same first column value.

Is this any way to special in tabel control to avoid this when the second is input?

Or I have to make validate between CHAIN..ENDCHAIN to check one by one, if so, how to make a very effective way?!

Thanks

2 REPLIES 2
Read only

Former Member
0 Likes
392

Leo,

You can Maintain this validation at internal table level.

Say you are moving ITAB values to table control.

SORT ITAB BY Col1 .

DELETE ADJACENT DUPLICATES FROM TABLE ITAB1

COMPARING col1 .

This code will work for your requirement.

Pls. reward if useful.

Read only

Former Member
0 Likes
392

Yes, you need to code in CHAIN...ENDCHAIN. Check in the internal table, if the value already exists then display the error message.