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: 

LSMW for changing records

Former Member
0 Kudos
1,171

hi

In one of the thread i have read the LSMW can not be used for changing the data records. for example we can not use LSMW to simulate MM02 tcode. why is that so??. is it applicable all change transactions?

thanks

1 ACCEPTED SOLUTION

former_member342013
Contributor
0 Kudos
249

Hi

U can use LSMW for Changing....

For Raw material Uploading v use more than 4 Projects....

first Project v create it by t-code MM01

other 3 Projects V create it by t-code MM02....

If U want to make any changes in Existing Project then use T-code MM02...

Regards

Smitha

8 REPLIES 8

GauthamV
Active Contributor
0 Kudos
249

You can use LSMW for change transactions like MM02 also.

Former Member
0 Kudos
249

Hi,

Changes also can be done using LSMW, but when recording may be some recorded fields may be missed.

So When uploading data using test files all data needs to be sent properly.

Regards,

Sunil

Former Member
0 Kudos
249

Hi Sudhakar,

LSMW can be used for all kind of uploads. No matter whether it is for creation or change or deletion.

So you can go ahead with MM02 to upload the changes using LSMW.

Regards,

SB.

former_member342013
Contributor
0 Kudos
250

Hi

U can use LSMW for Changing....

For Raw material Uploading v use more than 4 Projects....

first Project v create it by t-code MM01

other 3 Projects V create it by t-code MM02....

If U want to make any changes in Existing Project then use T-code MM02...

Regards

Smitha

0 Kudos
249

hi

thanks for your reply.

i have another question. in the first step we have a option of selecting one-time or periodic. so no matter which i option i selected, i need to go to SM35 and execute the session. am i right? is there any way to automate this?

another questions is can we do any custom validations in LSMW. for example i want to read a record from the file and check some database table for some condition and generate a log file if there is any error. is that possible?

thanks

0 Kudos
249

Hi,

Yes you can do validations before assigning Source structure to Target structure in step Assign Field mapping and Conversion Rules.

Select Extras -> Layout then select 'Global Data Definitions' check box, here you can declare all variables, ITAB, Work ares.

Before assigning

for ex

select single kunnr into v_kunnr from kna1 where kunnr = source_kunnr.

if sy-subrc = 0.

target_kunnr = source_kunnr. "Assign source record

else.

SKIP_RECORD. "It will not process the failed records

endif.

If any doubts let me know.

Regards,

Sunil

Former Member
0 Kudos
249

Hi,

LSWM supports for transactions like MM02. Kindly let us know that thread link where it given like that.

Regards

Md.MahaboobKhan

Former Member
0 Kudos
249

Hi,

You can use LSMW for all data upload.

You can use LSMW for 'MM02' transaction.

Regards,

Jyothi CH.