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: 

error message display.

Former Member
0 Kudos

Hi al,

I am using a bapi.It has a return parameter which displays all the error occured in bapi.Is it possible to show the error occured in bapi as an error message in the status bar...

thanks & regards,

Alex

3 REPLIES 3

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Yes, you can simply read the BAPIRET and get the message class and number from there, then simply do a MESSAGE Statement.

Regards,

Rich Heilman

Former Member
0 Kudos

well it´s possible and there are several ways to do it.

you either can modify the bapi but i woudnt recommend that due to following reasons:

- if the bapi works better dont change it.

- some message types (type a or type x) will abort the processing of the bapi

but you can later, when the bapi is finished use the return table.

just read your error messages from the return table and use Message to print it out.

you can either store the texts first in the table where the textsymbols are, or you can use (depending on your release) the message statement without type and development class.

Former Member
0 Kudos

Hi,

In bapi you can get details form RETURN or BAPIRET.

Ashven