cancel
Showing results for 
Search instead for 
Did you mean: 

Support Pack for Vocabulary Based Annotations?

former_member213400
Active Participant
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Andre_Fischer
Product and Topic Expert
Product and Topic Expert

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...

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

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-impleme...

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

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

former_member213400
Active Participant
0 Kudos

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.