Skip to Content
0
Former Member
Dec 22, 2003 at 02:28 PM

SplitByValue Function with IDoc structure

47 Views

Hi,

I have an interface where I am trying to create IDocs directly from XI using a Message Mapping (without Java, XSLT, etc.). My input file has a flat structure (including a store field), and the IDoc structure is as follows:

ZSC_DELVRY03 ....................(1)

-


IDOC .................................(1)

-


EDI_DC40 ......................(1)

-


E1EDL20 .......................(1-9999) .......Delivery Header

-


ZSC_E1EDL20_ADD....(0-1) ............Extension on header Level

-


E1EDL24....................(0-99999)......Delivery Item

I need to create a new E1EDL20 (Header) segment for each store (on change of store in the input file, which is sorted). I have been able to split the file by store using the Standard Function SplitByValue on the store field, however there is a problem.

In the XI mapping documentation it says that a maximum of min occurs target fields(structures) can be created using SplitByValue. Therefore, since the E1EDL20 Segment has min occurs = max occurs = 1, only the first E1EDL20 segment for the first store is created.

Has anyone found a way round this? Is there any way of changing the XSD definition for the Idoc in XI?

Thanks,

--Lee Tomlinson