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 in function module HTTP2_GET

Former Member
0 Likes
936

Hi,

I am using fm http2_get which retrieves the data from a url which works fine in ECC system but when i am calling it from PORTAL system then it gives an error "error when opening rfc destination".

CALL FUNCTION 'HTTP2_GET'

         EXPORTING

           absolute_uri                = uri

           rfc_destination             = 'SAPHTTP'

*          user                        = user

*          password                    = pwd

           blankstocrlf                = btocrlf

         IMPORTING

           status_code                 = status

           status_text                 = statustext

           response_entity_body_length = rlength

         TABLES

           response_entity_body        = gt_img_blob

           response_headers            = response_headers.


In uri i am passing the url of document which is to be retrieved .

Thanks

Shivraj

3 REPLIES 3
Read only

sandeep_katoch
Contributor
0 Likes
685

Hi Shivraj,

Try using this FM

SCMS_MON_POOL_TEST_URL

BR,

Sandeep Katoch

Read only

0 Likes
685

Hi sandeep,

this fm is also internally using the fm http2_get

Thanks

Shivraj

Read only

0 Likes
685

Yes I know, but this is passing the RFC destination by default i guess..

just give a try and check..

BR,

Sandeep Katoch