on 2025 Feb 10 3:19 PM
Hello SAP Community,
I have developed an ABAP program in the ABAP Environment on SAP BTP that calls an external API. The request works fine when the response time is short, but when the request takes longer, I get a timeout error:
"The operation was timeout."
I would like to know:
Here is a simplified version of my HTTP request implementation:
DATA(lo_destination) = cl_http_destination_provider=>create_by_url( c_api_endpoint ).
DATA(lo_client) = cl_web_http_client_manager=>create_by_http_destination( lo_destination ).
....
DATA(lo_response) = lo_client->execute( i_method = if_web_http_client=>post ).
Any guidance or best practices would be greatly appreciated.
Thanks in advance!
Request clarification before answering.
As you are using a destination (cl_web_http_client_manager=>create_by_http_destination( lo_destination )), you can also specify a timeout in the destination: go to transaction SM59, open the destination used here and then modify the timeout on the "Special Options" tab.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
61 | |
7 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.