on 04-19-2012 9:29 AM
Hi Folks,
I am working on SOAP to RFC scenerio . It is synchronous scenerio.
My mapping structure is
HEADER_IN
Datatype
salesorg
division
distrchannel
ITEM_IN
item
ITM_NUMBER
MATERIAL
TARGET QTY
PARTNERS
item
PARTN_ROLE
PARTN_NUMB
CONDITIONS_IN
item
ITM_NUMBER
COND_TYPE
COND_VALUE
In this structure if i pass 1 record it is successfully creating sales document no..My BAPI is the custom one need to create quotation contract.
In this structure i wanted to SEND data twice in ITEM_IN and CONDITIONS_IN TWICE ...
how to do mapping for this...
Regards
Kalyan
Hi,
In Message Mapping, right-click the ITEM_IN node and choose Duplicate Subtree, then provide the mapping for both "copies" of the node. Do the same for CONDITIONS_IN and you're done. You can even have different mappings for both copies, if that is required .
Hope this helps,
Greg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, it's not the test tab, but the Definition tab, and not source message, but the target message, where you should duplicate the subtree. Then you define the mapping for both "copies" normally. See the screenshot below:
Just confirm that I got the requirement correctly: for each item in source message, you want two items in the target message, is that right?
Regards,
Greg
okay ...so Grzegorz Glowacki logic is working fine that is only one chance to repeat the values in target side
One more important thing: do not duplicate ITEM_IN (as it has occurrence 1..1, as mentioned by Bhavani Sankar ), but rather duplicate the "item" subnode of it. Then you should see the result as expected. Also do the same in the mapping: as of your structure, you want to create multiple item nodes, that are all collected in one ITEM_IN node.
Regards,
Greg
User | Count |
---|---|
87 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.