Mentor SAP
METHOD /iwbep/if_mgw_appl_srv_runtime~entityset. DATA lv_entityset_name TYPE string. DATA lr_entity TYPE REF TO data. lv_entityset_name = io_tech_request_context->get_entity_set_name( ). CASE lv_entityset_name. WHEN ‘<NewEntitySet>'. … WHEN OTHERS. super->/iwbep/if_mgw_appl_srv_runtime~get_entity_set( EXPORTING … IMPORTING er_entityset = er_entityset es_response_context = es_response_context ). ENDCASE. ENDMETHOD.

 

To redefine the generic query method /IWBEP/IF_MGW_APPL_SRV_RUNTIME~GET_ENTITYSET, perform the following steps:

  1. Check for the name of new entity set.
  2. Call the method of base class for all other entity sets.

Simple Field Extensibility

When using simple field extensibility at runtime, gateway classes (MPC and DPC) will consider the fields in the extension includes in the DDIC structure. Properties that have been created by using SFE will contain the annotation sap:is-extension-field=“true”.

 

Prerequisites include the following:

 

The result is that the entity type or entity set is extended automatically. No development (SEGW/SE24) is required, provided that the DPC implementation is able to handle the retrieval of the data of the extended DDIC structure automatically.