Spool request to printer
Hello,
I created spool requests for the samartforms by executing in background.
Can any one tell me how to send the the spool request to printer? I would like to send from ABAP program not using tcode sp02.
Thank you
Hi
We can use FM: <b>RSPO_OUTPUT_SPOOL_REQUEST</b> for the same.
CALL FUNCTION 'RSPO_OUTPUT_SPOOL_REQUEST'
EXPORTING
device = <printer>
spool_request_id = <request>.
Regards
Eswar
Similar Messages
-
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,
SunnyHi 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 -
Creating single spool request for printing all shop floor papers
Hello PP Gurus,
We are printing shop floor papers at the time of releasing production order using txn CO02. It creates individual spool request for printing different shop floor papers in the same orders . eg Pick list, goods receipt list etc.
Is it possible to do the cofiguration setting to create only one spool request for all the different SF papers belong to same order.? If yes, please let me know the steps for customising this.
Thanks for your help in advance.
Regards & Thanks
Rajesh D.In transaction OPK8, in forms uncheck the 'New List' check box for the List.
Regards
Ramanujan -
FM to release the spool request for printing
I have requirement one of my program generate the spool request.
now i need to schedule the print job in background.
can any one help in specifing the Funtion modulde that can be used to releasing the spool request for printingHi ,
Please can one specify what are the parameters to be populated to make it run in the back ground
right know i'm populating these fields.
In SP01 it showing status as "Frontend Unavaliable".
if i schedule the program in back ground.
CALL FUNCTION 'RSPO_OUTPUT_SPOOL_REQUEST'
EXPORTING
COPIES = 1
DEVICE = 'LOCL'
DIVISION = '*'
ENDPAGE = 0
PRIO = 1
RECEIVER = '*'
REQEST_TITLE = '*'
spool_request_id = '9817'
STARTPAGE = 0
TELELAN = '*'
TELENUM = '*'
POSNAME =
ACTTIME =
TABLES
ATTRIBUTES =
EXCEPTIONS
ARCHIVE_DEST_INVALID = 1
ARCHIVE_DEST_NOT_FOUND = 2
ARCHIVE_DEST_NO_RIGHT = 3
CANNOT_ARCHIVE = 4
CHANGE_ARCHDEST_NO_RIGHT = 5
CHANGE_COPIES_NO_RIGHT = 6
CHANGE_DEST_NO_RIGHT = 7
CHANGE_DEVTYPE_NO_RIGHT = 8
CHANGE_PRIO_NO_RIGHT = 9
CHANGE_TELENUM_NO_RIGHT = 10
CHANGE_TITLE_NO_RIGHT = 11
DEST_INVALID = 12
DEST_NOT_FOUND = 13
DEST_NO_RIGHT = 14
INTERNAL_PROBLEM = 15
INVALID_FAX_ATTRIBUTE = 16
INVALID_PARAMETERS = 17
NON_OWNER_NO_RIGHT = 18
NO_LAYOUT = 19
NO_SPOOL_REQUEST = 20
OUT_AGAIN_NO_RIGHT = 21
SPOOLER_PROBLEM = 22
OTHERS = 23 -
Unable to send spool request to printer through BSP
Hi Experts,
We have an application build on BSP and provided a button called print in the application. When I press print, in our client requirement, an adobe with details should create a spool as well it should print the document automatically.
Currently we some how managed to create a spool after pressing print but spool request is not going print automatically, its showing status as waiting with following error message
"Frontend unavailable"
Please help me out
Thanks in advance
Regards,
SridharHi,
this will not work!
If you print local, the GUI starts a local printing program. The browser is not able to start local programs, because of the restictions of Browsers.
To use Networkprinter should work.
Best regards
Renald -
How to print Spool requests for cheque printing sequentially
Dear All,
I am making vendor payments and printing cheques using F-58. It automatically creates a spool requests at the end of the transaction. When i complete all my payments and go to SP01 for viewing spool requests, the last request appears at the top of the list.
If i select 3 consecutive requests and print them at a time, the last request gets printed first on the first cheque number and the first request gets printed on the last cheque number.
This results in anomaly in the cheque number assigned in the system and the printed cheque as the last payment is printed on the first cheque.
I am using dot matrix printer with page format fixed for cheque specifications. The cheques are printed properly as per the format except the order of printing.
Kindly let me know how to print multiple requests sequentially from the spool requests list such that the spool request number printed matches with the serial cheque numbers.
Regards,
SAP_2009Hi,
I understod your issue.
Whenever you posted multiple payment documents, and after that if you want to take cheque printouts sequentially by using more spool requests.........there is a way to sort out this issue.
1) Select all of your spool requests and click on Sort in ascending Order (CtrlShiftF5) and click on Print directly (CtrlShiftF8). By doing this you will get the cheque printouts sequentially according to your payment document sequence.
Hope this will help you
Assign ********, if it solved your problem.
Thanks,
Srinu -
Best practice for schedule printing of spool requests
Hi there,
I am searching for a method / best practice how to schedule the printing of different spool requests.
The following situation:
A lot of different spool requests are generated in the night, but they should be printed at a specific time in the morning. So I am searching for a method to get the spool requests and print them to a specific printer at a specific time by job.
Thanks ahead,
BerndI found a (very old) SAP program RSPO0065 that seems to do just that. However it does not allow overriding the print paramters, so the actual jobs need be scheduled with the correct parameters, most notably the desired printer.
Thomas -
How to get SapScript and Smartform printed in one spool request?
Hello experts,
I want to print the production order package in one spool request.
Print program consists of Smartform and SapScript.
First page is in landscape format with barcode(Smartform) and the rest is in portrait format(Sapscript).
In SAP documentation is written that it is possible for several Smartforms to be printed in one spool request.
Is it possible for 1 Smartform and 1 SapScript called from a single program to be printed in one spool request?
I have tested it with calling first the Smartform control-no_close= 'X' without success.
Can anyone tell me if this is possible and how?
Thank you.
Kind regards,
DanijelaHi
In the driver program .
*"Selection screen elements............................................
SELECTION-SCREEN BEGIN OF BLOCK block WITH FRAME.
PARAMETERS:
p_script RADIOBUTTON GROUP rad1,
p_smartform RADIOBUTTON GROUP rad1,
SELECTION-SCREEN END OF BLOCK block.
*"Selection screen elements............................................
SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME.
PARAMETERS:
p_single RADIOBUTTON GROUP rad2, " All the spool request
p_ind RADIOBUTTON GROUP rad2.
SELECTION-SCREEN END OF BLOCK block1. " Single spool request
If p_script EQ 'x'.
w_form = 'Y_SCRIPT'.
Elseif p_smartfom EQ 'X'.
w_form = 'Y_SMARTFORM'.
ENDIF.
call function 'SSF_FUNCTION_MODULE_NAME'.
Call function 'SSFCOMP_OPEN'.
w_control-no_open = ' '.
w_control-no_close = ' '.
*"Single spool request..................................................
IF p_single EQ 'X'.
w_control-no_open = 'X'.
w_control-no_close = 'X'.
ELSE.
*"Individual spool request.............................................
IF w_flag NE '1'.
w_control-no_open = 'X'.
w_control-no_close = ' '.
w_flag = 1.
CALL FUNCTION ' '-----> smartform function module.
CALL FUNCTION 'SSFCOMP_CLOSE'.
Regards,
Sravanthi -
I want to print form directly with out using spool request
hi,
i want to print form directly with out using output type screen (spool request or print preview ) , i want to supress the screen and get output directly to the printer. plz help me
thanks®ards
praveenHi Praveen,
In your program, where you are calling the OPEN_FORM function.. pass the name of the printer in the 'DEVICE' parameter of the function module..
Also, there is a parameter OPTIONS of sturcture ITCPO in the same function module.. in this parameter you will find lot of options to set properties for the printing..
There will be one field for immediate printing, set that field to 'X' and other settings for print in the same structure and pass to the function module..
Thanks and Best Regards,
Vikas Bittera. -
Converting the spool request to PDF format
Dear All ,
I am using RSTXPDF4 to convert a spool request to PDF format , when I execute this program by giving the spool number and dstdevic as Local , its giving the message as " Spool request XXXXX with PDF data created ".
But the problem is when I open this spool request its printing the Junk characters ..!!!
What could be the problem ?
Please give me the solution for this...
Thanks in advance.Hi Prem ,
I have checked the tranx SCOT there I have found the following settings..
Output Dev Type USE
format
PCL HPLJIIID Not Yet Used in Node Maintenance
PDF PDF1 Already Used in Node Maintenance
PS POST2 Not Yet Used in Node Maintenance
TXT ASCIIPRI Already Used in Node Maintenance
Is this OK ...or am I need to do any changes in the settings...??
One more thing when I tries to give this PDF1 Dev type in my RSTXPDF4 input parameters its not taking !!!
Please help... -
How do you preview using a spool request number
How do you preview using a spool request number?
I have an application in which I have accumulated the results from several smartforms into one spool request. I have the spool request number, and am printing it using function RSPO_RPRINT_SPOOLREQ.
I need to be able to preview the contents of the spool request before printing. I can not preview when generating the smartforms, as that involves several previews, and I need to preview once only per spool request.
I have been trying to use RSPO_RDISPLAY_OUTREQ but it dumps immediately (line 47) with field symbol <FTSP01> not assigned.
Suggestions?*With no faction module "COM_SE_SPOOL_DISPLAY", try this simple code, you can display the form *type spool (you also can put the code in a function module):
REPORT ypl_test_display_spool MESSAGE-ID zm_print.
PARAMETERS: rqident LIKE tsp01-rqident,
rqdocty LIKE tsp01-rqdoctype.
*--- there may be more types need to separate..., so use case...
CASE rqdocty.
WHEN 'OTF' OR 'SMART'.
PERFORM display_form.
WHEN OTHERS.
PERFORM display_others.
ENDCASE.
*& Form DISPLAY_FORM
display form type spool...
FORM display_form.
DATA: wstr_otf_control TYPE itcpp.
DATA: wtbl_buffer TYPE TABLE OF soli WITH HEADER LINE.
DATA: wtbl_otf TYPE TABLE OF itcoo WITH HEADER LINE.
DATA: wstr_retcode LIKE itcpp.
*--- return spool raw data
CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
EXPORTING
rqident = rqident
TABLES
buffer = wtbl_buffer
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.
IF sy-subrc <> 0.
MESSAGE s013 WITH text-001.
EXIT.
ENDIF.
LOOP AT wtbl_buffer .
wtbl_otf-tdprintcom = wtbl_buffer(2).
wtbl_otf-tdprintpar = wtbl_buffer+2.
APPEND wtbl_otf.
ENDLOOP.
*--- some data to pass to this parameter, may not need...from SP01...
wstr_otf_control-tdcopies = 1.
wstr_otf_control-tdappl = 'TX'.
wstr_otf_control-tddest = 'LOCL'.
wstr_otf_control-tdpages = 0.
wstr_otf_control-tdnoprint = 'X'.
CALL FUNCTION 'DISPLAY_OTF'
EXPORTING
control = wstr_otf_control
IMPORTING
RESULT = wstr_retcode
TABLES
otf = wtbl_otf.
IF wstr_retcode IS INITIAL.
*--- message...
ENDIF.
ENDFORM. "DISPLAY_FORM
*& Form display_others
display other types, may more types needed to separate...
you can refer current version of SAP report RSPOLST2
FORM display_others.
CALL FUNCTION 'RSPO_DISPLAY_SPOOLJOB'
EXPORTING
rqident = rqident
EXCEPTIONS
no_such_job = 1
job_contains_no_data = 2
selection_empty = 3
no_permission = 4
can_not_access = 5
read_error = 6
OTHERS = 7.
IF sy-subrc <> 0.
MESSAGE s013 WITH text-001.
ENDIF.
ENDFORM. "display_others -
Additional pages in multipart spool requests.
Hello,
does anybody also encountered the problem, that for some printers additional pages between the files of a multipart spool request are printed? The page just contains @PJL. It occurs with our own printouts and also with FP_TEST_00.
Device type is HPLJ4.
In addtition, we want to use a stapling functionality on another printer, but that printer does treat the multipart print as one printout. So the stapling is by part and not by spool request, It may be the same cause.
Any idea?
Kind regards
-Jürgen-Please go through the below links, that might help you....
http://h30499.www3.hp.com/t5/Black-and-White/PJL-Errors/td-p/4082827#.U2t_otIW1Ns
http://forum.support.xerox.com/t5/Printing/Extra-page-with-PJL-info-is-printed-with-every-print-job-on/td-p/266
Naveen. -
Printing multiple spool requests at a time
Hi All,
I am using function module RSPO_OUTPUT_SPOOL_REQUEST to print the contents of the spool request. I want to print multiple spool requests at a time. We can input only one spool request number to the above function module at a time. Is there any way that I can print multiple spool requests with only single Print Popup Window ?
Thanks.Hi Khanna,
I tried that option at first place only. It results in multiple Print Popups. I want to avoid this. For all spool print requests, I want to show ONLY ONE Print Popup.
Thanks. -
Simple Request - How Do I Print a Spool Request in 3.1i?
Here is the scenario:
I have created an FI Misc Credit Memo for a customer who wants a hard copy of the document. Using transaction code FB12, I generate a correspondence. Then using transaction code F.64, I attempt to print the document. This generates a spool request with a number like 86,007.
From there I go to system>services>output control which takes me to the spool request screen. From there, I am missing the next step.
This screen has fields for:
Spool request number (attempted number given when spool request was generated - 86,007, field only fits 5 characters so comma has been excluded)
Spool request name ( I think this is my problem as I have no idea where to find this)
User name (field is populated)
From date (field is populated)
Client (field is populated)
Output device (have entered desired printer name)
Format (usually self-populates once a successful print request is entered)
Title (unnecessary field I believe)
Recipient (unnecessary field)
Department (unnecessary field)
No one on our staff has been able to help me with this issue so I've turned to the community. I am an end user (Tax Analyst) who possesses little technical knowledge. My apologies. Thank you in advance for any help given!Hello,
remove values from all the fields in the selection screen and enter only your spool number. The Execute wiht 'F8' and if the spool request is found, with the "printer" push-button you can print it.
Best regards,
Andrea -
Not able to print to locl printer, spool request status is in wait
Hi All,
When user print to locl printer, the spool request is created and we get a error message saying "connection closed after (protocol) error (RC=1)". And we found the status of spool request is in wait state and if double clicked on it, it is showing "Internal error printing".
Below is the log of Spool work process for your reference
Found unqueued job 21701/1 (LOCL)
ERROR => Printer LOCL: Lookup failed ?!?!? -> Status DELAY http://rspopcc. 0813
Just to update you user is able to print all other documents except the documents from SAP application. And user is connecting to SAP application server through Citrix.
We are on HP-UX, Oracle database and SAP R/3 3.1i version.
Thanks in advance.
Regards,
Chandrikasundaresh suryanarayan wrote:
Hello Chandrika,
>
> Is this printer is a network printer ?. Use Device Type : SWIN and Access Method : G Front End Printing .
>
> Thanks
>
> Sundaresh Suryanarayan
Hi Sundaresh,
Thanks for your reply.
Yes it is a network printer. User is printing to his default printer(LOCL, with host printer __DEFAULT) and we are using device type SAPWIN and access method F(printing on front end computer).
Regards,
Chandrika
Maybe you are looking for
-
I went in again, chosing restore, itunes is currently downloading again! this time it says 44 minutes remaining. If my computer goes into hibernation, I have to restart and then download says 4 to 35 hours?? Trying to recover the ios6 is frustrating
-
My husband and I would like to combine our itunes libraries into one for each of our ipods. Can this be done?
-
So for some reason the hyperlinks in my flash show are not working. If you go directly to the URL of the flash show itself, the hyperlinks work fine...but once you embed them into even a simple html page, they seem work for a short period of time, an
-
Re: complaint to FCC about Comcast's broadcast stations and prices!
It has been years since we have used Comcast services.Today we just had it reconnected. We were supposed to get the 105mbs service.It is supposed to be great for gaming and yadda yadda yadda.Well we haven't been able to use our service all day. We tr
-
Greetings all, I came across a video and I really like the editing, here is the link: http://www.youtube.com/watch?v=B5eT6TaEtPI Can anyone help me on how to achieve this effect? I am thinking it will have to involve layering the video but does anyon