Skip to Content
avatar image
Former Member

PDF file from presentation to AL11

Hi,

I want to save PDF file from my desktop to AL11.

if the user clicks on the file path PDF file shoud open .

i tried CG3Z T code.but its not working,

Any Inputs

Regards

Rasheed

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

10 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 22, 2009 at 08:15 AM

    Hi Rasheed,

    Please try OPEN DATASET READ DATASET and CLOSE DATASET

    Not sure whether it will work for PDF format.

    Regards,

    Manish

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 22, 2009 at 08:22 AM

    Hello,

    We cannot store the PDF file in applicaiton server.

    u can try with the Tcode:SXDA_TOOLS this is used to save the file in applicaiotn server.

    Object type DXPROJECT

    Program type BAPI

    Program CREATE

    Click on Copy button

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      No,

      Its not working ,working same CG3z T code

      OR

      is there any T Code in SAP where we can save our PDF files from desktop.

      Edited by: Rasheed salman on Apr 22, 2009 10:40 AM

  • avatar image
    Former Member
    Apr 22, 2009 at 09:19 AM

    Hi,

    You can upload your file from the presentation server

    into one internal table having structure same as that of

    flat files structure then you can use statements to download

    the internal table content on to the application server:

    
    
    data: w_dataset1(27) value '/test_var/textfile.txt', 
    w_dataset2(27) value '/test_var/outfile.txt'. 
    
    *Downloading text file to Application server. 
    open dataset w_dataset2 for output in text mode. 
    loop at itab.                                                       "internal table having data
    transfer itab to w_dataset2. 
    endloop. 
    close dataset w_dataset2.
    
    

    Hope it helps

    Regards

    Mansi

    Add comment
    10|10000 characters needed characters exceeded

    • Hi rasheed,

      YOu cannot directly view the PDF from AL11.

      As others mentioned, you can STORE the pdf on the application server using GUI_UPLOAD methis, file type as BIN and then use OPEN dataset, tranfer, close dataset statements to put the file in the application server.

      Later, you can use GUI_DOWNLOAD to download it back to desktop to view it.

      upload-pdf-file-to-sap

      Once the data is uploaded inthe form of BIN data, you can use the function modules

      CONVERT_OTF_AND_ARCHIVE

      CONVERT_OTF_AND_FAX

      CONVERT_OTF_AND_MAIL

      to send as email or fax..

      Regards,

      Ravi Kanth Talagana

  • avatar image
    Former Member
    Apr 22, 2009 at 09:56 AM

    Hi Rasheed,

    As others said, you read the file in binary mode using gui_upload.

    Then write that ITAB in binary mode into application server.

    If you want to retrieve this file ( pdf file ) ,then read the dataset in binary mode into an ITAB and again download it on to presentation server with extension as .pdf.

    PDF is a file format understandable on your presentation server because you have adobe installed in your PC, but application server doesn't have such things, so even if you write a dataset with .pdf extn they are just files.

    hope this clarifies.

    You can try this by reading .jpg .jpeg or anyother files in binary and store them in app server and again reconstruct them back in same format.

    Simha

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 22, 2009 at 08:13 AM

    Hi

    In which format PDF data is stored on application server

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      If I use ASC in the above mention T code its going in dump

      if I use BIn the file is stored which data cant be seen

  • avatar image
    Former Member
    Apr 22, 2009 at 09:01 AM

    Hi

    As per my Knowledge, we can upload/download text file (ASC format ) only to AL11.

    Regards,

    Sreeram

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 22, 2009 at 09:08 AM

    You try this,

    You download the data into an internal table in ABAP program. There use OPEN DATASET in BINARY MODE, READ DATASET, CLOSE DATASET.

    Regards,

    Joan

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      I have file in my desktop in PDF Format. I shd have the same file in my SAP directory in PDF format only

      Any inputs plz

      Regards

      Edited by: Rasheed salman on Apr 22, 2009 11:16 AM

  • avatar image
    Former Member
    Feb 01, 2010 at 02:09 PM

    Hello,

    Use Function module ARCHIVFILE_CLIENT_TO_SERVER

    First create report program through se38

    call FM ARCHIVFILE_CLIENT_TO_SERVER

    Path = 'Desktop path'

    Target path = '/ app/server/dir'

    Use this FM to any type of file transfer.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 08, 2014 at 11:03 AM

    Hello sir

    we want to know how to save purchase order in desktop please advice me accordingly

    rgds

    sanjay kumar tamarker

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 08, 2014 at 01:17 PM

    Dear Sir,

    We want a List of Items which are supposed be delivered by 31.12.2013 but not supplied. Please let us know T CODE in MM Module and how this report will be generated.

    Anticipating your cooperation in this regard.

    Thanking you,

    Sushil Rana

    Add comment
    10|10000 characters needed characters exceeded