2023 Mar 27 12:03 PM
Hi everyone
Please assist how to write the code to check if the information already exists in the table.
example: if I repeat (Material field) the program has to throw the error indicating that this has already been captured
Thanks
2023 Mar 27 12:25 PM
Hi,
to be sure to have unique keys in your records,
why not using a hashtable with uniq key?
insert wa into lth_table ..
sy-subrc is <> 0 when the record already exists with the same key