01-29-2008 6:59 AM
How to handle the errors in call transaction method without using the bdcmsgcoll structure?
01-29-2008 7:09 AM
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.
01-29-2008 7:03 AM
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.
01-29-2008 7:04 AM
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.
01-29-2008 7:09 AM
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.