I want read PDF file from SAP directory and create a spool request or print
Hi all,
I want read PDF file from SAP directory and create a spool request or print the pdf through SAP. Can any body help me in this.
Also please write to me if its possible to open PDF from SAP directory to adobe pdf reader.
Thanks in advance,
Sunny
Hi Sunny,
Check these links.
http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm
http://www.erpgenie.com/sap/abap/pdf_creation.htm
http://www.geocities.com/mpioud/Z_EMAIL_ABAP_REPORT.html
http://www.thespot4sap.com/Articles/SAP_Mail_SO_Object_Send.asp
http://www.sapdevelopment.co.uk/reporting/email/attach_xls.htm
Hope this resolves your query.
Reward all the helpful answers.
Regards
Similar Messages
-
Upload PDF file from SAP Portal and save in SAP
A file in PDF format needs to be uploaded from SAP Portal and the file is to be saved in SAP. Request for help, how to do the same. What are the FM to be used etc..
Thanks,hi
Use FM GUI_UPLOAD with file type as BIN
there are similar threads...pls refer to them for more details:
https://www.sdn.sap.com/irj/sdn/profile?userid=3166533
Upload pdf file to SAP
PDF File
reward if helpful
regards,
madhu -
How to open and read many files from a directory and store contents in 2D array?
I want to make a VI that opens and reads the data from various files contained in a directory (200 files each with 2 columns) and store these in a single 2D array. For file number 1 I want to store the data from both columns in the 2D array, but for files 2 to 200 I only want to store the second column of each file. Can someone please help?
Hi Nadav,
Thanks for your help. I have followed your instructions but i cannot get it to work. I used the LIST DIRECTORY to list the files in the directory - that works. However, how do I read each of the 200 files using READ FROM SPREADSHEET FILE without me having to manually select each of the 200 files? So, if I use LIST DIRECTORY to list all 200 files in an array, how do I get each of these to open and store the data in a 2D array? Here is what I have done (File called read_files.VI) Could you please help me? Thank you very much in advance.
Attachments:
read_files.vi 18 KB -
I have read 118 files from a directory using the list.vi. Each file has 2 cols with 2088rows. Now I have the data in a 2 D array with 2cols and 246384rows (118files * 2088rows). However I want to put each file in the same array but each file in separate columns. then I would have 236 columns (2cols for each of the 118 files) by 2088 rows. thank you very much in advance.
Hiya,
here's a couple of .vi's that might help out. I've taken a minimum manipulation approach by using replace array subset, and I'm not bothering to strip out the 1D array before inserting it. Instead I flip the array of filenames, and from this fill in the end 2-D array from the right, overwriting the column that will eventually become the "X" data values (same for each file) and appear on the right.
The second .vi is a sub.vi I posted elsewhere on the discussion group to get the number of lines in a file. If you're sure that you know the number of data points is always going to be 2088, then replace this sub vi with a constant to speed up the program. (by about 2 seconds!)
I've also updated the .vi to work as a sub.vi if you wa
nt it to, complete with error handling.
Hope this helps.
S.
// it takes almost no time to rate an answer
Attachments:
read_files_updated.vi 81 KB
Num_Lines_in_File.vi 62 KB -
Hello,
I'm looking for a way to print a .pdf file from sap . The file was created manualy and is in a newtwork folder.
I have to send the print to a network printer . Is it possible to use the AcroRd32.exe as a command line?
Thank you.hii,
try this
CONVERT_OTFSPOOLJOB_2_PDF
http://help.sap.com/saphelp_nw04/helpdata/en/27/67443cc0063415e10000000a11405a/content.htm
PDF - Printing a PDF file from ABAP or SAP Script
regards,
Sri. -
Error when opening PDF files from SAP.
Hi Gurus
I have posted this question in ABAP Development section also. Please read the below text.
We are having a strange intermittent problem with Adobe Reader. When we try to open PDF files from SAP Frontend we get an error pop-up. The pop-up does not have any text. The title of the pop-up has "Adobe Reader". There is a blue question mark and an OK button.
This issue occurs few times a day in Windows Vista.
This issue does not occur in Windows XP.
Since past few weeks, we have been trying to find some error/warning/atleast some text in log files of SAP, OS, Adobe Reader, Registry entries, Event Viewer. So far, we have not found anything.
SAP is not able to help as this issue occurs intermittently and said when they tried, the issue did not occur. They made two attempts and in each attempt they tried 10 times to reproduce the issue. This issue occurs intermittently.
Environment
SAP R/3 4.7 EE SAP_Basis 620 Support Package 61
Windows Vista Enterprise
Adobe Reader 9.0 and Adobe Reader 9.1 (tried with both versions)
SAPGUI 710 Patch 12 (latest patch). It also occured in Patch 11.
Please suggest
Thank you
PavanNow I got to capture the screenshot, however not able to attach/upload here but it says:
'Reading Untagged Documents'
lets say i tried to open 6 page document then it said:
'This 6-page document is untagged and must be prepared for reading. While the document is being
analyzed, your assistive technology will not be able to interact with this application. '
then it asked for Reading options
then a checkbox for to confirm 'Always use the settings from the Reading Preferences (Do not show this dialog again)
then 'OK/START' and 'cancel' buttons
It seems, this is the problem with Adobe w.r.t Vista.
thanks
Bhudev -
FTP Adapter to read multiple files from a directory. Not through polling.
Dear Friends,
I would like to know is it possible to configure the FTP adapter in Oracle BPEL 10.1.3.4 to read multiple files (different names, same structure) from a given directory. I do not want the BPEL to do a polling. Instead when I submit the BPEL process it should read all files from the directory.
I was looking at the option of Synchronous read but I am not able to specify wild card in the file name field. I do not know the file names at the time of reading.
Thanks for your help!Hi,
While you read the file, you can configure an adapter property in 'Receive'. This will store the filename, this filename can be used for sync read as the input parameter.
1. Create a message type variable called 'fileheader'. This should be of type Inboundheader_msg (whatever relevant Receive activity).
2. This variable will contain three parts - filename, FTPhost, FTPPort
3. Copy this fileheader to 'Syncheader'.
4. syncheader can be passed as an adapter proerty during sync read of the file.
During Receive and Invoke, you need to navigate to 'Adapter' tab to choose the created message type variable.
Let me know if you have further questions.
regards,
Rev -
How do I read PDF files from the SARS website
How do I read PDF files from the SARS website
Got the latest version xi.0.08 of Abobe Reader
Operating system is win XP Sp3You need Adobe Reader or Adobe Acrobat or other PDF reading application installed on your system. Then just double click on the form or publication wanted and follow the prompts as needed.
-
How can I read pdf files from LabVIEW with different versions of Acrobat reader?
How can I read pdf files from LabVIEW with different versions of Acrobat reader?
I have made a LabVIEW program where I have possibility to read a PDF document. When I made this LabVIEW program it was Acrobat Reader 5.0.5 that was installed on the PC. Lather when the Acrobat Reader was upgraded to version 6.0, there was an error when VI tries to launch the LabVIEW program. And Later again when we upgraded to Acrobat Reader 7.0.5 I must again do some changes and rebuild the EXE files again
It isn't so very big job to do the changes in one single LabVIEW program, but we have built a lot of LabVIEW programs so this take time to due changes every time vi update Acrobat Reader. (We have build EXE files.)
The job is to right click the ActiveX container and Click "Insert ActiveX Object", then I can brows the computer for the new version of acrobat Reader. After this I must rebuild all the "methods" in the Activex call to make the VI executable again.
Is there a way to build LabVIEW program so I don't have to do this job every time we update Acrobat Reader?
This LabVIEW program is written in LabVIEW 6.1, but I se the problem is the same in LabVIEW 8.2.
Jan Inge Gustavsen
Attachments:
Show PDF-file - Adobe Reader 7-0-5 - LV61.vi 43 KB
Read PDF file.jpg 201 KB
Show PDF-file - Adobe Reader 5-0-5 - LV61.vi 42 KBhi there
try the vi
..vi.lib\platform\browser.llb\Open Acrobat Document.vi
it uses DDE or the command line to run an external application (e.g. Adobe Acrobat)
Best regards
chris
CL(A)Dly bending G-Force with LabVIEW
famous last words: "oh my god, it is full of stars!" -
Why won't Firefox launch Acrobat in order to read pdf files from a website?
My Firefox browser used to launch Acrobat to read pdf files from the web. Now it won't do it. Why not? What do I do to get it working again?
-
What are the commands available to read a file from application server and
What are the commands available to read a file from application server and store the file into an internal table?
Hi,
To read a file from an Application Server to an Object there is a command in ABAP called <b>READ DATASET</b>. After that file is transported to that object you have to do a loop and put that data in an Internal Table.
This statement exports data from the file specified in dset into the data object dobj. For dobj, variables with elementary data types and flat structures can be specified. In Unicode programs, dobj must be character-type if the file was opened as a text file.
For dset, a character-type data object is expected - that is, an object that contains the platform-specific name of the file. The content is read from the file starting from the current file pointer. After the data transfer, the file pointer is positioned after the section that was read. Using the MAXIMUM LENGTH addition, the number of characters or bytes to be read from the file can be limited. Using ACTUAL LENGTH, the number of characters or bytes actually used can be determined.
In a Unicode program, the file must be opened with an arbitrary access type; otherwise, an exception that cannot be handled will be triggered.
If the file has not yet been opened in anon-Unicode program, it will be implicitly opened as a binary file for read access using the statement
OPEN DATASET dset FOR INPUT IN BINARY MODE.
. If a non-existing file is accessed, an exception that can be handled can be triggered.
Influence of Access Type
Files can be read independently of the access type. Whether data can be read or not depends solely on the position of the file pointer. If the latter is at the end of the file or after the file, no data can be read and sy-subrc will be set to 4.
Influence of the Storage Type
The import function will take place irrespective of the storage type in which the file was opened with the statement OPEN DATASET.
If the file was opened as a text file or as a legacy text file, the data is normally read from the current position of the file pointer to the next end-of-line marking, and the file pointer is positioned after the end-of-line marking. If the data object dobj is too short for the number of read characters, the superfluous characters and bytes are cut off. If it is longer, it will be filled with blanks to the right.
If the file was opened as a binary file or as a legacy-binary file, as much data is read that fits into the data object dobj. If the data object dobj is longer than the number of exported characters, it is filled with hexadecimal 0 on the right.
If the specified storage type makes conversion necessary, this is executed before the assignment to the data object dobj. Afterwards, the read data is placed, byte by byte, into the data object.
System Fields
sy-subrc Meaning
0 Data was read without reaching end of file.
4 Data was read and the end of the file was reached or there was an attempt to read after the end of the file.
Thanks,
Samantak.
<b>Rewards points for useful answers.</b> -
How to hide display details in sap gui and create ad-hoc request in UWL?
Hi,
how to hide display "details in sap gui" and "create ad-hoc request" in UWL?
Please telme the step-by-step procedure to hide "details in sap gui" and "create ad-hoc request".
Thanks,
RashmiHi,
Thanks for the information. It was very helpfull.
Can you please tellme where can we fine UWL iView? I tried to find this out in two ways.
1) Portal Content -> Content Provided by SAP -> End User Content -> Standard Portal Users -> Views -> com.sap.coll.iviews -> Universal Worklist (finally i got this iView). Here i dint find any property called "List of UWL Actions to exclude". In the link which you had given, its written that we can modify the iView and add the name of the actions under the Actions to exclude from the UWL property.
Which iView do we need to modify and where can i find that property?
2) I downloaded the xml file and then tried to find this property "List of UWL Actions to exclude" or " Actions to exclude from the UW". But i couldnt find both the properties in xml file.
Thanks,
Rashmi -
Open PDF file from SAP ?
Hi gurus,
Is there any FM or command that We can open a pdf file from our computer , This means that Open pdf with Acrobat reader but will be triggered in ABAP .
ThanksHi,
First you need to download the pdf file onto the frontend computer then the MF WS_EXECUTE will do the job:
CALL FUNCTION 'WS_EXECUTE'
EXPORTING
document = 'X'
program = path_document
EXCEPTIONS
frontend_error = 1
no_batch = 2
prog_not_found = 3
illegal_option = 4
gui_refuse_execute = 5
OTHERS = 6.
A good directory to download you file would be the SapWorkDir, I have seen in the standard that sap get this directory using WS_QUERY:
CALL FUNCTION 'WS_QUERY'
EXPORTING
query = 'CD'
IMPORTING
return = path_for_copy
EXCEPTIONS
inv_query = 1
no_batch = 2
frontend_error = 3
OTHERS = 4.
Hope it helps
Regards,
Renaud Wanschoor -
Reading only Image Files from a Directory and ignoring the rest
i am wanting to be able to read a directory but only obtain the Image files (ie, gif, jpeg, tiff, png etc) and ignore all other type of files.
i have made a custom ImageFIlter class which extends FileFilter which works for adding a photo singly, as only image files are shown in the JFileChooser. however i am wanting to add a folder of photos at once.
here is the code so far:
File dir;
JFileChooser fc = new JFileChooser();
fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
//Handle open button action.
int returnVal = fc.showOpenDialog(MainAppGUI.this);
if (returnVal == JFileChooser.APPROVE_OPTION) {
dir = fc.getSelectedFile();
if (dir.isDirectory()) {
File[] files = dir.listFiles(new ImageFilter());
for (int i = 0; i < files.length; i++) {
if (files.isFile()) {
try {
Photo PhotoAdded = workingCollection.addManyPhotos(files[i], canvas.getChangedMaxDim());
//need to also add it to the relevant vectors, ie
//for mouse over operations, or photos added after
//save.
if(!workingCollection.isDuplicate()){
photosToCheck.add(photoAdded);
canvas.addToGrid(photoAdded);
photosAddedAfterLoad.add(photoAdded);
canvas.repaint();
else{
//do nothing as it is already in the vectors.
} catch (Exception er) {
// Do nothing. Bad mp3, don't add.
// recurse through directories
else {
} else {
try {
throw new IOException(
"Error loading files from a directory: "
+ dir.getAbsolutePath() + " is not a "
+ "directory");
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
any ideas?I'm confused.
You already ARE using a FileFilter to only pick up image files. Whats the problem?
If you need to recurse directories you need to change your code only a little.
Write your method
JFileChooser fc = new JFileChooser();
fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
//Handle open button action.
int returnVal = fc.showOpenDialog(MainAppGUI.this);
if (returnVal == JFileChooser.APPROVE_OPTION) {
dir = fc.getSelectedFile();
if (dir.isDirectory()) {
scanDirectory(dir);
else{
// not a directory
public void scanDirectoryForPhotos(File directory){
// taking your code
if (dir.isDirectory()) {
File[] files = dir.listFiles(new ImageFilter());
for (int i = 0; i < files.length; i++) {
if (files.isFile()) {
// details deleted
// recurse through directories
else {
scanDirectory(files[i]);
Your exception handling is a little strange. You throw an exception only to catch it immediately to print a stack trace? Not exactly the most common handling I've seen. You should probably just throw the exception and let the next level down handle it.
Cheers,
evnafets -
We have a Hp Split 13 x2 pc and downloaded your app to enable us to read pdf files on our Wells Fasrgo financial app site. Why isn't it retrieving these files?
Thanks...So annoying. I have over 80 files.
I will keep hunting and see how I go.
Thanks for your help! ANy other help would be great
Maybe you are looking for
-
IPod touch 4th gen no longer plays video on TV
Can anyone tell me exactly why I can no longer play ANY (personal, purchased, downloaded) videos or pictures from my iPod 4th Generation to my TV with the same cables I've been using for several months to do just that? I no longer have the "TV outpu
-
I am unable to watch a HD quality movie I purchased on Itunes store, cannot watch connecting my Laptop (Ultrabook) to Sony Bravia LED. I get some message stating HD quality is not compatiable. Can any one help solve this? Otherwise it is useless to b
-
Change wording in Table of Contents
In the Table of Contents is it possible to change the text that says "Slide Title" to something else? Thanks.
-
Clamshell ibook keyboard problem
I just added some RAM to a 300 mhz blueberry clamshell iBook and upgraded to OS X. Everything went smoothly until it came time to type in the registration info, when I discovered that one diagonal row of keys on the keyboard -- the 9 O L and . keys,
-
Business XI 3.0 to 3.1 upgrade : License
Hi Team, We are using Business Objects XI 3.0 with enterprise license and would like to upgrade to BO XI 3.1 by uninstalling 3.0 and installing 3.1 from scratch. Can we use the 3.0 Enterprise license key code for 3.1 as well? Thanks in advance.