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

What are the basic functions of database utility?

586


What is the use of f4if_shlp_exit_example function module ? : sap abap data dictionary

1308


Which commands are used for interactive reports?

640


Define structure in abap data dictionary?

622


What are user exits? What is involved in writing them? What precations are needed?

602






What are local objects?

625


What is dialog module?

607


when are objects are passed from task to the change request?

1671


A field containing quantity amounts (data type quan) must be assigned to a reference table and a reference field. Explain? : abap data dictionary

679


Name a few data dictionary objects?

650


What are internal tables? How do you get the number of lines in an internal table? How to use a specific number occurs statement?

603


What is the function of the transport system and workbench organiser?

639


Can we call reports and transactions from interactive reporting lists?

628


Can we define our own match code id's for sap matchcodes? : abap data dictionary

569


What are two methods of modifying sap standard tables? : abap data dictionary

676