I have genereated a table maintenance for a custom table and maintaining values using the table maintenance.
The below code is quto generated.
INSERT ZCSC_EAP_BTI .
When I check in debug it returns sy-subrc = 4. But the values are not in the table.
What can be issue.
<b>Insert (into database) is valid in this format, but obsolete</b>
Read the ABAP help for the keyword INSERT, and you'll see that sy-subrc = 4 means:
<i>At least one row could not be inserted, because the database table already contains a row with the same primary key or a unique secondary index.</i>
You should be able to use UPDATE rather than INSERT. Or just use MODIFY.
matt
Hi,
Try like this
INSERT INTO dbtab VALUES dbtab. OR
INSERT INTO scustom VALUES wa
Regards,
Prashant
Add a comment