In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article focuses on "how to expose CDS view as an OData service in SAP ABAP". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor learn "how to expose CDS view as an OData service in SAP ABAP".
@ OData.publish: true
With this annotated CDS view, once activated, an OData service is automatically generated in ABAP Netweaver, searched and added in the transaction code / IWFND/MAINT_SERVICE, and the data exposed by the view can be consumed as an OData service.
Of course, the @ OData.publish annotation has this magical power, which was described in detail in previous blogs of Jerry.
When it comes to SAP cloud platform ABAP environment, we cannot directly copy the above steps to achieve the same effect because we cannot access SAP GUI. Fortunately, the steps for CDS view exposure on the cloud are still simple, and the whole process can be done in 5 minutes.
Log in to the ABAP cloud environment with ABAP Development Tools as if you were logged into the On-Premises ABAP system, and create a new Service definition:
In the implementation of Service, the keyword expose is used to expose the standard view,I_Currency in the ABAP environment as Service.
This Service needs to be exposed as an OData service as Service Binding:
Assign the Service created in the first step to this Service Binding:
Notice that the Service Details tab on the right side of the image below is empty at this time. Click the Publish button:
After the successful release, we saw the entity named Currency that we previously exposed I_Currency to in the Service implementation:
Right-click the Currency Entity, select Open Fiori Elements App Preview, and you can display the data in the I_Currency on the current system through a standard general-purpose Fiori Elements application in preview mode:
By clicking this Service URL hyperlink, you can also directly open the metadata link of the corresponding OData service:
At this point, I believe you have a deeper understanding of "how to expose CDS view as an OData service in SAP ABAP". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
Tgt_type-- The type of tgt. Allowed values: glob-Bash glob completion-Default pcre-P
© 2024 shulou.com SLNews company. All rights reserved.