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 exceptions

Former Member
0 Likes
504

I wish to perform exception handling when creating a BDC program . have no clue where to start. Help required.

Thanks

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
443

The messages from a BDC are passed back to the calling program via the MESSAGES INTO <itab> extension of the CALL TRANSACTION statement. This is an internal table which will give you all of warning, information, success and error messages from that transaction.

Regards,

RIch Heilman

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
444

The messages from a BDC are passed back to the calling program via the MESSAGES INTO <itab> extension of the CALL TRANSACTION statement. This is an internal table which will give you all of warning, information, success and error messages from that transaction.

Regards,

RIch Heilman

Read only

Former Member
0 Likes
443

Hi Krish,

Refer to the below thread

It also has the sample code.

Reward points if useful.

Regards,

Atish

Read only

Former Member
0 Likes
443

Will have diffrent exeption in BDC ,

1. it will give Log message - if you use BDCMSGCOLL Struturre ( Should be N Mode )

2. It will give Log message - if you use FORMAT_MESSAGE FM ( Should be N mode )

3. It will return sy-subrc ,based on subrc you can show exeptions..

Thanks

Seshu