2020 Feb 17 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
2020 Feb 17 11:28 AM
2020 Feb 17 12:59 PM
Thank you Sandra for replying . The lv_body is correctly formatted as json
2024 Apr 15 3:04 PM
2024 Apr 16 12:50 PM - edited 2024 Apr 16 1:05 PM
Did you check "get_string_data"?
"response" should be the string and not an object.
2024 Apr 17 9:09 PM
Yes I tried.
This error message occurred in the trace:
Thanks for answering.
2024 Apr 17 9:15 PM
2024 Apr 18 8:04 AM
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