Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

PDF file from presentation to AL11

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Rasheed,

Please try OPEN DATASET READ DATASET and CLOSE DATASET

Not sure whether it will work for PDF format.

Regards,

Manish

16 REPLIES 16

Former Member
0 Kudos

Hi

In which format PDF data is stored on application server

0 Kudos

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

Former Member
0 Kudos

Hi Rasheed,

Please try OPEN DATASET READ DATASET and CLOSE DATASET

Not sure whether it will work for PDF format.

Regards,

Manish

Former Member
0 Kudos

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

0 Kudos

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

sreeramkumar_madisetty
Active Contributor
0 Kudos

Hi

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

Regards,

Sreeram

Former Member
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

Hi Manasi,

I had PDF file in desktop need to have same file in sap directory.

The PDF file may contain any data.It may contain picture,phone bills,employee salary,buliding plan etc,

Regards

0 Kudos

Hi,

You can use GUI_UPLOAD with file type

as BIN.

Hope it helps

Regards

Mansi

0 Kudos

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.

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hello sir

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

rgds

sanjay kumar tamarker

Former Member
0 Kudos

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