cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding Useone as many

Former Member
0 Kudos

Hi SDN,

I have a scenario(File to IDOC) in which i have to fill message code of control record as follows.

EDIDC->MESCOD (01)

Source file structure

<Header> -(1unbounded)

<Seg1> --(1-unbounded)

<Subseg1> --(1-1)

<Field1> ---(0-1)

<Seg2> ---(1-unbounded)

<Subseg2>--(1-1)

<Seg3>--(0-unbounded)

<Subseg3> (1-1)

<abc>(0-1)

<field2>(1-1)

Mapping rule for MESCOD is

field2='abc' then field1 has to map to mescod.

initially i did mapping with simple if condition with equals .

while testing mapping in the test tab i have given field2 value as abc in first occurance then output mescode is generating.

if i duplicate seg3 and give the field2 value in the second occurance then no value is coming to output field mescode.

and more over field1 occurance is 0-1 if no value is there in first occurance then there may be value in the second occurance of segment1 as it is unbounded.

i tried with use one as many but still i am not getting output in all cases.

can any one help me on this?

Thanks

Mansoor

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

HI,

Just refer the below help:

http://help.sap.com/saphelp_nw04/helpdata/en/ef/df564b6aa24fc9ab0d685460747de5/content.htm

Check what is wrong u have done.

Thnx

Chirag

Former Member
0 Kudos

Thanks for the qucik reply chirag.

i know that link and still i am not getting output.

is there any udf required?

Thanks,

Mansoor