Application Development and Automation 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: 
Read only

output in smartform

Former Member
0 Likes
726

I dont want print preview screen in the smartform output.

so i used control_parameters = 'X' in the my functional module.

but my question is how i make sure i am getting the output screen

or how can i get the output screen by supressing print preview.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
694

Hi

Using control parameters we can suppress the Print Preview screen. But make sure that in transaction SU3, in the defaults tab maintain the Output device.

5 REPLIES 5
Read only

bpawanchand
Active Contributor
0 Likes
694

HI

What you can do is pass a flag value to the smart form and in the smart from if you observer the import parameters list under that you will have CONTROL_PARAMETERS and its type is SSFCTRLOP if you double click SSFCTRLOP you can see the structure of it so in that structure you have PREVIEW column where if you make that field as 'X' then you can suppress it .

All you have to write in GLOBAL DEFINITIONS under INITIALIZATION tab a small piece of condition like

IF w_flag = 'X'.

CONTROL_PARAMETERS -PREVIEW = 'X'.

ENDIF.

check this i think it will work

Regards

Pavan

Read only

0 Likes
694

hi is this correct???????????????

DATA: cparam TYPE ssfctrlop.

*IF w_flag = 'X'.

cparam-preview = 'X'.

*ENDIF.

IF wa_pa0008-trfgr GE 80.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = 'ZSAL_FORM_G80'

  • VARIANT = ' '

  • DIRECT_CALL = ' '

IMPORTING

fm_name = fm_name

  • EXCEPTIONS

  • NO_FORM = 1

  • NO_FUNCTION_MODULE = 2

  • OTHERS = 3

.

IF sy-subrc = 0.

CALL FUNCTION '/1BCDWB/SF00000009'

EXPORTING

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

control_parameters = cparam-preview

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

  • output_options =

  • user_settings = 'X'

Read only

0 Likes
694

Hello

Try this:

1. After call 'SSF_FUNCTION_MODULE_NAME' you may call you SF by

CALL FUNCTION fm_name.

2. CALL FUNCTION '/1BCDWB/SF00000009'

...

control_parameters = cparam """ instead cparam-preview

it must work (-:

Read only

Former Member
0 Likes
695

Hi

Using control parameters we can suppress the Print Preview screen. But make sure that in transaction SU3, in the defaults tab maintain the Output device.

Read only

Former Member
0 Likes
694
l_composer_param-tdnoprev = 'X'.
 
      CALL FUNCTION l_fm_name
           EXPORTING
                    archive_index        = toa_dara
                    archive_parameters   = arc_params
                    control_parameters   = l_control_param
*                 mail_appl_obj        =
*                    mail_recipient       = l_recipient
*                    mail_sender          = l_sender
                    *output_options       = l_composer_param*