Application Development 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: 

How to check Error handling in Foreground while executing the BDC call Tran

Former Member
0 Kudos

Hi Experts,

I've a doubt in Error Handling.While i am excuting the BDC Call Transaction Program How to check Error Handling in foreground.

Its an urjent issue.Please send me the solution as early as possible.

Thanks in advance.

Regards,

Rekha

4 REPLIES 4

Former Member
0 Kudos

Hi,

U can use BDCMSGCOLL to handle errors in BDC.

Former Member
0 Kudos

Hi,

after Call transaction..........................statement , check sy-subrc i.e

data: msgtab type standard table of bdcmsgcoll .

call transaction tcode .......mesaages into msgtab.

if sy-subrc <> 0.

call function 'FORMAT_MESSAGE'.----> this will craete message

.........

,,,,,,,,,

fill the messages into another internal table which should be displayed .

endif.

Display the interanl table which is filled with messages.

Rvert back if any issues,

Reward with poinst if helpful.

Regards,

Naveen

Former Member
0 Kudos

When u run the BDC in foreground u can just change the errorneous data and no error handling is required as such..and u can only get success messages in the end in

BDCMSGCOLL itab.

try it with breakpoint in itab_msg.

call transaction 'MI01' using itab_bdcdata mode 'A' MESSAGES INTO

ITAB_msg.

loop at itab_msg where msgtyp = 'S'.

break-point.

message i010(zmgs) with itab_msg-MSGV1.

docno = itab_msg-msgv1.

endloop

Message was edited by:

Madan Gopal Sharma

Message was edited by:

Madan Gopal Sharma

Former Member
0 Kudos

hi Rekha,

use BDCMSGCOLL to track the errors in BDC .

Reward points if useful.

Cheers,

Chandra