cancel
Showing results for 
Search instead for 
Did you mean: 

creating multiple segments form one segment (FILE to IDOC)

Former Member
0 Kudos

hai iam using MATMAS for file to idoc

in this file iam getting multiple storage locations

in the field LGORT.

LGORT field value is like this

aa,bb,cc,.........like that i will get n number of storage locations

i need to split this in to separate and create multiple segments based on storage locations.

how can i do this

my in put is like this

<seg>

<name>xyz</name>

<LGORT>aa,bb,cc</LGORT>

</seg>

required output is :

<<seg>

<name>xyz</name>

<LGORT>aa</LGORT>

</seg>

<seg>

<name>xyz</name>

<LGORT>bb</LGORT>

</seg>

<seg><name>xyz</name>

<LGORT>cc</LGORT>

</seg>

iam getting like this :

<seg><name>xyz</name>

<LGORT>aa</LGORT>

<LGORT>bb</LGORT>

<LGORT>cc</LGORT>

</seg>

can any body help me pls

Edited by: srikanth vipparla on Feb 13, 2008 7:36 AM

Accepted Solutions (1)

Accepted Solutions (1)

former_member859847
Active Contributor
0 Kudos

Hi Srikanth,

please use node function Splitbyvalue for your requirement.

i hope you know the importance of Splitbyvalue.

once you right click on that, you have conext change option..etc

if you find any difficulty, please let us know...

Regards

mahesh.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Srikanth,

What you can do is map seg with LGORT using Use One as many.

And also apply Split By Value to LGORT when mapping it with its target counterpart.

See if this works.

Regards,

Lavita.

Do reward points if the information is useful.

Thanks!

Former Member
0 Kudos

hai friends

thank you very much

my problem is solved with split by value function

mvery much thank full to mahesh and Lavita Khilnani .

and pls give me ur mail id

pls send the test mail to my mail id : srikanth.vipparla@relianceada.com.

with regards

srikanth vipparla

Former Member
0 Kudos

Hi,

Use Node functions for your requirement

Node Functions

http://help.sap.com/saphelp_nw04s/helpdata/en/2c/2d8c4024d26e1de10000000a1550b0/frameset.htm

Regards

Seshagiri