09-21-2005 7:53 AM
Hi,
I want to copy the data from one company code to another company code thru LSMW.
Do I need to take the data in to a text file?? If so, how can I take that data?? Are there any functional modules for this??
Is there any other better solution for this task?? Plz help me....
thanks,
Satish.
09-21-2005 8:14 AM
Hi,
You can do it through LSMW. Create a dummy source structure with one field and a dummy file.
You have not given which transaction code you want to use. I am exlaining with an example here.
Extend material from one plant to another.
Create a dummy source structure
Do the mapping as usual.
In the 'Field mapping and conversion rules', under the section '__BEGIN_OF_PROCESSING__' write code to get material details from one plant.
In the '__BEGIN_OF_TRANSACTION__' you can write the 'LOOP AT ITAB' and pass the internal table fields to the destination structure.
In the '__END_OF_TRANSACTION__', you have to give the 'ENDLOOP' and this should be before 'transfer_transaction'.
Hope this will help you.
Thanks
Vinod