Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 11577

Re: How to create a PDF output which is in binary data to Spool request, so we can select print spool to print the pdf

$
0
0

These function modules did not help.

 

Here is the problem, In Web UI, I can read the header document which has a PDF created into a binary internal table using method,

 

        CALL METHOD cl_crm_documents=>get_with_table
          EXPORTING
            phio                = phio
          IMPORTING
            file_content_binary = itab_file_content_binary
            error               = kw_error.

 

 

This binary data is the pdf I need to schedule a job which prints this content.

 

FM RSPO_SR_OPEN, created the spool request, trying to find a FM to write the binary content to spool request.

 

I tried FM like RSPO_SR_TABLE_WRITE_BINARY & SLVC_TABLE_PS_TO_SPOOL but pages are 0.

FM CONVERT_ABAPSPOOLJOB_2_PDF has the tables parameter of data type TLINE which is 132 where as itab_file_content_binary is 1044.

 

Please suggest some solution to have the content transferred to the spool created.


Viewing all articles
Browse latest Browse all 11577

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>