Importance of structure BAPIRET2
by Subhas
The use of the RETURN parameter (structure BAPIRET2) in BAPI is used to bring
any/all messages back from the BAPI call, this could include any information,
warning messages as well as any error messages that caused the BAPI to fail and
not complete the transaction. You may also get success messages, such as
"Order Saved" or something to that effect.
This RETURN parameter is part of all BAPIs because, BAPIs are designed that they
should not raise and exceptions like other function modules. This is because
BAPIs are designed to be called from outside the system, so raise an exception
will cause an error.
|