on 06-15-2007 6:56 AM
I am having a complete XML in one source field and now I want to assign fields from that field to IDOC fields , can anybody give me suggestion for how to do this.
Regards,
keith
>>I am having a complete XML in one source field
How did you manage this? This is not possible in standard.
Do you have the input like
<b><?xml version="1.0" encoding="utf-8" ?>
<ns:MT_File xmlns:ns="http://sap.com">
<a>
<?xml version="1.0" encoding="utf-8" ?>
complete idoc in XML tags...
</a>
</ns:MT_File></b>
If this is the case, then the input is <b>not a valid XML</b>.
To solve this, you need to go for Java/ABAP mapping and create the XML structure. Msg mapping can not be applied here.
Regards,
Jai Shankar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello ,
Thanks everyone for all replies .
My source stucture will be :
Messagetypename
InFile(this will have complete XML file as a string)
/Messagetype
Can u people please suggest me how can I go for a java mapping . is it possible to ignore the first XML header which I will be getting .
Regards,
Keith
Hi,
if i understand correctly, u want to map the fields from a file to idoc fields.
ifso, create a datatype in IR with the fields of idoc, import the corresponding idoc to IR, in message mapping do one to one mapping. do ID configuration accordingly.
while testing the scenario give this xml file as input.
Ravi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
there is one more option create a UDF and in that UDF separate the source string into various golobal container fields as per your requirement .Now Call this UDF for mapping first field in your target node . And for second node onwards you can directly refer to the global container where you have stored the values .
Thanks ,
Suvarna
Award pts if it helps .
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.