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

How many types of views are there? : abap data dictionary

553


What is the difference between native sql & open sql? : abap data dictionary

596


please any one can tell me How to validate the data in Table maintinance generator?how can u validate the table field values if u r entering the data into fields .it shows record is wrong?wher we can done validation in table maitenance generator before getting the data as out ?

1576


Explain open dataset in sap abap?

795


Explain how data is stored in cluster table?

650






What are the different methods of passing data? : abap modularization

570


1/ How do u apprach if error occur in sending idocs ? 2/ where u assigned process code ?

1460


Some Realtime Examples on Exits .

1715


Final class

1015


Can there be more than 1 main window in sap script?

613


What is an evaluation path? : sap abap hr

551


What is difference between check table and value table ?

637


What are the different types of data dictionary objects? : abap data dictionary

674


Explain read dataset in sap abap?

707


Define structure in abap data dictionary?

609