on 2022 Jan 21 4:53 PM
Hi Gurus,
I'm new to ABAP world, the requirement I have here is to consume data from ARIBA using Procurement API. Somehow I managed to test the whole process using Postman, But unfortunately I don't have any idea how to do the same using ABAP completely. Below are the activities I did in Postman.
1. Created a Post method in Postman to get access token - Success
2. Created a Post method to create a Template(Requisitions) in Postman Postman by sending the stricture as Body - Success
3. Created a Post method to get refresh Token in Postman Postman - Success
4. Created a Get method to get the template that I have created in point 2 in postman - Success
5. Created a Get method to get the actual data in postman - Success
I'm stuck at point no 2 in ABAP program, Any help is much appreciated. Belo is the body I'm trying to send it ARIBA

Regards,
Rambabu
Request clarification before answering.
Hi Rambau,
DATA(lo_client) = cl_web_http_client_manager=>create_by_http_destination( lo_dest ).
DATA(lo_request) = lo_client->get_http_request( ).
lo_request->set_text( '{"a": "b"}' ).
DATA(lo_response) = lo_client->execute( if_web_http_client=>post ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.