‎2007 Jan 15 9:45 AM
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
‎2007 Jan 15 9:55 AM
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.
‎2007 Jan 15 9:56 AM
Yes, you need to code in CHAIN...ENDCHAIN. Check in the internal table, if the value already exists then display the error message.