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: 

copy data thru LSMW

Former Member
0 Kudos

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.

1 REPLY 1

Vinod_Chandran
Active Contributor
0 Kudos

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