Skip to Content
0

How to consume Put Blob API using ABAP

Jan 12 at 06:12 AM

135

avatar image
Former Member

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

get-sastoken.jpg (38.5 kB)
put-blob.jpg (30.4 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Raymond Giuseppi
Jan 12 at 06:31 AM
0
  • 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
Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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

0
Former Member
Former Member

Hi Raymond,

We need to fill set_form_field method for that.

I am able to get the response back.

Thanks & Regards,

Praveen

0