Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9091

Re: Loading the metadata for service failed - Data object not found

$
0
0

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


Viewing all articles
Browse latest Browse all 9091

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>