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: 

Reading a zip with multiple text files from the application directory

Former Member
0 Kudos

Hi,

We require to upload a zip file with multiple text files, sort the text files and upload the content of the text files to data base table.

Eg:

zip file : testing.zip

contains text files : a.txt, b.txt, c.txt, d.txt and e.txt.

Need to get the names from the testing.zip file, sort the text files, move the data of the text files to Internal table.

Parameter would be the directory in which the file is upload on periodic basis.

The file has to be picked up on a batch job from the specified directory.

Any suggestion how to proceed.

Regards,

Vas

1 REPLY 1

Former Member
0 Kudos

Hi,

u can use DECOMPRESS_TEXT/DECOMPRESS_BINARY of class CL_ABAP_GZIP for Unzipping a file.

Thanks

Amitava