Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to use ABSL to consume third-party Restful API in SAP C4C

Shulou Source: shulou.com Published: 2022-05-31 16:08:18 11月17日 Update

This article mainly explains "how to use ABSL to consume third-party Restful API in SAP C4C". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let the editor take you to learn "how to use ABSL to consume third-party Restful API in SAP C4C"!

First, we need to have a working Restful API:

Then create a model of Restful API in Cloud for Customer's Cloud Application Studio and fill the model with the Restful API url that works in the first step:

Then use the following code in ABSL to consume:

Import ABSL;if (this.OutboundDeliveryID.IsInitial () = = false) {raise already_delivered.Create ("E"); return;} var HttpMethod = "GET"; var HttpResource = ""; / / not requiredvar ContentType = ""; / / not requiredvar Body = ""; / / not requiredvar HeaderParameter: collectionof NameAndValue / / not requiredvar URLParameter: collectionof NameAndValue;var URLParameterEntry: NameAndValue;URLParameterEntry.Name = "SoID"; URLParameterEntry.Value = this.ID.content;URLParameter.Add (URLParameterEntry); var response = WebServiceUtilities.ExecuteRESTService ("JerryExternalService", "JerryExternal", HttpMethod, HttpResource,URLParameter, HeaderParameter,ContentType, Body); this.OutboundDeliveryID = response.Content;raise delivery_message.Create ("S", this.OutboundDeliveryID) At this point, I believe you have a deeper understanding of "how to use ABSL to consume third-party Restful API in SAP C4C". 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!

Tags: Consumption third party content model study work utility deeper code interest practicality practicality simplicity of operation method more friends website channel query Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi NVidia Redmi Shulou Tech Info Apple