Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

10 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on 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 a 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

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 22, 2009 at 08:13 AM

    Hi

    In which format PDF data is stored on application server

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on 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 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.