on 12-02-2008 11:21 AM
Hi Guys,
Scenario : Idoc --> JDBC (Should Insert into two Oracle DBs)
Used multimapping for this and configured the scenario (Enhanced Interface Determination)
But i get a mapping error because : IDOC imported donot have the Element "message1"
which got reflected when i said my Target Interface is Two Messages.
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
<ZIDOCPLANORDER>
<IDOC BEGIN="">
<EDI_DC40 SEGMENT="">
Actual Should be
<?xml version="1.0" encoding="UTF-8"?>
<ZIDOCPLANORDER>
<IDOC BEGIN="">
<EDI_DC40 SEGMENT="">
<TABNAM/>
<MANDT/>
<DOCNUM/>
<DOCREL/>
how to Achieve this advice please
regards
srinivas
Hello,
I'm guessing that you are getting mapping errors when using the test tab. You need to edit your IDOC (in XML form) in order to test it. Use notepad in editing the IDOC, add the following tags:
1. after <?xml version="1.0" encoding="utf-8"?> add the tag <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge"> <ns0:Message1>
2. scroll down to the end of your message and add this tag: </ns0:Message1></ns0:Messages>
Save the message as XML.
This should work when you are testing your messages in Integration Repository only. When the actual scenario is needed (runtime), there is no need to add the tags in your IDOC.
Hope this helps,
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
when you use the multi mapping feature in graphical maps then it adds the two additional XML tag which you have pasted above and it expects the structure to appear in that way, so create an dummy map as the first map in the interface mapping which will just pass the IDOC the way it is to second map or by additing the XML tag which you mentioned above.
Graphical maps will validate the incoming XML structure with the XML structure you mentioned in the Message Mapping so it is throwing you error in runtime.
Hi,
Try to delete the metadata and run the scenario first and check.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI
When you are trying to do multmapping you will get Messages as header and it will create one more header to the IDOC metadata while executing mapping. There is no option to avoud Messages and Message1 field while doing multimapping.
You can do Java or ABAP mapping and can generate the target
Thanks
Gaurav
Hi Srini,
<<<Scenario : Idoc --> JDBC>>>
Your target is JDBC, right? So in that case you dont have to change the idoc structure.
Also can you provide the exact error and more info about ur scenario, so that it will be easier to trace the exact error.
Thanks and Regards,
Sanjeev.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any Inputs
Srini
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.