2020 Jan 09 4:01 PM
iNSERT itab FROM wa_structure .
why it won't put me on "accepting duplicate keys" ?
how do I hang the data to the table without deleting the already present ones and accepting the duplicates?
iNSERT itab FROM wa_structure .
why it won't put me on "accepting duplicate keys" ?
how do I hang the data to the table without deleting the already present ones and accepting the duplicates?
2020 Jan 09 4:10 PM
Because it's only for INSERT ... FROM TABLE ... ACCEPTING DUPLICATE KEYS, as explained in the documentation.
Hang?
2020 Jan 09 4:24 PM
so what instruction should I use to be able to add data to the custom database by accepting duplicate keys?
2020 Jan 09 4:29 PM
Don't you think that inserting a structure and inserting an internal table of one line is the same thing?
Note that INSERT itab FROM wa_structure will return SY-SUBRC = 4 if the line already exists (considering the primary key only).
I'm not sure what you want to achieve, and if you understand exactly what means the option "ACCEPTING DUPLICATE KEYS".
What means "hang" in the context of database updates?
2020 Jan 13 9:05 AM
2020 Jan 13 10:44 AM
Hi,
You can not insert a duplicate key in the table.
Please go through the concept of "Primary Key" which should accept only "unique & not null" values.
you can have duplicate entries only when there is no key fields defined.
2020 Jan 13 10:24 PM
Change internal table and workarea definitions, to add a new field (column) to each, which will make each row unique (no duplicate keys), such as POSNR or so.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |