cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform to PDF problem

manubhutani
Active Contributor
0 Kudos

Hi Gurus

I want to convert smartform to PDF, but in my smartform there is no importing parameter as 'job_output_info'.

How to go about?

And also when converted to PDF, how it will be displayed?

Regrards

Manu

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Manu,

After calling the Smartform FM, Use the FM CONVERT_OTF_2_PDF & pass the importing parameters use_otf_mc_cmd as 'X" & tables parametersn like otf, doctab_archive, lines .

Your smartform will be displayed in the PDF format.

Answers (4)

Answers (4)

Former Member
0 Kudos
Former Member
0 Kudos

Hi,

We have to export certain parameters to the generated function module.

They are

a) Control_Parameters: To access the OTF table, we have to pass

u201CGetotfu201D =u2019Xu2019.

b) Output_options: To print settings. For this we have to pass tddest = 'LP01u2019.

We have to import following parameters:

They are

a) JOB_Ouput_Info: To import the table in the OTF format.

You can create a variable of type ssfcrescl and you can pass it to job_output_info. as shown below.

t_otf_form_fm1 type ssfcrescl,

CALL FUNCTION L_FNAME1

EXPORTING

CONTROL_PARAMETERS = W_CPARAM

OUTPUT_OPTIONS = W_OUTOPTIONS

T001 = T001

IMPORTING

JOB_OUTPUT_INFO = T_OTF_FORM_FM1

TABLES

IT_MARA = IT_MARA

IT_MBEW = IT_MBEW

IT_MAKT = IT_MAKT

former_member205763
Active Contributor
0 Kudos

job_output_info must be there.

can u show ur smartform call?

Former Member
0 Kudos

This is one of the often asked questions. Kindly search in the forum first.

link : []

and many miore in the forum.....

Cheers,

varna