2009 Feb 24 2:32 PM
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
2009 Feb 25 4:07 AM
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
2009 Feb 24 2:34 PM
2009 Feb 24 2:40 PM
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
2009 Feb 24 2:47 PM
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.
2009 Feb 25 4:07 AM
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
2009 Feb 25 5:56 AM
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
2009 Feb 25 11:49 AM
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
2009 Feb 25 4:19 AM
Hi,
LSWM supports for transactions like MM02. Kindly let us know that thread link where it given like that.
Regards
Md.MahaboobKhan
2009 Feb 25 4:29 AM
Hi,
You can use LSMW for all data upload.
You can use LSMW for 'MM02' transaction.
Regards,
Jyothi CH.