Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Problem with Mapping

Hi,

I have a situation where I want use one occurence of the segment and multiple.

Input

seg1

seg11

field1

seg1

seg11

field1

seg1

seg11

field1

Seg2

......

seg2

....

I have mapped Seg2 to output structure. So I get as much output as there are Seg2.

However I have to refernce field1 from Seg11.

The mapping works if Serg1 and seg2 have the same number of occurences. However if Seg1 is less the mapping fails.

How do I ensure that Field1 I get is always from the first occurence of Seg1 - Seg11

Any help is appreciated.

Thank you

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question