on 12-16-2013 4:17 AM
Hi Experts
I have a outbound interface that contains
<get_UserDetails>
<Items>
<id>1</id>
<name>Harish</name>
<age>25</age>
<Items>
<Items>
<id>2</id>
<name>Manish</name>
<age>30</age>
<Items>
</get_UserDetails>
Here depending on the <Items> node I want to generate that many inbound interface instances.
I do not want to use ccBPM. How can I achieve this?
Thanks
Gopal
Hi all,
Thanks for your help.
I am able to fix the issue.
I just updated the ICO and reactivated it.
Now it is working and I am getting multiple output files.
Thanks
Gopal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gopalkrishna,
This is a simple case of multi mapping (1:n). First design your target data type suitably and change the definition of messages as multiple in the target which will give you a message envelope for splitting the message. You can create the message node based on items received from source.
Hope it helps!
Ambrish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ambrish,
I did what you said.
I changed the message mapping. There in the Signature tab, I changed the occurrence of target message to 0..unbounded.
Then the source and target message structure has also changed.
Source Message:
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
<ns1:Iget_UserDetails xmlns:ns1="http:/test/trng/Gopal">
<Items>
<name/>
<id/>
<age/>
</Items>
</ns1:get_UserDetails>
</ns0:Message1>
</ns0:Messages>
Target Message:
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
<ns1:Output_multimap xmlns:ns1="http:/test/trng/Gopal">
<name/>
<id/>
<age/>
</ns1:Output_multimap>
</ns0:Message1>
</ns0:Messages>
I have actually mapped <Items> to <Output_multimap>
then <name> to <name>, <id> to <id> and <age > to <age>
Do I need to map anything else? Please help.
what do I map <Messages> and <Message1> to?
Thanks
Gopal
Dear Gopal,
as ambrish said,your source should be like this.use duplicate substructure option in test tab.
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
<ns1:Iget_UserDetails xmlns:ns1="http:/test/trng/Gopal">
<Items>
<name/>
<id/>
<age/>
</Items>
<Items>
<name/>
<id/>
<age/>
</Items>
</ns1:get_UserDetails>
</ns0:Message1>
</ns0:Messages>
then execute the mapping.
Regards,
Muniyappan.
Hi Gopal,
Refer these blogs for step by step procedure for doing multi mapping without BPM.
http://scn.sap.com/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it-s-possible
Regards,
Pranav
I did the same. But not getting the desired results. My config is FILE to FILE and I am using AAE (ICO).
I am expecting 2 output files when there are 2 items node in the input file.
But getting a single output file containing data as below
<ns0:Messages xmlns:ns0 = "http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1></ns0:Message1>
</ns0:Messages>
I am using PI 7.31.
What am I missing?
Thanks
Gopal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gopal
Use Multi Mapping concept. Many docs can be found in SDN.
Regards
Dheeraj Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
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.