cancel
Showing results for 
Search instead for 
Did you mean: 

Convert Smartform to PDF

0 Kudos

I want to display smartform in PDF format . How i can convert OTF and then to PDF.

Pl help.

sanjukta

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Go through the link given below :

With Regards

Nikunj Shah

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

Call the function module of the smartform and pass the final internal table (output table) into the form interface, also exporting the control parameters output options and user settings importing the structure job_output_info and transfer the contents of STRUC_JOB_OUTPUT_INFO-OTFDATA[] into an internal table I_OTFDATA[] which contains the records in OTF format.

Sample Code

CALL FUNCTION v_function_module

EXPORTING

CONTROL_PARAMETERS = STRUC_SSFCTRLOP

OUTPUT_OPTIONS = STRUC_OUTPUT_OPTIONS

USER_SETTINGS = C_NO

IMPORTING

JOB_OUTPUT_INFO = STRUC_JOB_OUTPUT_INFO

TABLES

p_write_file = i_write_file

EXCEPTIONS

FORMATTING_ERROR = 1

INTERNAL_ERROR = 2

SEND_ERROR = 3

USER_CANCELED = 4

OTHERS = 5 .

Transferring the data into an internal table

I_OTFDATA[] = STRUC_JOB_OUTPUT_INFO-OTFDATA[].

Regards.

Eshwar

Former Member
0 Kudos
Former Member
0 Kudos

Hi

[http://help.sap.com/saphelp_nw04/helpdata/en/27/67443cc0063415e10000000a11405a/content.htm]

Regards,

Sravanthi

Former Member
0 Kudos

Hi,

You can check this thread.

Former Member
0 Kudos

Hi sanjukta,

You may check the link for solution

Regards,

Anirban