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: 

Download file from url

Former Member

Hi,

I got url link to download ZIP file. There is xml file in int.

I have to use data from this file in my raport to update database table.

Does anybody know how can I download this file and unpack it?? To internal table for example??

regards,

Michal

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor

Download :

Perform some search on class CL_HTTP_CLIENT (look at report RSHTTP01 for sample) or FM HTTP_GET (look at RSHTTP20 for sample)

Unzip :

Perform some search on classes CL_ABAP_ZIP or old CL_ABAP_GZIP or execute command in server, FM SXPG_CALL_SYSTEM or use DATASET statement with option FILTER 'uncompress'.

Regards,

Raymond

4 REPLIES 4

Former Member
0 Kudos

Hi Michal,

Just tell your end user, no way to this. Let them download the ZIP file first to local and unpack it, Then run you report.

Regards,

Archer

raymond_giuseppi
Active Contributor

Download :

Perform some search on class CL_HTTP_CLIENT (look at report RSHTTP01 for sample) or FM HTTP_GET (look at RSHTTP20 for sample)

Unzip :

Perform some search on classes CL_ABAP_ZIP or old CL_ABAP_GZIP or execute command in server, FM SXPG_CALL_SYSTEM or use DATASET statement with option FILTER 'uncompress'.

Regards,

Raymond

0 Kudos

wow, cool. Never know this two class.

0 Kudos

Thank you

I used:

CALL FUNCTION 'HTTP_GET'

....

CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'

...
CALL FUNCTION 'SCMS_BINARY_TO_TEXT'

...


and I got data in internal table as text


Regards,

Michal