Application Development and Automation 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: 
Read only

errors record handling in LSMW

Former Member
0 Likes
2,956

Hai,

Could u please tell me, How can I process error record during uploading by using LSMW.

Thanking You

murali

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,380

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

3 REPLIES 3
Read only

Former Member
0 Likes
1,380

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

Read only

Former Member
0 Likes
1,381

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

Read only

0 Likes
1,380

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