Spool to a printer
I'm tryng to spool an sp output to a printer
Is possible?
you can replace
spool off
by
spool out
at the end of your output
If it does not work, then you can still issue a host command to print out the file you just spooled out, for example in NT
host copy d:\dir\filename.ext PRN
or in Unix
lp /dir/filename.ext
Regards
Laurent Schneider
OCM DBA
Similar Messages
-
Actually PRINT (i.e. spool to a printer) a PDF stored in the DB as a BLOB
Hi Folks.
I have got APEX to generate PDF files for me based on a shared components query & report template. These are stored in the database as BLOB.
Is there a way to send these BLOB PDF files directly to a printer?
I don't want to have to export the files to the server file system and then have the user manually select them from there for printing. Ideally I want the users to select the documents for printing in the UI and these then get spooled to the printer.
If anyone has a suggestion/steer for me, I'd love to hear it.
Many thanks
Simon.
Application Express 3.1.1.00.09
Database 10.2.0.3.0
BI Publisher 10.1.3.3.2Hi Tyler
OK, here's where I'm at...
Got SoapUI 2.0.2
Creating a new project
Setting initial WSDL to http://xx.xxx.x.xx:9704/xmlpserver/services/PublicReportService?wsdl
(Real IP substitued with 'x' for security)
'Create Requests' - Checked
'Create Project File' - Checked
When I press 'OK' I get an error message stating...
"com.eviware.soapui.support.SoapUIException: Error importing wsdl"
A bit more info.
If I enter the following into my browser address bar...
http://xx.xxx.x.xx:9704/xmlpserver/services/PublicReportService
I get...
PublicReportService
Hi there, this is an AXIS service!
Perhaps there will be a form for invoking the service here...
And If I enter...
http://xx.xxx.x.xx:9704/xmlpserver/services/PublicReportService?wsdl
I get...
AXIS error
Sorry, something seems to have gone wrong... here are the details:
Fault - ; nested exception is:
oracle.xml.parser.v2.XMLDOMException: Implementation does not support the object requested.
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: oracle.xml.parser.v2.XMLDOMException: Implementation does not support the object requested.
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname:xxXXXX
Am I missing something?
Kind regards
Simon. -
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 -
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 youHi
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 -
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 -
Difference between Print Immediately and Send to Spool for later print
I'm having an issue in my R3 4.7 with printing.
I have recently migrated to unicode, but I decided not to stick this into the Unicode section for now.
The value of parameter rspo/host_spool/print is:
/usr/local/bin/multiprint &P &F &C "&R" "&T" &c "&o" "&t" 2>&&1;
This is the problem.
If I have a print list and I decide to print it, I can send it the spooler for immediate print.
That works fine, it comes off the printer.
I see this in the dev trace file:
COMMAND to execute is /usr/local/bin/multiprint cups_hwps01
/usr/sap/<SID>/DVEBMGS00/data/000bC8f3.<SID>"MYUSERNAME" "" 1 "MYUSERNAME" ""
Using Hostspool command: '/usr/local/bin/multiprint cups_hwps01
/usr/sap/<SID>/DVEBMGS00/data/000bC8f3.<SID>1 "MYUSERNAME" "" 1 "MYUSERNAME"
This is correct.
Now, if I have a print list and select 'Send to SAP Spooler only for now' I can see it in SP01.
However, if I try and print it from SP01 I see an error.
There is an error in the STDERR2 file as follows:
sh: -c: line 0: unexpected EOF while looking for matching `"'
sh: -c: line 1: syntax error: unexpected end of file
I see this in the dev trace file:
COMMAND to execute is /usr/local/bin/multiprint cups_whps06
/usr/sap/DTD/DVEBMGS00/data/000aocyn.DTD 1 "PH4417" "" 1 "PH4417" "
Note the last ". It seems SAP is truncating the command it calls.
I've logged it with SAP but wondered if anyone else had encountered it?Seems it was a Kernel bug. Fixed.
-
Hello all,
Scenario:
I create n number of printouts using one spool with no_open and no_close. The print is fine, the spool is in SP01.
The problem:
We do not want it to print, just create the spool and do nothing more, the user can then choose if the spool should be printed or not to a printer of their choice.
The TDIMMED is set to space, and I have tried to set the TDDEST to NULL but then the users default is picked up and the print comes flying out of the printer anyway.
We do have a current SAPScript solution which does precisely that but I cannot figure out the difference between my new print program and the old SAPScript program (the ITCPO for the script and the control_param for the smartform looks like they match).
So basically, what to do to stop a smartform spool from printing, and just sit without a status in the SP01 list?
Thanks in advance.Hi,
In the smartforms function module this is controlled by the parameter 'OUTPUT_OPTIONS-TDIMMED'. This parameter must not be filled when your application program calls the smartform fuunction module.
Also the parameter USER_SETTINGS must be set to ' ' .(default is 'X', so the parameter must be set)
Regards,
Aidan -
Spool Adobe Form: Print partial document
Hello,
I want print only a part of a ADS spool. In non-ads spool you can print from one page to another page, but with adobe forms, this selection field doesn't apper. Our spool has many pages (~1000) and many documents (~500) in only one spool
How can we print only a part of an ADS spool? (For example if you have a problem and only print form the document in the middle of de ADS to the last document).
Regards,
JaimeWith the partslist active, you can select whichever pages you want to print in SP01.
To display the part list first, you need to execute report RSPO0021 in transaction SE38 with the following settings:
Name of the spool option: SHOW_PART_LIST
Select the Activate Entry option.
Printing Interactive Forms -
SAP Printing Guide (BC-CCM-PRN) - SAP Library at: http://help.sap.com/saphelp_nw74/helpdata/en/4e/8e7f4d6f41336de10000000a42189b/frameset.htm -
PDFs won't print all pages; spool disappears in printer
I've got the latest and greatest of acrobat pro on mac os x 10.5.7. I'm printing a 2 MB PDF, that's 28 pages. For the life of me... I can't get it (or any document) to print more than 4 pages. I've tried printing from multiple computers, rebooting machines, the job will disappear out of the print monitor spool. The Printer I have is Konica Minolta 5550 connected via ethernet... I wasn't sure if this was related to Acrobat or the Printer, so I decided to print a 10 page indesign document... printed flawlessly...
Met with IT. tried to install a native driver (as opposed to a generic postscript). Same problem. There's a solution that sits outside of Acrobat... Mac OS X "Prevew", prints the doc flawlessly. I'm not sure what else to do. I've even tried some advanced settings to print as image, where it takes a long time to flatten each page, then print.. no pages will print. I'm inclined to say it's a memory issue between the Mac and this printer, but perplexed because there is no issue with "Preview"...
-
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 -
GLM - Spool management - Slow printing standard - High Volume Printing??
I've seen a couple OSS notes referencing performance on Spool management for GLM, but I need to ask about HVP.. I was told this was the only way to allow the printing of sequence or serial number processing to print quicker..
Here is my issue. We have used serial numbers symbols on our labels with the following configuration to allow the label to print in sequential order based on the number of labels needed.
Meaning if we have 10 labels to print, we use this serial number symbol to print 1 of 10, 2 of 10, 3 of 10, etc...
Here is the symbol code we have on our template.
@TD_LBLSRN(ID=02EHS_SERNO1) of @TD_SRNEND(ID=02EHS_SERNO1)
Now by doing this, it slows the printing of the label considerably. Without this, labels print 1 every 2 seconds or so, but with the serial number sequence, it prints 1 label every 20-30 second and we print thousand of labels at a time. So it takes a really long time.. The issue is the labels and the serial number sequence is being spooled up and basically printing a label after WWI process the 1 of 10, then processes 2 of 10, then etc...
How can we speed this up? I heard HVP, but this solution is extremely expensive.. Is there any other solution?Hello Keith,
GLM replicates the static part of the label and adds after wards the sequence number to each generated page. This is needed; because GLM uses the MS Windows standard print technology which does not foresee optimized sequence numbering. The advantage is that it will work for all printer types with a MS Windows printer driver but the disadvantage is the increasing data volume and the longer processing times.
The HVP functionality is available for thermo transfer printers of Zebra, Pago, Tec or printers which can understand the ZPL printer language. The HVP is part of the GLM pre-defined service from SAP since January.
The HVP functionality will pass the sequence number parameters to a special printer driver which uses special functionality of the printer hardware to do the sequence numbering. The printer driver load the static part of the label to the printer first and send then only the sequence number as a dynamic part for each copy. So finally this will reduce the data volume nearly to one copy of your label.
I donu2019t think that there is really a good technical alternative to HVP at the moment but some MS Windows printer drivers have the possibility to send hardware commands in advance of a print job. This might be an option to initiate a sequence number counter on the printer hardware an doing the numbering in that way. I never tried it in this way but this is the only option without HVP I see at the moment.
Best regards
Michael Veit -
Spool List not printing in Background
Hi,
When i try to execute the report in background in development system i can able to see the spool list, whereas when i try to execute the same report in testimg server(may be with more data) i can not see the spool list but the job is in finish status.
Please can i know the reason for the same.
Thanks & Regards,
Sudheer.Hi!
This may be because you started the program with the option, not to create new spool request, or to delete the spool request immediately.
When you run your program in background, check the printer options also.
Regards
Tamá -
Hi everybody.
Can anybody tell me how can I send a ABAP report to spool, but I d'ont want print?
Thanks in advance.hi,
Try this sample code.. This writes your report output to spool and it doesnt print.
CONSTANTS: CX_MARK(1) TYPE C VALUE 'X',
C_ROWS TYPE I VALUE 65,
C_COLS TYPE I VALUE 132,
C_LAY(16) TYPE C VALUE 'X_65_132'.
DATA: VAL(1) TYPE C.
DATA: PRIPAR LIKE PRI_PARAMS.
START-OF-SELECTION.
PERFORM GET_PRINT_PARAM.
NEW-PAGE PRINT ON NEW-SECTION
PARAMETERS PRIPAR NO DIALOG.
PERFORM PRINT_SPOOL.
NEW-PAGE PRINT OFF.
FORM PRINT_SPOOL.
WRITE : / 'this is test spool -- test 7:30'. "<--Write your report output here
ENDFORM.
FORM GET_PRINT_PARAM.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
* ARCHIVE_ID = C_CHAR_UNKNOWN
* ARCHIVE_INFO = C_CHAR_UNKNOWN
* ARCHIVE_MODE = C_CHAR_UNKNOWN
* ARCHIVE_TEXT = C_CHAR_UNKNOWN
* AR_OBJECT = C_CHAR_UNKNOWN
* AUTHORITY = C_CHAR_UNKNOWN
* COPIES = C_NUM3_UNKNOWN
* COVER_PAGE = C_CHAR_UNKNOWN
* DATA_SET = C_CHAR_UNKNOWN
* DEPARTMENT = C_CHAR_UNKNOWN
* DESTINATION = C_CHAR_UNKNOWN
* EXPIRATION = C_NUM1_UNKNOWN
* IMMEDIATELY = C_CHAR_UNKNOWN
* IN_ARCHIVE_PARAMETERS = ' '
* IN_PARAMETERS = ' '
* LAYOUT = C_CHAR_UNKNOWN
* LINE_COUNT = C_INT_UNKNOWN
* LINE_SIZE = C_INT_UNKNOWN
* LIST_NAME = C_CHAR_UNKNOWN
* LIST_TEXT = C_CHAR_UNKNOWN
* MODE = ' '
* NEW_LIST_ID = C_CHAR_UNKNOWN
NO_DIALOG = CX_MARK
* RECEIVER = C_CHAR_UNKNOWN
* RELEASE = C_CHAR_UNKNOWN
* REPORT = C_CHAR_UNKNOWN
* SAP_COVER_PAGE = C_CHAR_UNKNOWN
* SAP_OBJECT = C_CHAR_UNKNOWN
* TYPE = C_CHAR_UNKNOWN
* IMPORTING
* OUT_ARCHIVE_PARAMETERS =
OUT_PARAMETERS = PRIPAR
VALID = VAL
EXCEPTIONS
ARCHIVE_INFO_NOT_FOUND = 1
INVALID_PRINT_PARAMS = 2
INVALID_ARCHIVE_PARAMS = 3
OTHERS = 4.
* Output device
IF PRIPAR-PDEST IS INITIAL.
PRIPAR-PDEST = 'LOCL'.
ENDIF.
* Number of copies
PRIPAR-PRCOP = '001'.
*Name of spool request
CONCATENATE SY-CPROG '_' SY-UNAME+0(3) INTO PRIPAR-PLIST.
* Text for cover sheet
CONCATENATE SY-TITLE SPOOLLOG INTO PRIPAR-PRTXT SEPARATED BY SPACE.
* Print immediately
PRIPAR-PRIMM = SPACE.
* Delete after printing
PRIPAR-PRREL = SPACE.
* new spool request
PRIPAR-PRNEW = CX_MARK.
* Spool retention period
IF PRIPAR-PEXPI IS INITIAL.
PRIPAR-PEXPI = '8'.
ENDIF.
* Number of list lines
PRIPAR-LINCT = C_ROWS.
* Line size of list
PRIPAR-LINSZ = C_COLS.
* Format
PRIPAR-PAART = C_LAY.
* Selection cover sheet
PRIPAR-PRBIG = SPACE.
* SAP cover sheet
PRIPAR-PRSAP = 'D'.
* Recipient
PRIPAR-PRREC = SY-UNAME.
* Department on cover sheet
PRIPAR-PRABT = SPACE.
* Authorization
PRIPAR-PRBER = SPACE.
* Name of spool dataset
IF PRIPAR-PRDSN IS INITIAL.
PRIPAR-PRDSN = 'LIST1S'.
ENDIF.
* Type of spool request
IF PRIPAR-PTYPE IS INITIAL.
PRIPAR-PTYPE = 'TEXT'.
* pripar-ptype = 'OTF'.
ENDIF.
* Archiving mode
PRIPAR-ARMOD = '1'. "Print only
* Output footer
PRIPAR-FOOTL = SPACE.
* Check sum for print and archiving parameters
PERFORM COMPUTE_CHECKSUM USING PRIPAR CHANGING PRIPAR-PRCHK.
ENDFORM. " GET_PRINT_PARAM
*& Form COMPUTE_CHECKSUM
FORM COMPUTE_CHECKSUM USING P_BUFFER TYPE ANY
CHANGING P_CHECKSUM TYPE I.
FIELD-SYMBOLS <L_FS>.
DATA L_LENGTH TYPE I.
P_CHECKSUM = 0.
DESCRIBE FIELD P_BUFFER LENGTH L_LENGTH.
SUBTRACT 4 FROM L_LENGTH.
ASSIGN P_BUFFER(1) TO <L_FS> TYPE 'X'.
DO L_LENGTH TIMES.
ADD <L_FS> TO P_CHECKSUM.
ASSIGN <L_FS>+1 TO <L_FS>.
ENDDO.
ENDFORM. " COMPUTE_CHECKSUM
Regards
Sailaja. -
PRINT SPOOL TO NETWORK PRINTER
Hello All,
I am working on scheduling Mass Activity Jobs using CPS. I am currently trying to use CPS to run the SAP_ABAPRUN definition. I have a requirement to print the output of the spool to a local printer. I have imported the output devices and provided the print parameters with the necessary values to print locally. The report runs fine and produces the spool in SP01 but i get the following error in CPS and no output on the printer.
Can someone please advise where is can find help with this error.
BAPI exception while calling BAPI_XBP_JOB_READ_SINGLE_SPOOL: E XM 064 No authorization to execute the operation [, , , ]
at com.redwood.scheduler.connector.sap.rfc.jco2.connection.impl.ClientConnectionImpl.checkBapiReturnCode(ClientConnectionImpl.java:799)
at com.redwood.scheduler.connector.sap.rfc.jco2.connection.impl.ClientConnectionImpl.call(ClientConnectionImpl.java:602)
at com.redwood.scheduler.connector.sap.rfc.connection.AbstractRfcConnection$4.doPerformHi,
The important part of the message is:
BAPI exception while calling BAPI_XBP_JOB_READ_SINGLE_SPOOL: E XM 064 No authorization to execute the operation , , ,
This means the RFC user used to connect to the SAP system does not have all the required privileges.
The documentation contains all the required privileges for the RFC user in the section on how to prepare an SAP system for use with SAP CPS.
Regards,
Anton Goselink -
Spool problem when printing list
Hi Friends,
In my report program - I am using ALV_GRID_DISPLAY and generating the output in the SPOOL.
If I check in spool - The first page contains as:
Data statistics No. of Records
Records passed 15
and in the second page - my actual ALV output is getting printed with 15 records.
I dont know how the first page is getting generated ? I dont want to see this first page. Only my second page data as per my report logic should appear in spool.
For your reference: - I am using like this:
PERFORM field_catalog.
NEW-PAGE PRINT ON
PARAMETERS wa_params
NO DIALOG.
PERFORM alv_output.
NEW-PAGE PRINT OFF
Please let me know.
Regards,
HariHi ,
Any clue on this?
What I understand is that When I checked in Settings -> List status
This is actually printing in the first page in spool. But only, my output should only be printed.
How can I hide so that only my list output only should be generated in spool ??
Regards,
Hari -
Lockbox spool deleted after print
Hi All,
We have a issue where the user has mistakenly selected delete after print option while processing the lockbox job in background. And while printing the lockbox spoolm printer was jammed and it did not print the lockbox spool correctly (unable to read anything on print).
my question: is there any way to retrive the spool if yes how? if NO then is there any standard report which will give me same details as the spool.no solution
Maybe you are looking for
-
Hello: I am new to IPods. I have a Classic 160GB and I can't figure out how to load Music Videos to iTunes or the IPod. I have had no problem loading my CD's to iTunes and to the IPod, but no go on the Music Videos. Please Help maxsdad
-
Mapping question: How to only pass on a certain number of characters?
I'm mapping a phone number from the idoc to the XML file. I only want to send the first 12 characters of a phone number. For example, if the phone comes in as, "123-456-7890 Ext 44", I only want to send "123-456-7890". I thought I could use the subst
-
What do you do when your facebbok doesnt work in your laptop?
'''bold text'''
-
Maps, Passbook Does not work.
Downloaded iOS 6. Maps does not work. No flyover. No turn by turn directions. Does not appear on lock screen. Passbook does not work either. Keeps saying "Cannot connect to iTunes".
-
Blocks have much more free space specified by pctfree moved off freelist.
We have a table with pctfree=0 and pctused=90 and experienced high session against it. During the high session, we saw lots of "read by other session", cbc chain, and "buffer busy wait" caused by the same sql (INESRT). The row size of of an average 4