cancel
Showing results for 
Search instead for 
Did you mean: 

Loop in Mapping data

Former Member
0 Kudos

Hi All,

I have a mapping scenario like below,

Source Data

Storage Location1

ItemA

ItemB

ItemC

Storage Location2

ItemA

ItemD

ItemE

Storage Location3

ItemD

ItemE

Target Data

ItemA

StorageLocation1

StorageLocation2

ItemB

StorageLocation1

ItemC

StorageLocation1

ItemD

StorageLocation2

StorageLocation3

ItemE

StorageLocation2

StorageLocation3

I have to convert the source data into the target data given. I come to know it can be done with ABAP mapping....There are actually 2 loops like this in my mapping scenario...so donno how to do this mapping...do any one have this kind of mapping scenario ....do suggest me...

Pls. let me know if this is not clear.

Thanks

Giridhar Kommisetty

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member214364
Active Contributor
0 Kudos

Hi Giridhar,

I didnt understand your mapping rules, i mean on what basis you are repeating SorageLocation and Items.

Could you please explain your requirement with more details.

Cheers,

Jag

Former Member
0 Kudos

Hi

StorageLocation and Items are like segments in the flatfile.

Thanks

Giridhar Kommisetty

former_member214364
Active Contributor
0 Kudos

Hi Giridhar,

Do you want to repeat StorageLocation1 segment 3 times(bcoz StorageLocation has 3 items) and so on.

i didnt understand StorageLocation segments order in Target strcture.

Please clarify this.

Cheers,

Jag

Former Member
0 Kudos

HI

Sorry for the confusion.

Let me explain again.

Source structure is defined with StorageLocaiton as segment1 and then Item as a subsegement underthat.

In the target structure I have to make Item segment as a header kind of thing and Storagelocation under that.

just a reverse kind of thing. main segement to subsegment and subsegment to mainsegment.

hope i made sense.

thanks,

Giridhar Kommisetty

Former Member
0 Kudos

this is similar to Tree Reversal as available in the below link

http://help.sap.com/bp_bpmv130/Documentation/Operation/MappingXI30.pdf

Former Member
0 Kudos

Hi

Yes, looks like 'Tree Reversal' in the link. I will try this out.

Thanks.

Giridhar Kommisetty