1 incoming XML --> to many IDOCs

Question: Hi
The question is how to devide one incoming XML into many IDOCs.
I receive XML files with vendors' master data at BC side and then load master into SAP by means of CREMAS IDOC. Everything is ok, when there is ONE vendor's master by file.
However, when there are several vendors' in one XML (XML IDOC) file, what should I do then? I tried the LOOP step, but it didn't work... Nothing I can find in BC Developer Guide either.


Any help will be very much appreciated!

Leena

Answer:
Hi,

How is you XML file when there is many vendors ???

I think it should be like this:

<vendorfile>
<vendor>
</vendor>
<vendor>
</vendor>
<vendor>
</vendor>
...
</vendorfile>

Good luck
SSII

Answer:
yes, it is, i have something like this:
- <VENDORS>
- <CREMAS03>
- <IDOC BEGIN="1">
+ <EDI_DC40 SEGMENT="1">
+ <E1LFA1M SEGMENT="1">
</IDOC>
</CREMAS03>
- <CREMAS03>
+ <IDOC BEGIN="1">
+ <EDI_DC40 SEGMENT="1">
+ <E1LFA1M SEGMENT="1">
</CREMAS03>
</VENDORS>
But how can I devide it into several idocs in bc? should i use LOOP or?
Copyright ?2007 - 2008 www.jt77.com