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

Error handling

Former Member
0 Likes
753

Hi friends,

I am doing MM01 upload using direct input program with LSMW.

I want to know, how to handle the errors? i mean when i am running the LSMW, if some error occurs after say 100 records, how to handle it.

after correcting the error do i need to delete the 100 records from flat file??

i am just using direct input program from LSMW. when i execute it shows a selection screen for input file, this i am manullay executing in background without creating the job from SM36. is this the way or is there any other way to run the batch job?

thanks a lot.

6 REPLIES 6
Read only

Former Member
0 Likes
730

if u get error, u need to correct the input file & also delete records already posted...Instead create a session for all the records..then execute it and if u get errors u can correct them and automatically goes to next record data.

Read only

0 Likes
730

Thanks for the reply,

Ramesh let me know how can i create the session, when i am using the direct input program in LSMW.

Thanks a lot.

Read only

0 Likes
730

Hi

Ramesh, he chose a direct input as method to load the data, so any session will be created.

You can't do it, if you use a direct input u should elaborate all records or nothing, because if some error occurs while direct input's working after I could be hard to understand which records of the file have been loaded.

So try to check the records before running the step for direct input.

Max

Read only

0 Likes
730

But how would i know after which record i have got the error?? is there any log file stored somewhere?? i can see only the transaction number on the output application log.

thanks a lot

Read only

Former Member
0 Likes
730

Hi

U should do all validations in Mapping Step, in this way you can check the errors before running the method to load the data.

Your way is right because you make sure to run all steps of LSMW project.

Anyway every step is a program and you can run it just as a normal abap program.

Max

Read only

Former Member
0 Likes
730

exactly i dont remember...but u need to check a box which will create the session