Skip to Content
0
Former Member
Jan 17, 2006 at 07:54 PM

Split mapping

25 Views

hi all ,

i am trying to do a advanced user defined java mapping:

my source structure is

<header>

sap order no

customer No

name

address

city

state

zipcode

<lineItem>

lineitemid

codevalue

make

model

my target structure is

<Msg 1>

sap order no

cutomer No

flag1

flag2

flag3

flag4

flag5

here, in the source the header occurs only once, the line item occurs multiple times. one to five times. all i am trying to do is this particular element "code value" . i have to count the no of occuerences of this node, save the value at each occurence and split each value. example the 1st occurenece can have A , 2nd occurence can have B third occurence can again be A. so let say the values are A B and A. i have to count the occurences, store the value at each occurence and split the value. so that i can map 1st time occurence (A) to flag 1, (B) to flag 2 and (A) to flag 3 and so on...

can somebody please provide me any suggestions???