cancel
Showing results for 
Search instead for 
Did you mean: 

sap:display-format="Date" annotation not coming in QA environment

johnsonjos
Explorer
0 Kudos
521

Hi,

We have an Odata service developed by adding CDS view as Data source reference. In the development environment on the Service metadata, I can see that sap:display-format="Date" annotation is getting added automatically. But once the service is moved to quality, sap:display-format="Date" annotation is missing in the Quality environment metadata.

I tried adding the annotation manually by means of code, after redefining define method of MPC_EXT class. Still the sap:display-format = Date annotation is missing in quality. Can someone please suggest what I might be doing wrong here. Or else, if someone could guide on the code for adding this as a local annotation in my Fiori element project that would also be helpful.

This is an OData V2 service and we are on ECC 6.0 EHP8 and central Hub gateway

    lo_action = model->get_entity_type( iv_entity_name = 'zfgl_****').

    lo_property = lo_action->get_property( iv_property_name = '****_on').

    lo_annotation = lo_property->/iwbep/if_mgw_odata_annotatabl~create_annotation( /iwbep/if_mgw_med_odata_types=>gc_sap_namespace ).

    lo_annotation->add( iv_key = 'display-format' iv_value = 'Date' ).

Accepted Solutions (0)

Answers (0)