Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

FILE TO MULTIPLE IDOC QUERY

Hi,

I have a file (PO details)from which i create multiple idoc. The structure of file and idoc is as follows

--BATCH

---HEADER

-


ITEM

--/BATCH

IDOC IS

--IDOC

---BATCH

-


HEADER

-


ITEM

now in order to get multiple idoc from the file structure i changed the idoc segment cardanility to 0-unbounded and mapped

HEADER of file to IDOC node of idoc so that idoc gets created for each header,

my requirement is that for each idoc

1) the batch segment should also get populated

2) there is a feild batchid in the batch of file value of that feild should be populated in one of the header feilds

Presently suppose the file has 10 POs, then it creates 10 IDOCS where in only the first idoc has the batch segment populated and the header of first idoc has batch id populated , rest 9 IDOCS the batch segment is blank and even i am not getting the batchid value in the header.

Edited by: Sudhakar Gongloor on Jun 21, 2010 4:12 PM

Former Member
replied

exactly.

so in your case if source field A has 5 values and you need there values to go into 5 IDocs, you will use

Source field A -> Split by value -> Idoc field

Also note that you will have to similarly maintain a context mapping for the parent node of the target field.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question