Ansicht
Dokumentation

ABENSAVER_MAP_MESSAGES - SAVER MAP MESSAGES

ABENSAVER_MAP_MESSAGES - SAVER MAP MESSAGES

Fill RESBD Structure from EBP Component Structure   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

map_messages, RAP Saver Method

CLASS lsc_bdef DEFINITION
  INHERITING FROM CL_ABAP_BEHAVIOR_SAVER $[ ABSTRACT$] $[FINAL$].
  PROTECTED SECTION.
      ...
     $[METHODS map_messages REDEFINITION.$]
      ...
ENDCLASS.

CLASS lsc_bdef IMPLEMENTATION
     ...
     $[METHOD map_messages.
     ...
     ENDMETHOD$]
     ...
ENDCLASS.


Effect

Optional RAP saver method that can be defined as part of a RAP saver class lsc_bdef in the CCIMP include of an ABAP behavior pool. It is declared by redefining predefined methods of the superclass.

The map_messages method is available in behavior pools for those RAP BOs whose BDEF includes BOs that are defined as foreign entities.

The purpose of the method is to handle messages of foreign entities, i. e. entities that are not directly exposed, within one RAP LUW. Depending on your business requirements, these messages might be available for the exposed BO and mapped to the business context or just ignored and deleted.

If a RAP BO is defined as foreign entity in a BDEF, the reported response structure of the exposed BO also contains this foreign entity as component allowing the messages returned by the foreign entity to be mapped to the business context of the exposed RAP BO.

The method is called if the RAP BOs that are defined as foreign entities return messages in their respective saver class.

Method Parameters

The method has the following implicit, predefined CHANGING parameter:

Development guide for the ABAP RESTful Application Programming Model, section Message Mapping.

The example Example for RAP Saver Method map_messages demonstrates this RAP saver method within a RAP saver class using unmanaged RAP BOs.






Vendor Master (General Section)   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 4437 Date: 20240425 Time: 031947     sap01-206 ( 51 ms )