cancel
Showing results for 
Search instead for 
Did you mean: 

Spool Generation

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi!

Specify

WA_OUTOP-TDIMMED = ' '.

WA_OUTOP-TDNOPREV = ' '.

WA_OUTOP-TDNOPRINT = ' '.

WA_OUTOP-TDNEWID = 'X'.

Rest all looks ok.

Cheers!

Anurag

Former Member
0 Kudos

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