Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error when opening an RFC connection

Former Member
0 Likes
1,119

Hello Everyone,

I am using Call Function HTTP_GET in my code ...

If I run Foregroung mode, I am connecting HTML Website, but if I use backgroung (I mean creating a job), I am taking 'Error when opening an RFC Connection' message ...

How can I solve that problem ?

Thanks and Regards

My Call Function :

CALL FUNCTION 'HTTP_GET'

EXPORTING

absolute_uri = uri

rfc_destination = dest

user = user

password = pwd

blankstocrlf = btocrlf

IMPORTING

status_code = status

status_text = statustext

response_entity_body_length = rlength

TABLES

response_entity_body = response

response_headers = response_headers.

3 REPLIES 3
Read only

Former Member
0 Likes
601

I think this link will be useful for u

[;

Read only

Former Member
0 Likes
601

Hi,

Please try using 'SAPHTTPA' as your RFC destination. Also the attched link may help you.

http://help.sap.com/saphelp_nwmobile71/helpdata/en/14/d9ad3cf7ca0855e10000000a114084/frameset.htm

Regards,

Tushar Shah

Edited by: tgshah on Feb 6, 2010 10:56 PM

Read only

Former Member
0 Likes
601

Dear Tushar,

Well, in fact, I tried , but I got a message again ...

Error message like that ...

"Connect Error: NiHostToAddr www.tcmb.gov.tr error: NIEHOST_UNKNOWN "

I mean, when I usage SAPHTTP, I am receiving "RFC Connection", if I use SAPHTTPA, I am receiving "NIEHOST_UNKNOWN"

What can I do ?

How can I solve it ?

Regards