Hello Ashwin,
Yes I did.
Here it is :
method DEFINE.
DATA:
lo_annotation TYPE REF TO /iwbep/if_mgw_odata_annotation,
lo_entity_type TYPE REF TO /iwbep/if_mgw_odata_entity_typ,
lo_complex_type TYPE REF TO /iwbep/if_mgw_odata_cmplx_type,
lo_property TYPE REF TO /iwbep/if_mgw_odata_property,
lo_entity_set TYPE REF TO /iwbep/if_mgw_odata_entity_set.
***************************************************************************************************************
* ENTITY - Deep Entity
***************************************************************************************************************
lo_entity_type = model->get_entity_type( iv_entity_name = 'HeaderPDESet' ).
lo_entity_type->bind_structure( iv_structure_name = 'ZCL_Z_PDE_CREATE_MPC_EXT=>TS_DEEP_ENTITY' ).
endmethod.
And I created also the TS_DEEP_ENTITY
class ZCL_Z_PDE_CREATE_MPC_EXT definition
public
inheriting from ZCL_Z_PDE_CREATE_MPC
create public .
public section.
types:
begin of TS_DEEP_ENTITY,
include type TS_HEADERPDE,
headeritem type STANDARD TABLE OF TS_ITEMLIST with DEFAULT KEY,
headerpartner type STANDARD TABLE OF TS_PARTNERLIST WITH DEFAULT KEY,
END OF TS_DEEP_ENTITY .
methods DEFINE
redefinition .
Regards,
Luc