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

Erro processing

Former Member
0 Likes
489

hello guys,

I am uploading the data for AR open items. I am using the BAPI to upload the data.

If I get any errors after the data posting is completed.... How to handle those erros...

Can anyone guide me please..

SRI

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
464

Hi

First see and analyse the error.

for what reason that error has occured, then only we can analyse and correct it

without knowing the proper error it is not easy to say the correction..

<b>Reward points for useful Answers</b>

Regards

Anji

3 REPLIES 3
Read only

Former Member
0 Likes
465

Hi

First see and analyse the error.

for what reason that error has occured, then only we can analyse and correct it

without knowing the proper error it is not easy to say the correction..

<b>Reward points for useful Answers</b>

Regards

Anji

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
464

All errors will be returned from the BAPI via the RETURN parameter. This parameter is a internal table with a structure which includes message type, number, id, and the message variables, so you will get all messages back. You can analyze them thru your coding looking for message type E, or a specific success message, then you can report to the user according.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
464

HI Sri,

If you are using the BAPI in your program, you can check the RETURN table of that BAPI for any errors. If the return table is not empty, then you can move that record to an internal table. At the end of the load, you will have all the error records in an internal table which can be later downloaded.

The bapi return table will also let you know, what the problem was. This way, you can correct the file and reload it again.

Regards,

Ravi