02-17-2020 10:09 AM
Hello Experts
Please guide ,
Scenario: I am making a POST API call in the Postman Tool. I get a response back with a Token in the body . I am trying to now call the same API in ABAP . I am not able to get the body of the response although the message status is successful (200) . Can you pls advise if i am missing anything .
Thanks
Parmesh
Postman Request Details
Response Details
ABAP Code
02-17-2020 11:28 AM
02-17-2020 12:59 PM
Thank you Sandra for replying . The lv_body is correctly formatted as json
3 weeks ago
3 weeks ago - last edited 3 weeks ago
Did you check "get_string_data"?
"response" should be the string and not an object.
2 weeks ago
Yes I tried.
This error message occurred in the trace:
Thanks for answering.
2 weeks ago
2 weeks ago
most probably the request is failing. can you check the value of the http_status?
Looking at the trace error, most probably there is an issue with the SSL connectivity. Maybe the root certificate is not added in STRUST?
What could also help finding out the issue is to put the request in the SAP Gateway Client (transaction /IWFND/GW_CLIENT) and do the get from there. There you have more visibility on status codes and error messages.
hope it helps