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

BDC ERRORS

Former Member
0 Likes
522

HI

i am new to ABAP........i have written a call transaction program

to upload customer master data in the r/3 system....

i am collecting the errors in the BDCMSGCOLL internal table.

but how do i reprocess these error records.................???

i have the records in the flat file...........of the 100 records

i was uploading i have errors at 30-34 th records.

thanx in advance .

THANKS.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
496

Dear Jaspreet,

The most simple way is to reformat the messages after each Call Transaction

has completed (so that any variables are within the message text string

itself), and then either output them to a flat file for later handling, or

write them out to an ABAP list as an Error Report.

Remember to refresh your BDCMSGCOLL table after each call transaction, so

that you are only dealing with the messages related to the current record

each time.

Best Regards,

Rajesh.

Please reward points if found helpful.

3 REPLIES 3
Read only

Former Member
0 Likes
496

after executing the call transaction stmt, check MSGTYP in the message table. if it contains 'E'. then use FM MESSAGE_PREPARE sending the values MSGNR<MSGID, MSGV1,MSGV2,MSGV3,MSGV4. it'll return a text for this error. display it.

and keep a backup of ur current processing to know for which data the error is encountered in a different int tab.

Reward if useful

Regards

ANUPAM

Read only

Former Member
0 Likes
497

Dear Jaspreet,

The most simple way is to reformat the messages after each Call Transaction

has completed (so that any variables are within the message text string

itself), and then either output them to a flat file for later handling, or

write them out to an ABAP list as an Error Report.

Remember to refresh your BDCMSGCOLL table after each call transaction, so

that you are only dealing with the messages related to the current record

each time.

Best Regards,

Rajesh.

Please reward points if found helpful.

Read only

Former Member
0 Likes
496

hi,

You can use function module FORMAT_MESSAGE.

L.Velu