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

Re: "Invalid or no Mapping to System Data Types Found" while using the CREATE_STREAM

$
0
0

Hello Kartik,

 

Go to MPC_EXT class and redefine DEFINE method.

 

Add the below code and activate the method and class.

The code is just a sample for a demo GW Model for ur reference.

Please use ur property names.


Demo GW Model ->

file2.PNG

 

Code -> Go to MPC_EXT class and add the below. Activate.

 

super->define( ).

lo_entity TYPE REF TO /iwbep/if_mgw_odata_entity_typ,

lo_property TYPE REF TO /iwbep/if_mgw_odata_property.

 

lo_entity = model->get_entity_type( iv_entity_name = 'Customer' ).

 

IF lo_entity IS BOUND.

 

lo_property = lo_entity->get_property( iv_property_name = 'CustomerID' ).

lo_property = lo_entity->get_property( iv_property_name = 'mimeType' ).

lo_property = lo_entity->get_property( iv_property_name = 'Title' ).

lo_property = lo_entity->get_property( iv_property_name = 'FirstName' ).

lo_property = lo_entity->get_property( iv_property_name = 'LastName' ).

lo_property = lo_entity->get_property( iv_property_name = 'Gender' ).

 

lo_property->set_as_content_type( ).
ENDIF.

 

Clear ur model cache in /iwfnd/cache_cleanup and check again.

 

Regards,

Ashwin


Viewing all articles
Browse latest Browse all 9193

Trending Articles