Skip to Content
0
Former Member
Dec 27, 2007 at 04:57 PM

Regarding Useone as many

28 Views

Hi SDN,

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

EDIDC ->MESCOD (0 1)

Source file structure

<Header> -(1 unbounded)

<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