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: 

Regarding BDCs

Former Member
0 Kudos

How to handle the errors in call transaction method without using the bdcmsgcoll structure?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Error handling in call transaction.

The BDCMSGCOLL does not have the messages text. It has only the message type, number and message parameters.

You have to read the message text. (recall that the database table T100 stores all the messages.)

To handle error in bdc call transaction method...without using structure BDCMSGCOLL,

Use Std Function module 'FORMAT_MESSAGE'

If you are using BDC session method and an error occurs, a a session is created in SM35. You can rerun the session in foreground from transaction SM35 after correcting the error

Reward Points if found helpfull..

Cheers,

Chandra Sekhar.

3 REPLIES 3

Former Member
0 Kudos

first declare an int tab type BDCMSGCOLL

then use it in call transaction extension MESSAGES INTO MSG_TAB.

if MSG_TAB-MSGTYP = 'E'.

then use the MESSAGE_PREPARE FM to get the text pass MSGV1, MSGV2, MSGV3, MSGV5, MSGNR, MSGID to the funchtion module . it'll return a text. write it or store it to an int tab.

Reward if useful.

Former Member
0 Kudos

Error handling in call transaction.

The BDCMSGCOLL does not have the messages text. It has only the message type, number and message parameters.

You have to read the message text. (recall that the database table T100 stores all the messages.)

To handle error in bdc call transaction method...without using structure BDCMSGCOLL,

Use Std Function module 'FORMAT_MESSAGE'

Reward if useful.

Former Member
0 Kudos

Hi,

Error handling in call transaction.

The BDCMSGCOLL does not have the messages text. It has only the message type, number and message parameters.

You have to read the message text. (recall that the database table T100 stores all the messages.)

To handle error in bdc call transaction method...without using structure BDCMSGCOLL,

Use Std Function module 'FORMAT_MESSAGE'

If you are using BDC session method and an error occurs, a a session is created in SM35. You can rerun the session in foreground from transaction SM35 after correcting the error

Reward Points if found helpfull..

Cheers,

Chandra Sekhar.