Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Print DMS-documents using SAP-spool

wolfgang_brunneder
Participant
0 Likes
1,886

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.

9 REPLIES 9
Read only

Former Member
0 Likes
1,317

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.

Read only

0 Likes
1,317

Hi,

Any solution to the above issue?

Cordially,

Hasan

Read only

0 Likes
1,317

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

Read only

0 Likes
1,317

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?

Read only

phanir_mullapudi
Active Participant
0 Likes
1,317

Hi, Can you tell how this issue was resolved?

Read only

Former Member
0 Likes
1,317

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?

Read only

0 Likes
1,317

Hi, i do have same requirement. Did you get success? 

Read only

Former Member
0 Likes
1,317

hi , i do have same requirement. Did u get solution to this requirement. 

Read only

Former Member
0 Likes
1,317

I am facing the same issue. Did anyone get a solution to this requirement?