In this customary technique (to which we as a whole are knowledgeable till now), we tie our compact discs perspectives to projections and afterward to a help restricting. This assistance restricting can be of Web Programming interface, OData V2 or OData V4. Service Consumption Model in Steampunk.
Nonetheless, there is a fascinating reality found that we can in any case consume the OData Administration which are public or the public Web APIs in Steampunk.
Administration utilization is fundamentally a remote help call to a help (WEB Programming interface or OData) outside the cloud. The comparing information is perused from the remote back-end administration.
SAP BTP: Decoding the Business Technology Platform
A few clear questions which would emerge are :
-
- How the remote service would be connected to the cloud environment?
-
- Can any OData service be connected to the cloud?
-
- Does the on-premise system be connected via cloud connector to the Cloud?
-
- How do we get the data of the remote service call?
-
- Can a new CDS entity be created from the remote service call?
-
- What are the protocols supported?
-
- Can we integrate the new service in our existing applications?
Allow us to see every one of the responses with the underneath model by making the Help Utilization Model ourselves. The Help utilization model as the name recommends is a bunch of relics that are produced in ABAP Improvement devices based on $metadata or a WSDL record. In this manner the upheld conventions are Cleanser and OData. In this manner, the assistance utilization model will likewise help in the next to each other expansion situation in the cloud. Trust we are know about the Next to each other expansion situations, in the event that not I would strongly suggest for a profound comprehension of it in the beneath SAP Open course connect as it’s anything but a word, it is a finished subject. Service Consumption Model in Steampunk.
To put it plainly, Next to each other expansions are applications that run external SAP S/4HANA Cloud and can be coordinated with the cloud application by means of a Programming interface call.
Is it safe to say that we are doing likewise? Well Yes! Surmise, we are speeding up the considerations of engineers to becoming Arrangement Designers
SAP ABAP – From Basic to Advanced OData
The demo system looks like this.
Question – Can I see all the services of the catalog?
Answer – Yes – Access the below link after creating account on SAP Demo System.
I have picked a readymade OData administration from SAP Demo Framework to complete this trial!
Kindly follow the underneath steps strictly.
-
- Get the Metadata record to be consumed in the assistance utilization model.
-
- Access the metadata of the OData Administration accessible from the inventory and download it.
3. Right Click on the package->New->Other ABAP Repository Object->Service Consumption Model
4. Give a name to the help utilization model with the utilization mode as OData.
5. Click Straightaway and peruse the downloaded metadata record and give a prefix you can recall.
6. Click straightaway and the ABAP curios have been produced with the prefix are given.
7. Click Next. The two antiquities are administration definition and the theoretical substance. Conceptual element resembles dynamic class in SAP which has no execution related with it. It has the assertion Characterize unique element in the Discs DDL. Service Consumption Model in Steampunk.
Chose next and finish.
8. The Help Utilization model is created with the Muck Activities. Click on Read Rundown and get the readymade code and duplicate to clipboard. Check the Information Definition and snap on the information definition made.
9. Abstract DDL ZRAP_HARSEPM_I_SALESORDER_E is created having the entity and the properties.
10. Presently we want to make a class to test the above created model. The class would call the help utilization model and the far off OData administration through a HTTP intermediary call. The information type would be of the Theoretical DDL. Carry out the strategy primary and get_srv_data to get the information of the help.
11. By and by we need to make a class to test the above made model. The class would call the assist usage with demonstrating and the distant OData organization through a HTTP delegate call. The data type would be of the Hypothetical DDL. Do the procedure essential and get_srv_data to get the data of the assistance.
In the accompanying code in similar technique, we read the reaction from the help.
12. In the going with code in comparative method, we read the response from the assistance.
13. Save and actuate the class and press F9 to execute.
14. In the console, we can see the information from the remote assistance.
Interested in this SAP Classes ? Fill Your Details Here
Find Your Preferred Courses