on 06-17-2014 7:39 AM
Hi,
My query is regarding message mapping
Example of source data structure & Target data structure
Source data Structure
<item>
--<no>1</no>
--<address/>
--<ITEMS>
----<item>
------<Name>a</Name>
----<item>
------<Name>b</Name>
<item>
--<no>2</no>
--<address/>
--<ITEMS>
----<item>
------<Name>c</Name>
----<item>
------<Name>d</Name>
Expected Target data structure
<Item>
-- <no>1</no>
-- <name>a</name>
<Item>
-- <no>1</no>
-- <name>b</name>
<Item>
-- <no>2</no>
-- <name>c</name>
<Item>
-- <no>2</no>
-- <name>d</name>
How I can map the '<no>' field to target '<no>' field to repeat value until to second sub item level occurance complete ?
Thank you
Sateesh
Hi Sateesh,
Please see the solution below.
The are 2 contect changes you need to do on field level. Right click and go to context and select your context you need.
Context on ITEMS - Should be on Root Structure(In my mapping it is MT_Multiple_Item_Level_Source)
Context on Name - Should be on Item (The first Item Tag)
Good Luck.
Regards,
Jannus Botha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vikas,
Yeah i didnt design it like that but it is a easy fix. But it doesnt make sense to have multiple under both structures.
So instead of mapping <ITEMS> to target <item>. You will map <item> to target <item> with the same context changes.
And also instead of mapping <ITEMS> to useAsMany you will now use <item> source. With the same context.
Please see my results in the screenshot.
Regards,
Jannus Botha
Hi Sateesh,
You can use "useoneasmany" function for that
check below for more:
useOneAsMany (SAP Library - Partner Connectivity Kit)
Regards
GB
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
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.