cancel
Showing results for 
Search instead for 
Did you mean: 

SF 2 PDF - CONVERT_OTF_2_PDF is returning subrc 1(err_conv_not_possible)

former_member189629
Active Contributor
0 Kudos

Hi Experts,

Is the FM CONVERT_OTF_2_PDF obsolete in ECC 6? as it is returning subrc 1 (exception: err_conv_not_possible).

Also please suggest the best way to convert smartforms into PDF in ecc 6.

Helpful answers will be fully rewarded

Regards,

K

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

Take the Spool ID of the Smartform and use the fun module

<b>CONVERT_ABAPSPOOLJOB_2_PDF</b>

for converting the smartform to PDF output

Reward points for useful Answers

Regards

Anji

former_member189629
Active Contributor
0 Kudos

Hi Anji Reddy garu,

Could you please tell me how I could capture the Spool ID of an SF?

Regards,

K

Former Member
0 Kudos

Hi

You will get this from the fun module of the samrtform

see the sample code

DATA: ls_job_info TYPE ssfcrescl.

  • call smartform invoice

CALL FUNCTION lf_fm_name

EXPORTING

archive_index = toa_dara

archive_parameters = arc_params

control_parameters = ls_control_param

  • mail_appl_obj =

mail_recipient = ls_recipient

mail_sender = ls_sender

output_options = ls_composer_param

user_settings = space

is_bil_invoice = ls_bil_invoice

is_nast = nast

is_repeat = repeat

importing job_output_info = <b>ls_job_info</b>

TABLES

GS_WIRING = GS_ITAB3

  • document_output_info =

  • job_output_options =

EXCEPTIONS formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

the Internal table ls_job_info consists of the Spool ID for the samrtform generated.

<b>Reward points for useful Answers</b>

Regards

Anji