on 12-08-2009 7:58 PM
Hello,
I am receiving data in an XML file, where are several records, and i want each such record to produce a singe IDoc.
I know it can be done using graphical mapping, but i need to use a java program to convert the data. Is there a way to do this?
Thanks in advance,
Gershon.
Example:
Source
<file>
<record>
Some data 1
</record>
<record>
Some data 2
</record>
</file>
||
Java mapping program
||
\/
Target
<idoc>
Some data 1
</idoc>
And
<idoc>
Some data 2
</idoc>
Thanks, but i know that.
What i want to know is, what the output XML has to be, to create multiple idocs from a single message?
Regards,
Gershon
Edited by: Gershon Osmolovski on Dec 9, 2009 8:00 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it can be as specified in the blog
It works with the graphical mapping, but when i try to use java, i recieve an error message in the queue saying
*Comparison error during execution of a simple *.
I found no info on this message, and i cannot even see the whole message.
Regards,
Gershon.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Yu can genarate multiple message for one single message,but it depends on how you are going to write logic in JAVA Mapping.
I had done different requirement genarating multiple message for one CIDX message.
check you logic once again and debug in NWDS.it will defineltly works,no need to add split merge name space also...
Regards,
Raj
Thanks, can you expain some more please?
Regards,
Gershon.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can easily use a SAX parser to parse the input xml and create your target XML IDoc
http://wiki.sdn.sap.com/wiki/display/Snippets/FILEtoIDOCusingJava+Mapping
http://wiki.sdn.sap.com/wiki/display/XI/JavaMappingConcepts%28DOMand+SAX%29
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.