How are exceptions handles in bapi's ?

Answer Posted / pranab

create a parameter named Return for every BAPI. This
parameter returns exception messages or success messages to
the calling program.
The export parameter Return can be implemented as follows:

As a structure, whereby it must be defined in the function
module as an export parameter, as well as in the method in
the BOR.
As a table, whereby it must be defined in the function
module as a table parameter, as well as in the method in
the BOR as an export parameter.
Before filling the Return parameter you should either
initialize the structure with CLEAR or the table with
REFRESH and CLEAR.

The Return parameter may be based on the following
reference structures:

BAPIRET2
You must use this reference structure when developing new
BAPIS.

BAPIRET1, BAPIRETURN
These reference structures are still partly used in old
BAPIs.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain buffering

1099


What is a view? : abap data dictionary

864


How do you document abap/4 programs? Do you use program documentation menu option?

902


What is an update type with reference to a match code id?

750


Explain the disadvantages of different types of bdc's?

720


what is difference between (internal table types)standard table and sorted table in sap abap....

2128


How to Raise a Particular Ticket in Realtime ?

1938


Abstract class and interface, multiple inheritance, live example

1088


What are lock objects?

772


What is a currency factoring technique?

910


If I have put commit in badi implementation class after update, is it allowed? Also if some standard functionality already implemented an update and now i m doing update and if it fails, what will be the impact of commit?

1560


Is logo in script 1st stored as tiff format before uploading or in jpeg format?and where is that stored after uploading?

1833


What are the different types of abap reports in sap?

1013


What are the attributes of the data? : abap data dictionary

834


Explain the differences between se01, se09 and se10?

780