06-08-2009 3:45 PM
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
07-22-2009 6:11 AM
06-08-2009 4:36 PM
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.
07-22-2009 6:11 AM