cancel
Showing results for 
Search instead for 
Did you mean: 

How to create lineitems?

Former Member
0 Kudos

Hi Users,

My source structure is

<Start>

<First>

</pos>

</hip>

</chr>

</FIRST>

</Start>

My Target structure is

<Root>

<shipment>

</value1>

</value2>

<LineItem>

</L1>

</L2>

</LineItem>

</Shipment>

</Root>

Source Test data :First one

<Start>

<First>

<POS>10</POS>

</FIRST>

<First>

<POS>20</POS>

</FIRST>

<First>

<POS>90000</POS>

<HIP>10</HIP>

<Chr>101</Chr>

</FIRST>

<First>

<POS>90001</POS>

<HIP>20</HIP>

<Chr>102</Chr>

</FIRST>

</Start>

Source Test data :First one

<Start>

<First>

<POS>10</POS>

</FIRST>

<First>

<POS>20</POS>

</FIRST>

<First>

<POS>90000</POS>

<HIP>10</HIP>

<Chrg>101</Chr>

</FIRST>

<First>

<POS>90001</POS>

<HIP>20</HIP>

<Chr>102</Chr>

</FIRST>

</Start>

Source Test data :Second one

<Start>

<First>

<POS>10</POS>

<Chr>101</Chr>

</FIRST>

<First>

<POS>20</POS>

<Chr>102</Chr>

</FIRST>

</Start>

As per first test data LineItem is created based on HIP values .

As per the Second test data LineItem is created based on Chr value, if no HIP values in whole test data.

Accepted Solutions (0)

Answers (1)

Answers (1)

monicabhosale
Active Participant
0 Kudos

Hello,

Can you please wrote down here your expected target structure based on this two test cases..it will helpus to understand your clear requirement.

you can do this using ifelse condition but i did not get clear idea of your requirement so please provide us so we can give you proper solution.

Monica

Former Member
0 Kudos

Yes, based on the two test cases i need to create LineItem segment in target. some times i will not get HIP values then i need to consider chr value,based on char value i have to create LineItems. otherwise based on HIP values i need to create LineItems.

former_member191435
Contributor
0 Kudos

Hi,

Can you please paste the required target structure....

Thanks,

Enivass