Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

In LSMW, how to assign many source structures to one destination structure?

Former Member
0 Kudos

Here is the image of what I would like to archive: [Maintain Field Mapping and Conversion Rules|http://i292.photobucket.com/albums/mm32/CinamonRoll22/LSMW2.jpg]

In the above picture, you can see that there are 2 source structures assigned to one destination structure.

However, in [Maintain Structure Relations|http://i292.photobucket.com/albums/mm32/CinamonRoll22/LSMW1.jpg], I can see only one structure assigned to the destination structure

Any suggestion would be appreciated.

VT

1 ACCEPTED SOLUTION

former_member207019
Participant
0 Kudos

It is possible with SAP XI.

2 REPLIES 2

ThomasZloch
Active Contributor
0 Kudos

Sorry, LSMW does not provide for this. It would probably be too complex to come up with a generic algorithm for generating a conversion program that could handle n:m relations between source and target structures, so 1:n is all you get (you can assign the same source structure to multiple target structures).

There is a complicated workaround by putting in your own code into the conversion rules, which reads a different internal table holding source data than the one which is currently being looped through.

You will have to carefully study the generated conversion program to know what to do.

Thomas

Hint: check out form routine "convert_transaction" and examine the nested loops.

former_member207019
Participant
0 Kudos

It is possible with SAP XI.