Skip to Content
avatar image
Former Member

How to save multiple files pdf in zip folder?

Hi everyone any idea about adobe interactive file,

when I have one program generate multiple pdf files so I want save and zip to local drive?

Warm regards,

Keu.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Aug 12, 2013 at 03:48 AM

    Hi Keu,

    Hope this help you. 😉

    DATA:  lo_zip type ref to cl_abap_zip,
    BEGIN OF ls_pdf,
    file_name type string,
    content   type xstring,
    END OF ls_pdf,
    lt_pdf like standard table of ls_pdf,
    lv_zip_contend type xstring.

    "Supply pdf file to lt_pdf

    CREATE OBJECT LO_ZIP.
    LOOP AT LT_PDF INTO LS_PDF.
    lo_zip->ADD(
    exporting
    NAME    = LS_PDF-FILE_NAME    " Name (Case-Sensitive)
    CONTENT = LS_PDF-CONTENT
    ).
    ENDLOOP.     
    LV_ZIP_CONTEND = LO_ZIP->SAVE( ).

    Best regard,

    Sopharo

    Add comment
    10|10000 characters needed characters exceeded