cancel
Showing results for 
Search instead for 
Did you mean: 

FILE TO MULTIPLE IDOC QUERY

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Shabarish_Nair
Active Contributor
0 Kudos

use splitbyvalue standard function for the fields that need to go into different IDocs

Former Member
0 Kudos

No Here the issue is that in idoc only for the first idoc the batch segment gets populated and for other idocs the batch segment is blank

Shabarish_Nair
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

would you please specify what you mean by

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

I am new to XI, so bit struggling with it.

Answers (0)