on 06-04-2010 8:29 AM
Hi
I've the source like this
Header
2154001 1258
items
123 121 001 900
124 122 001 900
125 123 001 900
126 124 001 900
trailer
BYE-BYE-one
header
2154002 1258
items
123 121 001 900
124 122 002 900
125 123 003 900
trailer
BYE-BYE-two
header
2154003 1258
items
123 121 001 900
124 122 001 900
125 123 001 900
126 124 001 900
123 121 001 900
124 122 001 900
125 123 001 900
126 124 001 900
123 121 001 900
124 122 001 900
125 123 001 900
126 124 001 900
trailers
BYE-BYE-three
MY REQUIREMENT IS
Each header should have ONE item and One trailer.
Regards
S.
hi swarna,
explain in detail with example - what u want at target end as well.
requirement is not clear.
chirag
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Swarna,
That we can achieve throught node function SPLIT BY VALUE:
http://help.sap.com/saphelp_dimp50/helpdata/en/bd/ca1105c81c6742a0f8c8d49f8834bf/content.htm
http://help.sap.com/saphelp_dimp50/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm
Thanks,
Satya Kumar
Dear Swarna,
Youn can achieve with SplitByValue
Use
SplitByValue() is the counterpart to removeContexts(): Instead of deleting a context, you can insert a context change in the source value queue. You then receive this element for each inserted context change instead of a top node element. However, for this to be possible, the top node source field must be assigned a top node target field and minOccursmust be >0. A maximum of minOccurs top node target fields can be inserted here.
You can insert a context change in the queue after each value, after each change to the value, or after each tag without a value.
Please follow the below example:
http://help.sap.com/saphelp_dimp50/helpdata/en/21/3bb8c495125e4eb5969f0377885fe0/content.htm
Thanks,
Satya Kumar
SOURCE AVAILABLE FOR ME
100001 2014
2001 1325 2145 1254
2002 1326 2146 1255
2003 1327 2147 1256
Good-day.
TARGET SHOULD AS FOLLOWS
100001 2014
2001 1325 2145 1254
Good-day
100001 2014
2002 1326 2146 1255
Good-day
100001 2014
2003 1327 2147 1256
Good-day
So, now I need to acheive this target. As suggested by many i cant get my target structure.
Hope my requirement with the above would be very clear to you.
Thanks.
HI,
Map this node values using use one as many to target node.
-
header
100001 ->useoneasmany->splitbyvalue->target
2014->useoneasmany->splitbyvalue->target
-
item
2001->spklitbyvalue->target
1325 ->spklitbyvalue->target
2145->spklitbyvalue->target
1254->spklitbyvalue->target
-
Good-day->useoneasmany->splitbyvalue->target
-
You have to consider contexts accordingly.
hope this helps.
regards,
akshay.
User | Count |
---|---|
79 | |
10 | |
9 | |
7 | |
6 | |
6 | |
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.