Skip to Content

Support Pack for Vocabulary Based Annotations?

Hi @ralf.handl

I am very curious about Fiori Elements, in a way I am trying to find/understand the Vocabulary Based Annotations(VBA) we created a OData Project with service type VBA. But I could not see any annotations result in my Fiori Application of the SmartTable element. To isolate the issue I was trying to debug the Define method from MPC and MPC_EXTN but my external BP not at all triggering. I have Few doubts,

1. What are the pre-requisites for the VBA

2. Difference between service type SAP Annotations and VBA(Apart from customer specific feature)

3. What is the SP level and NetWeaver Version

My System current system details,

SAP NETWEAVER 7.5 03 (04/2016) sap.com SAP NETWEAVER 7.5

SAP_GWFND 750 0004 SAPK-75004INSAPGWFND SAP Gateway Foundation

Thank you in Advanced.

Best Regards, VK.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jan 07 at 10:41 AM

    Hi VK,

    if you can avoid it I would not recommend to use SEGW to create annotations. Since your system is based on 750 you could create CDS views and annotations there and publish the same using a Referenced Data Source project. Here you will be able to call existing API's such as BAPI's for create, update and delete methods.

    For more details see my following two blogs:

    https://blogs.sap.com/2016/06/01/odata-service-development-with-sap-gateway-using-cds-via-referenced-data-sources/

    https://blogs.sap.com/2016/06/02/odata-service-development-with-sap-gateway-using-cds-via-referenced-data-sources-how-to-implement-updates/

    If you nevertheless decide to go for the development of annotations in SEGW see the following two blogs.

    https://blogs.sap.com/2017/04/21/how-to-add-annotations-to-an-odata-service-using-code-based-implementation/

    https://blogs.sap.com/2017/07/21/hello-world-to-annotations-and-smart-templates-with-segw-sap-gateway/

    But as I said I would not recommend this approach and would strongly recommend to use the Referenced Data Source Approach instead.

    This especially in the light of the upcoming ABAP Restful programming model in S/4HANA since everything you do in CDS view development you will be able to reuse there.

    https://blogs.sap.com/2017/12/07/be-prepared-for-the-new-abap-programming-model-in-sap-s4hana/

    Regards,

    Andre

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 09 at 04:54 AM

    Thank you @Andre Fischer I gone through all your links shared above. Those are really helpful to us, we will focus on Reference Data Source Approach in further developments since it is best approach.

    For the time being we already developed the OData Annotations using SEGW. Since developed in SEGW I consider Gopal Anand blog. We have done as it is in the blog but the catch is below,

    If we notice in the above screenshots DataField properties showing one only, that is the difference between blog and our pictures. In Gopal Anand blog he is getting both 'Label' and 'Value' properties whereas we are getting only one property that is 'Label'.

    Could you please suggest us, what could be the reason?

    Thanks in advanced. @Andre Fischer @Gopal Anand

    Kind Regards, VK.

    Add comment
    10|10000 characters needed characters exceeded