on 2023 Oct 16 10:25 PM
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' ).
Request clarification before answering.
User | Count |
---|---|
79 | |
29 | |
9 | |
9 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.