2006 Oct 24 3:35 PM
Hi all,
is there any way to get saved in DMS PDF documents printed (spool???) in readable form ?
I was able to read the PDF document in binary form from DMS with FM C14S_DOCUMENT_ORIGINAL_COPY.
Then i did create an TemSe object and a spool task.
However the PDF document would not be printed in readable form. Any clue how to get it correct printed ?
thnx in advance.
Hi all,
is there any way to get saved in DMS PDF documents printed (spool???) in readable form ?
I was able to read the PDF document in binary form from DMS with FM C14S_DOCUMENT_ORIGINAL_COPY.
Then i did create an TemSe object and a spool task.
However the PDF document would not be printed in readable form. Any clue how to get it correct printed ?
thnx in advance.
2006 Oct 24 3:49 PM
hi,
i have tried spool to PDF. the code is
&----
*& Form DOWNLOAD
&----
FORM DOWNLOAD .
DATA: lk_params TYPE pri_params,
lv_valid.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
immediately = ' '
layout = c_layout "'X_65_132'
no_dialog = c_x
IMPORTING
out_parameters = lk_params
valid = lv_valid.
IF lv_valid <> space .
NEW-PAGE PRINT ON PARAMETERS lk_params NO DIALOG.
*--To display the final report
perform print_report.
PERFORM DISPLAY.
NEW-PAGE PRINT OFF.
*---To convert the download to PDF
PERFORM conv_to_pdf_download.
perform download1.
ENDIF.
endif.
**--To display the final report
PERFORM DISPLAY.
perform print_report.
ENDFORM. " DOWNLOAD
&----
*& Form conv_to_pdf_download
&----
FORM conv_to_pdf_download .
clear it_final.
wait up to 2 seconds.
lv_spoolno = sy-spono.
call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
exporting
src_spoolid = lv_spoolno
NO_DIALOG = ''
DST_DEVICE =
PDF_DESTINATION =
IMPORTING
PDF_BYTECOUNT = lv_numbytes
PDF_SPOOLID =
LIST_PAGECOUNT =
BTC_JOBNAME =
BTC_JOBCOUNT =
TABLES
PDF = it_pdf.
endform. "conv_to_pdf_download
&----
*& Form download1
&----
form download1 .
CHECK DOWNLOAD = 'X'.
call function 'DOWNLOAD'
EXPORTING
BIN_FILESIZE = LV_NUMBYTES
CODEPAGE = ' '
FILENAME = P_FILE
FILETYPE = 'BIN'
IMPORTING
ACT_FILENAME = P_FILE
FILESIZE = LV_NUMBYTES
CANCEL = CANCEL
tables
data_tab = IT_PDF.
endform. " download1
2006 Oct 24 4:55 PM
thanks warunkumar,
my goal is to get saved PDF document from DMS and to print it in background (ex. over spool ???)
How can I achieve that ?
2007 Jul 13 11:03 AM
Hello Boris,
did you find a solution ? I have the same requirement. So far I think only with external software (e.g. sealsystems) this could be done.
Pls let me know how you solved it!
cheers,
Johannes
2007 Jul 26 6:33 PM
Hello experts.
I have a similar requirement. I'm trying to print a PDF within a spool order.
Here is the scenario:
We have one R/3 Enterprise (6.20 SP58) system and in the other system ABAP Netweaver 04 (6.4 SP19) with Adobe Services (ADS).
From the R/3 I issue a RFC function call to the other system and retrieve a PDF code (XSTRING type) from an Adobe Form. Now, I was able to display the PDF on the screen by an HTML control. It's working fine. But when I print it, it goes through the windows printer and there is no spool order (obviously).
I'm trying with the class CL_RSPO_SPOOL_HANDLE with no positive results so far. The spool order is created, but I couldn't insert the PDF data.
Any ideas?
I'll keep trying...
2007 Aug 21 2:40 PM
Hi Andrés
You found something?
Can you post a code sample?
Tanks
Darley
2009 Mar 05 11:22 AM
I have exactly the same requirement. Has any of you found something?
FYI: I have actually achieved printing MS Office files in DMS directly spool by calling a .NET web service (custom development) to convert the content to PCL format and then call method CL_RSPO_SPOOL_HANDLE->WRITE_BINARY.
Thanks in advance.
2014 Aug 27 2:23 AM
hi, i do have same requirement. Do you have solution this requirement?
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |