Application Development 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: 

Funct: CONVERT_OTF or CONVERT_OTF_2_PDF not conver to pdf ECC 6.0

0 Kudos

Hello,

I have a problem, this function dont convert to pdf.

when I invocate this smartforms in a table 'output_info' get different symbols after I invocate this function 'CONVERT_OTF' but it dosent convert to pdf.

Before the customer have ERP R/3 4.6c THEM last month update version ECC 6.0.

can you help me, please.

1.

call function lf_fm_name

exporting

archive_index = toa_dara

archive_parameters = arc_params

control_parameters = ls_control_param

mail_recipient = ls_recipient

mail_sender = ls_sender

output_options = ls_composer_param

is_ekko = l_doc-xekko

user_settings = ' ' "Disable User Printer

is_pekko = l_doc-xpekko

is_nast = l_nast

iv_from_mem = l_from_memory

iv_druvo = iv_druvo

iv_xfz = iv_xfz

iv_nocopias = ' '

importing

job_output_info = output_info

job_output_options = output_option

tables

it_ekpo = l_doc-xekpo[]

it_ekpa = l_doc-xekpa[]

it_pekpo = l_doc-xpekpo[]

it_eket = l_doc-xeket[]

it_tkomv = l_doc-xtkomv[]

it_ekkn = l_doc-xekkn[]

it_ekek = l_doc-xekek[]

it_komk = l_xkomk[]

exceptions

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

others = 5.

2-

CALL FUNCTION 'CONVERT_OTF'

EXPORTING

format = 'PDF'

max_linewidth = 132

IMPORTING

bin_filesize = v_len_in

  • bin_file = l_pdf_xstring

TABLES

otf = i_otf

lines = i_tline

EXCEPTIONS

err_max_linewidth = 1

err_format = 2

err_conv_not_possible = 3

OTHERS = 4.

Regards,

Gustavo

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

I really don't understand so much your requirement, but I already had a similar case and used a PDF Printer. I configured a printer by SPAD transaction with a device type PDF1.

If you need to convert to pdf to send an email, I think can use the FM 'CONVERT_OTFSPOOLJOB_2_PDF' to convert and 'SO_DOCUMENT_SEND_API1' to send it.

I hope it helps you...

--

Alexis Sánchez

SAP ABAP Developer Consultant

Molen Services and Consulting, C.A.

2 REPLIES 2

Former Member
0 Kudos

Hi,

I really don't understand so much your requirement, but I already had a similar case and used a PDF Printer. I configured a printer by SPAD transaction with a device type PDF1.

If you need to convert to pdf to send an email, I think can use the FM 'CONVERT_OTFSPOOLJOB_2_PDF' to convert and 'SO_DOCUMENT_SEND_API1' to send it.

I hope it helps you...

--

Alexis Sánchez

SAP ABAP Developer Consultant

Molen Services and Consulting, C.A.

0 Kudos

Thank you very much, Alexis.

Regards

Gustavo