‎2008 Nov 07 10:07 AM
Hello!
I'm facing the following problem:
When a production order is printed the documents linked with this production order also should get printed automatically. The documents (especially pdf) are managed by DMS.
My (not working) idea:
1. Retrieve the file content of the dms-originals with fm CV120_DOC_CHECKOUT_VIEW
2. Print to spool using class CL_RSPO_SPOOL_HANDLE
-> write file content to spool using method WRITE_BINARY
Unfortunately this does not work (only the raw-data of the pdf is printed)! Has somebody any idea, how a file can be printed using SAP-spool?
Thanks in advance!
Greetings
Wolfgang
p.s.: I have already recogniced the thread 'Integrated output of DMS-Documents with production order papers' which is no help.
‎2009 Mar 05 11:14 AM
Hi Wolfgang,
I'm doing exactly the same thing as you and facing this problem as well.
FYI: I've achieved printing MS Office files, that are uploaded to DMS, via calling a custom developed .NET web service to convert the content to PCL format and write it to spool directly.
Now users want to print other formats such as PDF and images like JPG, BMP, TIF, GIF, which I have tried so hard and been unable to achieve yet.
Other than MS Office files, I can only do the same with plain text file, TXT.
Please kindly let me know if you find a solution to this.
Thanks in advance.
‎2010 Jan 16 7:03 AM
‎2010 Sep 22 1:02 PM
Hello Anirut Worakitrungruang ,
can you please tell me how to print a pcl to the spool. I create a request (cl_rspo_spool_handle=>open doytype = 'PCL') and write the binary data to it , CALL METHOD lr_ref->write_binary .
Then I get a spool request that cannot be viewed from sap. If I try to print the spool request ( devetype of printer is sapwin) there are only a lot of ###### printed. Can you please give me a code fragment how to use cl_rspo_spool_handle methods to get the PCL Data printed.
Kind regards
Matthias
‎2013 Aug 08 9:02 PM
Has anyone got a solution for printing pdf from spool when the pdf is gernerated other than from SAP. One can easily get pdf to spool using ADS_GET_PATH, ADS_SR_CONFIRM and ADS_SR_CLOSE.
We have SEAL but are now trying to get away from that 3rd party software and handle most of our prod order printing via another process using ipad interfacing.
Seems to me weak to have DMS and yet you can not print pdf in background utilizing spool files.
Anyone got sucess with printing DMS pdf FILES from spool?
‎2012 Jun 05 10:12 PM
‎2013 Aug 08 9:05 PM
Has anyone got a solution for printing pdf from spool when the pdf is gernerated other than from SAP. One can easily get pdf to spool using ADS_GET_PATH, ADS_SR_CONFIRM and ADS_SR_CLOSE.
We have SEAL but are now trying to get away from that 3rd party software and handle most of our prod order printing via another process using ipad interfacing.
Seems to me weak to have DMS and yet you can not print pdf in background utilizing spool files.
Anyone got sucess with printing DMS pdf FILES from spool?
‎2014 Aug 28 2:10 AM
‎2014 Aug 28 2:10 AM
hi , i do have same requirement. Did u get solution to this requirement.
‎2014 Nov 21 7:30 AM
I am facing the same issue. Did anyone get a solution to this requirement?