Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to consume Put Blob API using ABAP

praveensap
Explorer
6,211

Dear All,

I have a requirement in which I have to put the data on azure blob container and retrieve the data.Our system is connected to Azure cloud using APIs provided by apigee and they have provided APIs to put the blob data and get access token.

Anyone has any idea how to call it from using ABAP?

Below are the parameters which I have to pass for doing this.

Get SAS token -

Put Blob -

Please let me know.

Thanks & Regards,

Praveen

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
4,804
  • You could use the http(s) interface -> perform some search on forum for classes or interfaces like cl_http_client and if_http_client and methods like create, set_header_field, set_cdata, send, receive, etc.
  • You could also consume the rest services that are provided either thru http as previously or thru use of web-service -> perform also some search on the forum

Dear All,

I have a requirement in which I have to put the data on azure blob container and retrieve the data.Our system is connected to Azure cloud using APIs provided by apigee and they have provided APIs to put the blob data and get access token.

Anyone has any idea how to call it from using ABAP?

Below are the parameters which I have to pass for doing this.

Get SAS token -

Put Blob -

Please let me know.

Thanks & Regards,

Praveen

6 REPLIES 6
Read only

RaymondGiuseppi
Active Contributor
0 Likes
4,805
  • You could use the http(s) interface -> perform some search on forum for classes or interfaces like cl_http_client and if_http_client and methods like create, set_header_field, set_cdata, send, receive, etc.
  • You could also consume the rest services that are provided either thru http as previously or thru use of web-service -> perform also some search on the forum
Read only

0 Likes
4,801

Hi Raymond,

Thanks for your suggestion.

I am using CL_HTTP_CLIENT and I need to fill up client key and client secret in body instead of authorization in headers but I can see only headers in this class.

But how we will fill up the body parameters in code? This is screenshot of postman where we tested the API and it is working as it should.

Please let me know how we can adopt it in ABAP code.

Thanks & Regards,

Praveen

Read only

0 Likes
4,801

Hi Raymond,

We need to fill set_form_field method for that.

I am able to get the response back.

Thanks & Regards,

Praveen

Read only

0 Likes
4,801

Hi Praveen,

I also have a similar situation. Can you please let me know what steps you have performed on your end to be able to connect.

Regards,

Jyothir Aditya

Read only

Former Member
0 Likes
4,801

Hi Praveen,

Could you please share the steps you have followed to achieve this requirement.

we have same requirement from client end.

Thanks

Dhananjay

Read only

0 Likes
4,801

We can consume a data service by using the method CREATE_BY_URL of the class CL_HTTP_CLIENT, but when authentication is involved this method is ill suited for it.

The CREATE_BY_DESTINATION method however enables us to store the Credentials in a more standard and secured fashion.

Sample code I implemented successfully in order to acquire the Bearer token from AD:
https://github.com/MartinPankraz/AzCosmosDB-OData-Shim/blob/main/ZDemoFrontDoorReport.abap