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 tracking in batchinput method

Former Member
0 Likes
455

hello abapers,

)how to handle errors in call transaction and session , what is the procedure to correct those errors , which technique frequently used .

2 REPLIES 2
Read only

Former Member
0 Likes
428

Hi,

the better way of handling error's in call transaction, first is to collect the call messages. You should use the statment ...MESSAGES into itab. in the Call Transaction.

Second, you should only care about the errors type 'E'(error) and 'A'(abort) in the messages tab.

Finally, (i'm suposing that we are talking about processs error's and not Abap error's) shoud analize the each of the error's and try to finding the error reason (for example a customizing error's) and after that, run the program again for the bad registrys.

I not sure if this answers your question , not sure i understand the problem...

regards,

Read only

Former Member
0 Likes
428

hi Praveen,

<u><b>Batch Input</b></u>

Errors occured during Batch input sessions can corrected manually, when we re-process the session from SM35. Also you can analyze the errors from SM35 itself, before you re-process the same session.

1->goto SM35, select the session which resulted in error.

2->choose button <b>Analysis</b> or <b>Log</b> to see the errors

30>choose button <b>Process</b> to re-process the session

and manually enter the faulty values

<u><b>Call transaction</b></u>

you have to collect the error messages into an internal table of structure <b>BDCMSGCOLL</b> and output/download the errors so that the end user can know which records are giving error. There is no option to re-process these records directly.

But you can do it in a different way. collect the records which are gives error and generate a session for these records only. Now the user can run the session online and correct the entries.

data itab type table of BDCMSGCOLL
Call transaction 'XK01' MODE 'A'  UPDATE 'S' MESSAGES INTO itab

*mode A = display all screens. (E = errors only, N = no display)

Hope this helps,

Sajan Joseph.