Skip to Content
avatar image
Former Member

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jun 21, 2010 at 02:24 PM

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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Shabarish V Nair

      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.