Skip to Content
avatar image
Former Member

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 03, 2005 at 09:18 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Rob,

      Can you please help me in this issue.

      I have to read the spool already in pdf format as it is created by adobe form

      and write to application server in pdf format. Please guide me achieve this.

      Thanks and Regards

      Manu

  • avatar image
    Former Member
    Nov 09, 2014 at 03:34 PM

    Hello ,

    I have PDF in binary format in my SAP system and not in PC. How can i upload it to application server?

    Please put your valuable comments.

    Regards,

    Akriti

    Add comment
    10|10000 characters needed characters exceeded