Ansicht
Dokumentation

ABAPEML_RESPONSE_PARAMETERS - EML RESPONSE PARAMETERS

ABAPEML_RESPONSE_PARAMETERS - EML RESPONSE PARAMETERS

ABAP Short Reference   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.
SAP E-Book

The nested internal tables are of type TYPE TABLE FOR (plus EARLY or LATE respectively) and comprise special components.

The addition EARLY is the default, even if not explicitly specified. For example, if response parameters are explicitly declared with the type TYPE RESPONSE FOR FAILED, they automatically have the type TYPE RESPONSE FOR FAILED EARLY. The addition LATE is only possible if late numbering is defined for a RAP BO or, by default, if the long form of the COMMIT ENTITIES statement, COMMIT ENTITIES RESPONSE OF, is used.

The following overview shows the variants of the structured data type, its purpose as well as the nested internal tables that are themselves typed with a BDEF derived type and their special components. See the details on the components in the documentation for Components of Derived Types.

Types of Response Structures Purpose Types of Nested Internal Tables Components of Nested Internal Tables
TYPE RESPONSE FOR FAILED \lbr TYPE RESPONSE FOR FAILED EARLY \lbr TYPE RESPONSE FOR FAILED LATE Used for logging instances for which an operation has failed during the interaction phase. If the addition LATE is used, the logs are provided during the save phase. Depending on the structured data type used, the nested internal tables are of the following types: \lbr TYPE TABLE FOR FAILED \lbr TYPE TABLE FOR FAILED EARLY \lbr TYPE TABLE FOR FAILED LATE \lbr %action \lbr %assoc \lbr %cid \lbr %create \lbr %delete \lbr %fail \lbr %key \lbr %op \lbr %pky \lbr %tky \lbr %update \lbr \lbr In case of a table typed with the addition LATE, %cid is not available. \lbr If late numbering is defined for a BO, the component %pid is available. \lbr In case of a draft-enabled BO, the component %is_draft is available.
TYPE RESPONSE FOR MAPPED \lbr TYPE RESPONSE FOR MAPPED EARLY \lbr TYPE RESPONSE FOR MAPPED LATE For modify operations, internal tables are returned that map the key values of created instances to the provided content IDs (%cid). All subsequent operations must use the mapped keys. \lbr The mapping information is available in the interaction phase by default. %cid is then mapped to the real key or to %pid. The addition LATE specifies that the mapping information is available only when saving. In the save phase, %pid is mapped to the real key. Depending on the structured data type used, the nested internal tables are of the following types: \lbr TYPE TABLE FOR MAPPED \lbr TYPE TABLE FOR MAPPED EARLY \lbr TYPE TABLE FOR MAPPED LATE Components of a table typed without an addition or with the addition EARLY: \lbr %cid \lbr %key \lbr %pky \lbr %tky\lbr \lbr Components of a table typed with the addition LATE: \lbr %key \lbr %pre \lbr %tmp \lbr \lbr If late numbering is defined for a BO, the component %pid is available for all additions. \lbr In case of a draft-enabled BO, the component %is_draft is only available for EARLY.
TYPE RESPONSE FOR REPORTED \lbr TYPE RESPONSE FOR REPORTED EARLY \lbr TYPE RESPONSE FOR REPORTED LATE Used for returning messages on specific instances for which failures occurred during the interaction phase. If the addition LATE is used, the messages are provided during the save phase. Depending on the structured data type used, the nested internal tables are of the following types: \lbr TYPE TABLE FOR REPORTED \lbr TYPE TABLE FOR REPORTED EARLY \lbr TYPE TABLE FOR REPORTED LATE %cid \lbr %element \lbr %global \lbr %key \lbr %msg \lbr %pky \lbr %state_area \lbr %tky \lbr \lbr In case of a table typed with the addition LATE, %cid is not available. \lbr If late numbering is defined for a BO, the component %pid is available. \lbr In case of a draft-enabled BO, the component %is_draft is available.

The following image shows the Variables tab in the debug mode of ADT. The variables ls_report, ls_map and ls_fail, are typed with the structured data type TYPE RESPONSE FOR. Once expanded, the nested internal tables for each of the entities contained in the composition tree of DEMO_MANAGED_ROOT are revealed. In this case, there are entries for one entity available. See the context of the image in the executable example ABAP EML - TYPE RESPONSE FOR that demonstrates the response parameters.

IMAGE @@ABDOC_EML_RESPONSES.png@@346@@302@@






PERFORM Short Reference   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 6569 Date: 20240329 Time: 080905     sap01-206 ( 127 ms )