2013 Jan 16 7:28 PM
I am reading a spool and converting it to PDF and saving it in application server.
I also want to print this PDF at the physical printer.
This will all be in background job.
Any help?
Any expert pointers would be greatly helpful.
I am reading a spool and converting it to PDF and saving it in application server.
I also want to print this PDF at the physical printer.
This will all be in background job.
Any help?
Any expert pointers would be greatly helpful.
2013 Jan 16 8:00 PM
Hi Pranu,
If you are using SAP Scripts, you can print the form directly by passing input parameter for OPEN_FORM , DIALOG = ' '. This option will not popup for print preview screen and ITCPO-TDIMMED='X' to print form immediately.
Schedule your report\driver program for background job in SM37, if you are not using NACE.
Regards,
Mahidhar.
2013 Jan 16 8:14 PM
This is smartform.
In FICA,the bulk invoicing is done and the spools are created using the background jobs.
I need to print these spools to PDF (this is achieved) and also print it to physical printer.
Thanks
2013 Jan 17 2:00 AM
Pranu,
Is this a requirement to specifically print PDF or could you print the spool request itself? If yes, try to use FM RSPO_OUTPUT_SPOOL_REQUEST.
Regards,
Edgar
2013 Jan 17 2:04 AM
Either way... Either print the PDF or the spool.
I need to paper print te Invoice.
Thanks. Will try the FM.
2013 Jan 17 2:17 AM
Easier then.
If you know spool number is advance I guess you won't have issues:
DATA: PRN LIKE TSP03-PADEST VALUE ‘LOCL’,
SPOOL_NUMBER LIKE TSP01-RQIDENT.
CALL FUNCTION ‘RSPO_OUTPUT_SPOOL_REQUEST’
EXPORTING
DEVICE = PRN
SPOOL_REQUEST_ID = SPOOL_NUMBER
EXCEPTIONS
OTHERS = 1.
2013 Jan 17 2:29 AM
Edgar,
I tried RSPO_OUTPUT_SPOOL_REQUEST.
This however pops up the window asking for printer selection.
This will not work in background which is my requirement.
Thanks.
I will research more but if you have a quick link on the top of your head, it wud be great to know.
2013 Jan 17 2:40 AM
Pranu,
Just did a quick test and it didn't pop up, did you proper fill output device name?
I filled parameters as following:
And got output requests:
Edgar
2013 Jan 17 3:09 AM
Here are my inputs.
I have 4 printers installed but LOCL is pointing to the default printer.
2013 Jan 17 3:49 AM
While using LOCL, It is popping up.
If I useother configured printers like ZPDF or LP01, it des no popup.
I will see in the office tomorrow if it actually prints if I use LP01.
Thanks again.
You gave really nice pointers.
Will update all tomorrow.
2013 Jan 17 4:27 AM
Hi Pranu,
"print this PDF at the physical printer"
Check your Output Device Settings(i.e. in your case LOCL) using SPAD T-code .
1 : Device Attributes tab ,Device type : ? (Printer name like HP5100 : HP LaserJet 5100 )
2 : Access Method tab , Host printer path : ? (Printer path )
Note : Check your device type may be the same device is default printer in your system.
Regard's
Smruti
2013 Jan 17 7:59 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |