2008 Aug 20 1:35 PM
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.
2008 Aug 20 1:46 PM
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.
2008 Aug 20 1:43 PM
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
2008 Aug 20 2:15 PM
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'
2008 Aug 20 2:38 PM
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 (-:
2008 Aug 20 1:46 PM
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.
2008 Aug 20 1:50 PM
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*