Redefined Service - New Entityset methods did not get created
I enhanced a standard service in SEGW and created 2 entity types and sets. Consistency Check and Runtime Aritifacts generation were successful. However, the new DPC_EXT class does not have CREATE_ENTITY, DELETE_ENTITY, GET_ENTITY, GET_ENTITYSET and UPDATE_ENTITY for the newly created Entity Sets. Instead, it shows me methods as - /IWBEP/IF_MGW_APPL_SRV_RUNTIME~CREATE_ENTITY etc.
I read in a lot of help documents and examples that these methods are created automatically in the form of <ENTITYSET_CREATE_ENTITY> , <ENTITYSET_GET_ENTITY> and should be REDEFINED as needed.
What am I missing?
Andre Fischer replied
SEGW does unfortunately not create these methods if you add an entity set to a redefined service.
You have to implement the generic methods in your DPC_EXT class, check whether your newly created entity set is accessed.
If not you can call the method of the base class that will call the methods for the other entity sets of the redefined service.
DATA lv_entityset_name TYPE string.
DATA lr_entity TYPE REF TO data.
IMPORTING er_entity = er_entity ).