Application Development 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: 

Problems downloading file info from https - Fieldglass

vicky_anselmi
Explorer

Hello all,

I need to download in an internal table the contents of an CSV file that is placed in an URL in Fieldglass.

The url opens a popup to select the directory where to save the file, but what I need is to read it from ABAP to an internal table.

I have tried several things and read lots of threads and still I can´t solve this.

When I use function  'HTTP_GET_FILE'  using an RFC I was provided and test connection to www.fieldglass.net is ok I´m getting the error:

Illegal destination type 'G'.

Message No. 04108


I also tried calling the function just with URL but also got an error:

Connect Error: OpenSSL not available

Message No. 04100

Then I tried to use class  cl_http_client.

Methods  create_by_url,  set_header_field,   set_header_field,  schemetype_https,  send and listen seem to be exectuted ok, but method receive (where I supposed the data may apppear) returns error.

I also tried using functions 'HTMLCNTL_CREATE', 'HTMLCNTL_INIT', 'HTMLCNTL_SHOW_DATA' -> here I send the url, but this last one of course shows the popup I don´t want, because I need to put datadirectly in an internal table.

Is it possible that the link with the popup isnot usefull and I need a different one? What else can I try?

Thanks a lot in advanced,

Vicky

1 ACCEPTED SOLUTION

Former Member

Try asking Fieldglass if there is way to connect it via SFTP instead of HTTPS, then you can use different adapter to get file.

4 REPLIES 4

Former Member

Try asking Fieldglass if there is way to connect it via SFTP instead of HTTPS, then you can use different adapter to get file.

0 Kudos

I´ll ask that and will let you know, thanks!

LeonardoGomez
Advisor
Advisor

Hi Vicky,

The SSL error means that is not able to establish a secure connection. If your url starts with HTTP it will use an unsecured connection, and if it starts with HTTPS it will use encryption. So one of the two endpoints is failing to achieve the handshake over a https protocol.

It's crucial for you to see how the request is being generated. So I advice you to turn on the HTTP trace with transaction ST01. Do you see any entries on that log?

Regards,

Leonardo.

JutVil
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi there

For future reference, and since some things changed since 2016: here a link to the SAP Fieldglass helpportal for more information on integrations of SAP Fieldglass and SAP products or other applications: https://help.sap.com/viewer/product/SAP_Fieldglass/Cloud/en-US?task=integrate_task

Best,

Jutta