2006 Sep 18 9:34 AM
Hai,
Could u please tell me, How can I process error record during uploading by using LSMW.
Thanking You
murali
2006 Sep 18 9:56 AM
Hi,
LSMW mainly uses Batch input session method, so automatically errors are tracked, u can find those wrong records in SM30, Analyze session and re-process those records, u need not manually code for that.
<i>Note:-LSMW is tool of Data Migration and they have reduced the Programmer's job to the MAX (thats why nowadays most of data migration is done by Functional consultants only).</i>
Regards:-
Santosh
Hai,
Could u please tell me, How can I process error record during uploading by using LSMW.
Thanking You
murali
2006 Sep 18 9:42 AM
Hi,
In the field mappings and conversion rules,
in the global section,define an internal table.
data : begin of it_errors occurs 0,
desc type string,
end of it_errors.
and where ever you have wrong or empty values for the fields,populate error there to the internal table.
for example, if Material no is blank,i have to give err msg
IF NOT MATMAS_MRPVIEW-MATNR IS INITIAL.
BMM00-MATNR = MATMAS_MRPVIEW-MATNR.
else.
IT_ERROR-DESC = 'Material no is empty'.
append it_error.
SKIP_RECORD. "to skip further processing of this error record.
ENDIF.
like this you populate all the error records to that IT_ERRORS internal table.
and finally download it using GUI_DOWNLOAD in the event
'__END_OF_PROCESSING__'
-
*************----
there is another way also, you can create a Session in the LSMW, and record the error records in the session then process the error records in the session
Hope you got it
Regards
Sudheer
2006 Sep 18 9:56 AM
Hi,
LSMW mainly uses Batch input session method, so automatically errors are tracked, u can find those wrong records in SM30, Analyze session and re-process those records, u need not manually code for that.
<i>Note:-LSMW is tool of Data Migration and they have reduced the Programmer's job to the MAX (thats why nowadays most of data migration is done by Functional consultants only).</i>
Regards:-
Santosh
2006 Sep 18 10:02 AM
I assume your question is related with BATCH INPUT processing created by LSMW program.
You can reprocess the errors in SM35 itself.
When you reprocess it will execute only the failed ones. You can do this as many time as you want till you correct the errors.
Please note, if you have changed the data, you have to create new Session by running the LSMW again.
Regards
Vivek
Please reward if it is useful
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |