on 09-04-2018 8:20 AM
Hi guys,
I am facing problems with the function module HTTP_GET.
I am using this method to check the return code of a certain website.
When I test (via F8) my method that calls the fm HTTP_GET, the connection is created and I get a return code.
But when I navigate to the sport where the method is called in Web UI, I get the following error from the function module:
"Error opening a rfc connection (Function: 'exec_sapgui' #Function: 'exec_sapgui' #CPIC-Call: 'ThSAPOCMINIT', comm).
The function module HTTP_GET can be tested with the report RSHTTP20 which works fine as well.
Do you have any suggestions what I could try next?
Thank you very much.
Chris
I would switch from the FM HTTP_GET to class cl_http_client and use it (with REST one if you need some RESTful operations).
From the message error, it seems HTTP_GET calls the SAPGui (maybe does it ask user and password via popup? ) and, in Web UI, this is not possible.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.