Ansicht
Dokumentation
ABAPDERIVED_TYPES_FAIL - DERIVED TYPES FAIL
General Data in Customer Master RFUMSV00 - Advance Return for Tax on Sales/PurchasesThis documentation is copyright by SAP AG.
%fail
%fail is a component of BDEF derived types. It is used as a component of the failed response parameter.
%fail itself is a structure that stores the symptom of a failed RAP BO instance in the component cause). The values of the failure cause (for example, NOT_FOUND for untraceable entries) are defined in the interface IF_ABAP_BEHV: IF_ABAP_BEHV=>T_FAIL_CAUSE.
Type
%fail-cause has the following type: Type T_FAILINFO of interface IF_ABAP_BEHV.
- FAILED [EARLY$|LATE]
See more details on message handling in the Development Guide for the ABAP RESTful Application Programming Model, section Messages.
Example
The following source code section taken from the BP_DEMO_MANAGED_ROOT_FAILED===CCIMP of the global class of the behavior pool BP_DEMO_MANAGED_ROOT_FAILED demonstrates the component %fail in the context of an implementation for the get_instance_features method. See the executable program for this example further down.
The example Using %fail demonstrates the use of %fail with a managed RAP BO.
CL_GUI_FRONTEND_SERVICES - Frontend Services PERFORM Short Reference
This documentation is copyright by SAP AG.
Length: 2098 Date: 20240424 Time: 013057 sap01-206 ( 29 ms )