cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP to RFC message duplication records

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member184681
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Greg,

I had done already what you said...But it is taking only one record...

So any node functions has to use for this?

Regards

Kalyan

former_member184681
Active Contributor
0 Kudos

What do you mean by "it is taking only one record"? Maybe the max occurrence of the respective nodes is set to 1? Or you have to manipulate the contexts in the mapping?

Former Member
0 Kudos

max occurrence of the respective nodes is set to 0:unbounded for items and conditions..

In mapping Test tab i created duplicate subtree for both and pass the values

But its creating one record..

Regards

Kalyan

Former Member
0 Kudos

is there any field / structure repeats 2 times in source structure ?

Former Member
0 Kudos

Hi Bhavani,

is there any field / structure repeats 2 times in source structure ?

No..

former_member184681
Active Contributor
0 Kudos

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

Former Member
0 Kudos

okay ...so 

Former Member
0 Kudos

Please check this mapping and suggest where i have to create mapping for this...

Former Member
0 Kudos

You can check the data when i send from test tab....

Former Member
0 Kudos

hi kalyan,

on defintion tab,  in target structuer , have to select " ITEM_IN node" then selct right click and select "Duplicate subtree " after u map the fileds from source structure to target structure whatever u need.

Former Member
0 Kudos

HI Bhavani,

Even i tried the same thing in target side,i created duplicate subtree in target side for both and done mappings...

But no use..same 1 record only...

😞

former_member184681
Active Contributor
0 Kudos

Then definitely it is a matter of the mapping itself. Make sure you have set contexts properly.

Regards,

Greg

former_member184681
Active Contributor
0 Kudos

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

Former Member
0 Kudos

SORRY kalyan.. just u have to use duplicate subtree for item in node "item_in  if u required multiple records in node .

Former Member
0 Kudos

Hi Greg and Bhavani,

Its working now 🙂

Thank you very much.

Regards

Kalyan

Answers (0)