IDOC Segment Complexity
Posted: Thu Jul 26, 2007 5:53 pm
Hi All
I am doing a job to load into SAP system using an IDOC. The logic is very complex. I am sending the data one to one into all the SAP IDOC's, I do not have any kind of error while loading also. But there is one SAP IDOC Segment which is suppose to store 4/5 values for each primary key column. It works like one column from legacy has many values in SAP. If I load each record seperately I end up overwriting the last one leaving only one record in SAP but actually should show up 4/5 records with that common column called CLASS. Please how do I load a data into SAP with one record with many values into the same segment without overwriting it.
Example:
If I load like the following, SAP overwrites the last record and I only get to see "MATCH" in SAP. But I need to have all three SET, GAME and MATCH in multiple fields.
CLASS | ATNAM
Abrasive | SET
Abrasive | GAME
Abrasive | MATCH
I am suppose to load like the following to the IDOC, to make the load properly
CLASS | ATNAM
Abrasive | SET
GAME
MATCH
Both the columns are coming from the same table. Please suggest how can this be done.
I am doing a job to load into SAP system using an IDOC. The logic is very complex. I am sending the data one to one into all the SAP IDOC's, I do not have any kind of error while loading also. But there is one SAP IDOC Segment which is suppose to store 4/5 values for each primary key column. It works like one column from legacy has many values in SAP. If I load each record seperately I end up overwriting the last one leaving only one record in SAP but actually should show up 4/5 records with that common column called CLASS. Please how do I load a data into SAP with one record with many values into the same segment without overwriting it.
Example:
If I load like the following, SAP overwrites the last record and I only get to see "MATCH" in SAP. But I need to have all three SET, GAME and MATCH in multiple fields.
CLASS | ATNAM
Abrasive | SET
Abrasive | GAME
Abrasive | MATCH
I am suppose to load like the following to the IDOC, to make the load properly
CLASS | ATNAM
Abrasive | SET
GAME
MATCH
Both the columns are coming from the same table. Please suggest how can this be done.