Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Download PDF File to SAP Application Server

Hi,

I need to download the PDF file to SAP Application Server. Can any one please help me to Solve this Issue?

Thanks in Advance,

Kannan

Tags:
Former Member
Former Member replied

Assuming the PDF file resides on the PC:

REPORT ztest.

DATA: BEGIN OF itab OCCURS 0,
        field(256),
      END   OF itab.
DATA: dsn(100) VALUE '/usr/sap/xfr/FIS/testpdf'.

CALL FUNCTION 'GUI_UPLOAD'
     EXPORTING
          filename   = 'c:temptest.pdf'
          filetype   = 'BIN'
     TABLES
          data_tab   = itab.

OPEN DATASET dsn FOR OUTPUT IN BINARY MODE.

LOOP AT itab.
  TRANSFER itab-field TO dsn.
ENDLOOP.

Rob

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question