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

Define the various contents of technical specifications ?

609


What are the components in sap application server?

630


Workbench request are client dependent or client independent

549


Explain what is step-loop?

749


Application Category?

913






Explain the advantages and disadvantages of abap query tool?

512


What does the insert statement in extract datasets do?

618


Can we display a list in a pop-up screen other than full-size stacked list?

682


Some Realtime Examples on Exits .

1712


Can a transparent table exist in data dictionary but not in the data base physically? : sap abap data dictionary

606


We have got some values for Field F1 say 1,2,3,4 and F2 say 10,10,10,10.Now can you tell me what would be the output for F1 if we use At End Of event?and what would be the output for F2 if we use At Last event?Also i want to know what is the difference between Total calculation for At end event and grand total for At last event???

1671


Explain what are the system fields? Explain?

553


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

646


What are the events driven batch jobs?

578


What do you mean by transparent tables in sap abap? : abap data dictionary

513