Skip to Content
author's profile photo Former Member
Former Member

To upload the ZIP file and get the filenames available in ZIP file in ABAP

Hi Experts,

For my requirement, file from legacy comes as ZIP file with number of files in that.

Please provide one code sample to upload the ZIP file from local workstation and get the filenames available in ZIP file to check few filename validation checks for the available files in report program.

Thanks in Advance,

Regards,

Basani

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 18, 2009 at 04:42 AM

    Hi

    Thank you for the response, but i have not identified the FM 'RFC_REMOTE_PIPE' in ECC 6.0. Pelase provide me the alternative approch for this.

    Thanks

    Regards,

    Basani

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 18, 2009 at 04:19 AM

    1. Copy the ZIP file into App server

    2. Call function

      call function 'RFC_REMOTE_PIPE'
        destination 'SERVER_EXEC'
        exporting
          command = command  " Unzip command gunzip /path & file
          read = 'X'
        tables
          pipedata = std_lines
    

    then you can read the files and can validate the file names

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.