cancel
Showing results for 
Search instead for 
Did you mean: 

How can i set print mode at run time in smartforms???

Former Member
0 Kudos

Hi expert,

In smartforms how can I set print mode at run time.

I have one screen.In this screen one check box is there.If user select that check box then print should be come double side otherwise it is coming single side.

If it is possible then plz give me answer asap.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

The print mode will only accept a static value, not a variable, so I don't think it's possible to determine this at runtime.

You will need to create multiple versions of your page in the form and start with either the duplex or non-duplex version. Alternaitvely create two forms, one duplex one without.

Regards,

Nick

Former Member
0 Kudos

Hi,

Set These settings

While calling smartform, paas control_parameters and output_options as mentioned below and set

user_settings = ' '.

It will send the smartform output to spool.

DATA: wa_output_options TYPE ssfcompop,

wa_ctrl TYPE ssfctrlop.

wa_output_options-tdimmed = 'X'.

wa_output_options-tddelete = 'X'.

wa_output_options-tdimmed = ' '.

wa_output_options-tddest = 'LOCL'.

wa_ctrl-no_dialog = 'X'.

CALL FUNCTION lv_fm_name

EXPORTING

ARCHIVE_INDEX =

ARCHIVE_INDEX_TAB =

ARCHIVE_PARAMETERS =

control_parameters = wa_ctrl

MAIL_APPL_OBJ =

MAIL_RECIPIENT =

MAIL_SENDER =

output_options = wa_output_options

user_settings = ' '

x_adrp = x_adrp

IMPORTING

DOCUMENT_OUTPUT_INFO =

JOB_OUTPUT_INFO =

JOB_OUTPUT_OPTIONS =

EXCEPTIONS

FORMATTING_ERROR = 1

INTERNAL_ERROR = 2

SEND_ERROR = 3

USER_CANCELED = 4

OTHERS = 5

.

IF sy-subrc 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Regards,

Kumar(Reward if helpful).