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

Re: Critical Issue with Date format in Gateway and ECC

$
0
0

Hello Pavan,


In the mentioned thread you have already tried to change the type in ABAP Type Editor and still issue exists.


So i would suggest the following,


Do not change anything in Model in SEGW. Let it be as it is.


Write code in MPC_EXT class inside Define Method as below and this will solve the issue.

Get that particular Property which is causing issue and override the data element as below

 

 

 

  METHOD define.

 

    super->define( ).

 

    DATA:

      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 = '<Entity>' ).

    lo_property = lo_entity->GET_PROPERTY( IV_PROPERTY_NAME = '<Property>' ).

    lo_property->set_type_edm_datetime( ).

    lo_property->bind_data_element( iv_element_name = 'DATS' ).

 

  ENDMETHOD.


Regards,

Ashwin


Viewing all articles
Browse latest Browse all 3354

Trending Articles



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