Download a Spool job to UNIX ???
Hi techies:
<b>I have an urgent request from client. They need to download a Spool job(report format) to UNIX directory.</b> Is there any standard SAP function routine that does this function???
PLEASE help - they have many reports that they want to spool .. and then
save this spool job in UNIX directory.
thanks for all your support and assistance.
SB
Hello Seshu:
This fm <b>RSPO_DOWNLOAD_SPOOLJOB is not working to download to
UNIX - unless I am missing something???</b>It does work to download to regular flat text file on local server
HELP!!
thanks
SB
Similar Messages
-
Multiple invoices(spool jobs) download to multiple PDF files or 1 PDF file
Hello techies:
Has anyone written a program that takes the spool jobs of multiple Invoices from table TSP01 and then download these multiple invoices to multiple PDF files or to
One PDF file depending on selection screen?
This is an urgent request from client for archiving. Any help is highly appreciated !
Thanks so much
SilviaBHi Chris
Try printing from another browser, such as Firefox. There have been issues between eBay's coding practices and how Safari interprets them. -
Download PDF spool to unix file system
Does anyone know how to programatically download a PDF document spool to the unix file system?
I am trying to find a method to send PDF documents that have gone to spool to a unix file system. If anyone had any ideas on how to do this, please let me know.
Thanks.Hi,
For this define a logical file while using transaction FILE.
In your code you will get the complete path of the file while using FM FILE_GET_NAME.
Then download your PDF while using instruction
OPEN DATASET...
TRANSFERT ...
Hope this help you .
Best regards -
How to download all spool order
hello:
i would like ask one favor, i make a program and i dicided to ejecuted in batch(because the ejecution could have many data), that bathc generated a job and spool order , but when i try to open it , the system send me a message, 'you will only see 10 page of the total', so when i try to download the spool order only download the 10 pages but i need to have all the information in this case i would like to see 25 pages.
so , my question is, is there are any way to download all the spool order, i am taking about the complety file in this case the 25 pages?
i already have used the tool that sap offers, ---save in a local file(but only save the 10 page instead of the 25 pages), and i also i have used the function to convert the spool order to pdf file, but this opcion move the format of my information, i think one option to TXT will be better.
thanks a lot fo you help.In SP01/SP02 specify the spool number & click the list to view
Click on Settings button & change the FROM and TO values.
You can mention like 0 to 25 but it will show an info that "Memory Overflow" -
Hi all,
suppose i have run a report in Background and generated a spool.
How to download that spool file into local file.
thnak you
sunny.hi
you can use the FM , once the background job is schedules you can find the spool number
in the system variable sy-spono pass that to this FM
CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
EXPORTING
rqident = spoolid
first_line = 1
last_line = 0
desired_type = ' '
IMPORTING
real_type = real_type
sp_lang = sp_lang
TABLES
buffer = so_table
EXCEPTIONS
no_such_job = 1
job_contains_no_data = 2
selection_empty = 3
no_permission = 4
can_not_access = 5
read_error = 6
type_no_match = 7
OTHERS = 8. -
Downloading 108 spool files: Any FM?
Hello,
Need your help with downloading 108 spool files.
I have scheduled 108 jobs and now I have to download data of all these 108 spools into excel files (from various PRD systems).
One way is I go to System -> List -> Save -> Local File.
However I don't want to use this.
Neither I have option to create program in SE38, as I don't have access to same.
Please advice if theree is any standard program or function module which can help me in this.
Will be very thankful.
Regards,
Surpreet Singh Balhttp://www.sapfans.com/forums/viewtopic.php?f=13&t=316295
form download_selected tables lsporq type sp01r_tview
changing rs_selfield type slis_selfield.
data: rqnum like sy-tabix,
filename like rlgrap-filename,
dw_rc type sy-subrc.
perform get_selected3 tables lsporq
using ' ' rs_selfield changing rqnum.
if rqnum > 0.
loop at lsporq where selected = 'X'.
filename(3) = lsporq-sys.
filename+3(10) = lsporq-rqid_char.
filename+13(4) = '.TXT'.
move-corresponding lsporq to tsp01sys.
call function 'RSPO_CHECK_OUTRQ_PERMISSION'
exporting
spoolreq = tsp01sys
access = 'DOWN'
exceptions
others = 1.
if sy-subrc <> 0.
out_message ti.
* MESSAGE i059 WITH tsp01sys-rqident tsp01sys-sys.
else.
gprog = 'RSPO_DOWNLOAD_SPOOLJOB'.
if lsporq-sys = sy-sysid.
call function 'RSPO_DOWNLOAD_SPOOLJOB'
exporting
id = lsporq-rqident
fname = filename
exceptions
others = 1.
else.
call function 'RSPO_DOWNLOAD_SPOOLJOB'
destination lsporq-sys
exporting
id = lsporq-rqident
fname = filename
exceptions
communication_failure = 102 message msg_text
system_failure = 103 message msg_text
others = 1.
endif.
dw_rc = sy-subrc.
out_rfc_message lsporq-sys ti.
endif.
endloop.
if dw_rc = 0.
message s028.
endif.
endif.
endform. "DOWNLOAD_SELECTED -
Hi,
We have scheduled a background job for archiving the data and would like to download all the spool files generated...
There are about 300 spool files..instead of downloading each spool file data is there any way where we can download all the spool files at one time..
Regds,
Satyanarayana N.Hi Satya,
Pretty simple. In SP01 Select all the relevant spools using select all option and then from menu select:
Spool Request>Forward-->Export as text.
The spools will get saved as seperate individual files under SAPWORKDIR which will located inside Documents and Settings for user (Windows).
Regards.
Ruchit. -
How to download from spool to application server
Hi all,
Can any one tell me how to download from spool to application server. Quick response would be appreciated.
thanks
maheshHi Kilaru,
Please find the sample code for your req,t and let me know if you found any difficulty on the same.
<b>Just copy paste the code :</b>
This will Convert spool to PDF format and download.
data: w_ident like tsp01-rqident,
w_doctype like tsp01-rqdoctype,
w_bytecount type i.
data: itab_pdf like tline occurs 0 with header line.
parameter spoolnum like tsp01-rqident obligatory.
selection-screen begin of block a2 with frame.
parameters: to_pc radiobutton group a2 default 'X',
pcfile like rlgrap-filename lower case,
to_unix radiobutton group a2,
unixfile(255) lower case.
selection-screen end of block a2.
at selection-screen on block a2.
if to_pc = 'X' and pcfile is initial.
message e398(00) with 'Enter PC File Name.'.
elseif to_unix = 'X' and unixfile is initial.
message e398(00) with 'Enter Unix File Name.'.
endif.
at selection-screen on spoolnum.
select single rqident rqdoctype
into (w_ident, w_doctype)
from tsp01
where rqident = spoolnum.
if sy-subrc ne 0.
message e398(00) with 'Spool' spoolnum 'not found'.
endif.
at selection-screen on value-request for pcfile.
call function 'WS_FILENAME_GET'
exporting
mask = ',.,..'
importing
filename = pcfile
exceptions
others = 1.
if sy-subrc <> 0.
message id sy-msgid type 'I' number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
start-of-selection.
if w_doctype = 'LIST'.
perform get_abap_spool_in_pdf.
elseif w_doctype = 'OTF'.
perform get_otf_spool_in_pdf.
endif.
if to_pc = 'X'.
perform write_pdf_spool_to_pc.
else.
perform write_pdf_spool_to_unix.
endif.
message i398(00) with 'Completed OK'.
form get_abap_spool_in_pdf.
refresh itab_pdf.
call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
exporting
src_spoolid = w_ident
importing
pdf_bytecount = w_bytecount
tables
pdf = itab_pdf
exceptions
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
others = 12.
if sy-subrc ne 0.
message e398(00) with 'Cannot convert to PDF. Error =' sy-subrc.
endif.
endform.
*********************************************************form get_otf_spool_in_pdf.
refresh itab_pdf.
call function 'CONVERT_OTFSPOOLJOB_2_PDF'
exporting
src_spoolid = w_ident
importing
pdf_bytecount = w_bytecount
tables
pdf = itab_pdf
exceptions
err_no_otf_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_dstdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
others = 12.
if sy-subrc <> 0.
message e398(00) with 'Cannot convert to PDF. Error =' sy-subrc.
endif.
endform.
*********************************************************form write_pdf_spool_to_unix.
open dataset unixfile for output in binary mode.
if sy-subrc ne 0 .
message e398(00) with 'Cannot open unix file for output:' unixfile.
endif.
loop at itab_pdf.
transfer itab_pdf to unixfile.
if sy-subrc ne 0 .
message e398(00) with 'Cannot write to unix file:' unixfile.
endif.
endloop.
close dataset unixfile.
endform.
*********************************************************form write_pdf_spool_to_pc.
call function 'WS_DOWNLOAD'
exporting
bin_filesize = w_bytecount
filename = pcfile
filetype = 'BIN'
tables
data_tab = itab_pdf
exceptions
file_open_error = 1
file_write_error = 2
invalid_filesize = 3
invalid_type = 4
no_batch = 5
unknown_error = 6
invalid_table_width = 7
gui_refuse_filetransfer = 8
customer_error = 9
others = 10.
if sy-subrc <> 0.
message e398(00) with 'Cannot download to PC. Error =' sy-subrc.
endif.
endform.
Hope this will help you.
Cheers
Sunny
Rewrd points, if found helpful -
Hi,
I am tryiing to print the COBRA letters from the program RPUCOB02 and i am selecting uptodate radio button.
I am not facing the error when i select one employee and give the letter print.when i try to select more that one employee and click on letter generate buton it is throwing an error "cannot generate a new spool job"
It is working fine with the first employee.
when i went to into the debug mode in the Inlcude for COB02F03 of the program RPUCOB02 , there is open_form and it is dispalying the 104 exception " Error when opening layout set printing" for the second ee.
can anyone let me know how i can eliminate the error
Thanks.Anjani & Raj,
This worked for me as a bandaid fix.... didnt do much reasearch... looks like after printing first employee the system is trying to create a new spool request again.... follwoing work around worked for me and may work for you too....
In the First component of the COBRA User Exit - ZXPCOU01
added the following peice of code... and it worked as the spool will be openend once...
DATA: lc_flag TYPE c.
IMPORT lc_flag = lc_flag FROM MEMORY ID 'COBRAUSER'.
IF lc_flag IS INITIAL.
lc_flag = 'X'.
EXPORT lc_flag = lc_flag TO MEMORY ID 'COBRAUSER'.
RAISE standard_procedure.
ELSE.
sy-subrc = 0.
ENDIF. -
Issue with getting the entire spooled job into the pdf document
Hi All,
My scheduled job runs fine and completes successfully but it appears to have some issues with getting the entire spooled job into the pdf document which it sends to a an end user.Has anyone encountered it before.Your kind assistance would be appreciated.
Thank you.
Regards,
JohnHi,
Please read below link for your query:-
http://help.sap.com/saphelp_nw04/helpdata/EN/85/54c73cee4fb55be10000000a114084/content.htm
Regards,
Anil -
Combine Spool Job Contents ..
Hello Experts,
I'm hoping someone can help with this. I have a requirement to create adobe print forms for a set amount of employees. The problem I'm having is that I can get the spool job to create. In side the spool job, it is broken into parts. The pdf form created is 8 pages for one employee. If I print 5 employees, the spool job will have 40 pages, but the job is split into 5 segments of 8 pages. The issue I'm having is that I need to get all 40 pages in one file to send to a printer. I've tried a number of things but I can't seem to get the spool job to print to pdf on a local machine. The only alternative I can find is to get the segments of the spool job into one big file.
Does anyone have any experience with this? Points will be awarded for any help.
Thanks,
MeezyHi,
i have the same problem than the original poster. I call FP_JOB_OPEN/FP_JOB_CLOSE only once, and only one spool job is created. But inside this job there are several parts and each part is an own pdf document. It is possible to read each part/file separately, but i found no possibility to get one big pdf with all parts.
Does anybody have an idea how to solve this?
Jan -
Can i delete the Print spooler jobs through command prompt or through any program with out stopping printspooler services.
Hello, I think you can not delete spooler jobs without stop spooller service. Otherwise, If you try to delete queue, you will see "This files using another software etc." error message. You can try below cmd.
R.
net stop spooler
DEL %systemroot%\system32\spool\printers\*.shd
DEL %systemroot%\system32\spool\printers\*.spl
net start spooler
Ersin CAN - TAT MCSE - Private Cloud. www.get-itlabs.com -
Spools, Queues, on UNIX
Dear All
Commands to check the spools printing, queues, cancel the queues, on UNIX OS for Oracle Apps 11i.
Thanks,for checking the status of a printer queue
lpstat -a<printer queue name>
Queue Dev Status Job Files User PP % Blks Cp Rnk
ops-str hp@op RUNNING
QUEUED 874 AMILLS0050.3597673 hboracle 25 1 1
QUEUED 875 AMILLS0050.3597674 hboracle 115 1 2
QUEUED 918 AMILLS0050.3597758 hboracle 5 1 3
if status shows DOWN need to enable the printer queue
for canceling a printer queue request
cancel 875 <printer queue name> -
HP P1606dn network printer spools jobs but won't print without a "form feed"
I recently changed by HP P1606dn printer from a USB connection to my HP desktop running Windows 7 (64bit) to a network connection. The objective was to allow my Mac (OS 10.6.8) to print to this printers as well via the network.
When I first installed the printer it worked fine. Then I installed the HP drivers on the Mac, and it too worked fine and continues to work fine. However, my Windows 8 desktop stopped printing. It appears to spool the print jobs correctly and they show up in the queue as actively printing. However, the only way to get them out is to go over to the printer and press the "form feed" button (button showing page with down arrow). Then the HP test page will come out followed by the desired print job.
I've tried disabling "bi-directional support" in the "ports" tab under "printer properties" but that did not help.
Any helpful advice appreciated!
BrentDid you connect the USB cable when doing the firmware update?
Please mark the post that solves your issue as "Accept as Solution".
If my answer was helpful click the “Thumbs Up" on the left to say “Thanks”!
I am not a HP employee. -
Download Excel file in the Unix directory of Application server
Hi Friends,
I have a requirement of downloading the Excel file in the Unix directory path of the application server,i just need your inputs,it would be great help if you can send any sample coding for downlading the file in the Unix directory?
Regards
DineshYou can use the following fm
RZL_READ_FILE
or
use OPEN DATASET FOR INPUT.
Maybe you are looking for
-
Frame layout changes when button is pressed again...
Okay so basically I have a button on my frame and when it's pressed it opens up another frame. This is fine, but when the button is pressed again it opens up the frame again but the layout is all over the place. Here is the code: if (ev.getSource() =
-
Authored a DVD in NTSC (based in Canada) with main menu, series of sub-menus and then video footage activated from the sub-menus. Pretty basic stuff. Worked out fine when put to disk and presents well on TV. However, when trying to make a PAL version
-
Where can I buy a new charger?!?!
Ok so my powerbook charger popped, fizzed, sparked and died. Now I am left laptop-less and in the middle of midterms week. Almost everyone I know owns an apple laptop but they all have the NEW chargers...ugh! What can I do? I tried ordering offline a
-
Dear all, I want to download all the profiles that are been created in the system.For this i went to suim and choose the option of <b>for profiles</b> where i got some list of 500 profiles.Apart from some profiles where the user name is me
-
Basic Multi Master Replication doesn't work!
Hi all, <br><br> I am studying Oracle replication and I tried to apply multi master replication MMR between two databases: WinXp12 (master definition) and WinXp11.<br> After successfully doing all the steps in the code below to replicate table SCOTT.