on 02-09-2008 3:25 AM
Hi Friends,
Actually i have created a smartform which will trigger in userexit based on different conditions, but by smartform is working fine when i run that userexit but my requirement is i want to supress that print and printpreview screen and directly generate a spool. For this i am using the structure SSFCTRLOP but by using this i can supress the print and printpreview screen but spool is not generating please look my code and advice.
please check the code
DATA: wa_outop TYPE ssfcompop,
wa_control_parameters TYPE ssfctrlop,
fm_name TYPE rs38l_fnam.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = p_sf_name
IMPORTING
fm_name = fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
WA_OUTOP-TDDEST = 'TEST'.
WA_OUTOP-TDIMMED = 'X'.
wa_control_parameters-no_dialog = 'X'.
wa_control_parameters-device = 'PRINTER'.
wa_control_parameters-preview = ''.
wa_control_parameters-langu = 'EN'.
wa_outop-tddest = 'LOCL'.
wa_outop-tdarmod = 1.
CALL FUNCTION fm_name
EXPORTING
output_options = wa_outop
user_settings = space
wa_ynz_label = p_wa_ynz_label
control_parameters = wa_control_parameters " sharma
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
Regards,
DVNS
Hi!
Specify
WA_OUTOP-TDIMMED = ' '.
WA_OUTOP-TDNOPREV = ' '.
WA_OUTOP-TDNOPRINT = ' '.
WA_OUTOP-TDNEWID = 'X'.
Rest all looks ok.
Cheers!
Anurag
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can supress print preview . But should not supress print . The print option itself generate the spool. with print you will not see the outout.
Reward points if useful.
Regards,
Nageswar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.