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

Problem in converting spool to PDF file

Former Member
0 Likes
793

Hi guys,

My spool contains Russian characters which are shown as one special char in pdf file. I guess the russian char. are not recognized by pdf.

I convert the spool to pdf using following FM

CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'

EXPORTING

src_spoolid = wa_spool-spool

no_dialog = ' '

IMPORTING

pdf_bytecount = v_numbytes

pdf_spoolid = v_pdfspoolid

btc_jobname = v_jobname

btc_jobcount = v_jobcount

TABLES

pdf = pdf.

Then i download the file using FM:

CALL FUNCTION 'WS_DOWNLOAD'

EXPORTING

bin_filesize = v_numbytes

filename = v_return1

filetype = 'BIN'

TABLES

data_tab = pdf

Help me....

Point will be rewarded on helpful answers.

Regards,

GURU

Hi guys,

My spool contains Russian characters which are shown as one special char in pdf file. I guess the russian char. are not recognized by pdf.

I convert the spool to pdf using following FM

CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'

EXPORTING

src_spoolid = wa_spool-spool

no_dialog = ' '

IMPORTING

pdf_bytecount = v_numbytes

pdf_spoolid = v_pdfspoolid

btc_jobname = v_jobname

btc_jobcount = v_jobcount

TABLES

pdf = pdf.

Then i download the file using FM:

CALL FUNCTION 'WS_DOWNLOAD'

EXPORTING

bin_filesize = v_numbytes

filename = v_return1

filetype = 'BIN'

TABLES

data_tab = pdf

Help me....

Point will be rewarded on helpful answers.

Regards,

GURU

4 REPLIES 4
Read only

Former Member
0 Likes
759

Hi,

Please pass the value of DESTINATION DEVICE as well. The device should be supporting Russian characters.

CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'

EXPORTING

src_spoolid = wa_spool-spool

no_dialog = ' '

<b>DST_DEVICE =</b>

IMPORTING

pdf_bytecount = v_numbytes

pdf_spoolid = v_pdfspoolid

btc_jobname = v_jobname

btc_jobcount = v_jobcount

TABLES

pdf = pdf.

Best regards,

Prashant

Read only

Former Member
0 Likes
759

Hi,

What is ur SAP version???

Try this

CALL METHOD cl_gui_frontend_services=>gui_download

EXPORTING

bin_filesize = <file size variable>

filename = <file name>

filetype = 'BIN'

CHANGING

data_tab = <itab>

If the hint is useful… Say thanks by reward….

Regards,

Prabhu Rajesh

Read only

Former Member
0 Likes
759

hi

Check this program : RSTXPDFT4

regards

Gregory

Read only

0 Likes
759

Hi guys,

None of the above solution works.

My SAP version is 4.6C.

i tried with CALL FUNCTION 'CONVERT_OTF_2_PDF' but it does not work.

Help....

Suggestion will be rewarded.

Thanks,

GURU