04-22-2009 9:11 AM
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
04-22-2009 9:15 AM
Hi Rasheed,
Please try OPEN DATASET READ DATASET and CLOSE DATASET
Not sure whether it will work for PDF format.
Regards,
Manish
04-22-2009 9:13 AM
04-22-2009 9:16 AM
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
04-22-2009 9:15 AM
Hi Rasheed,
Please try OPEN DATASET READ DATASET and CLOSE DATASET
Not sure whether it will work for PDF format.
Regards,
Manish
04-22-2009 9: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
04-22-2009 9:32 AM
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
04-22-2009 10:01 AM
Hi
As per my Knowledge, we can upload/download text file (ASC format ) only to AL11.
Regards,
Sreeram
04-22-2009 10: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
04-22-2009 10:15 AM
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
04-22-2009 10: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
04-22-2009 10:22 AM
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
04-22-2009 10:27 AM
Hi,
You can use GUI_UPLOAD with file type
as BIN.
Hope it helps
Regards
Mansi
04-22-2009 10:46 AM
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
04-22-2009 10: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
02-01-2010 2: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.
01-08-2014 11:03 AM
Hello sir
we want to know how to save purchase order in desktop please advice me accordingly
rgds
sanjay kumar tamarker
01-08-2014 1: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