cancel
Showing results for 
Search instead for 
Did you mean: 

smartofrm does not generate spool when run in background mode.?

Former Member
0 Kudos

Following print prameters are being provided but the smartform is not showing any SPOOL where as the jobs gets successfully executed.

CONTROL-NO_DIALOG = 'X'.

CONTROL-GETOTF = 'X'.

CONTROL-PREVIEW = 'X'.

OUTPUTOPTIONS-TDNOPREV = 'X'.

OUTPUTOPTIONS-TDDEST = G_PRINTER-TDDEST.

OUTPUTOPTIONS-TDNEWID = 'X'.

OUTPUTOPTIONS-TDNOPRINT = ' '.

OUTPUTOPTIONS-TDIMMED = ' '.

Pl advise.

Ven

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Added code to output ALV List as Smartform is not spooling for some reason.

former_member191735
Active Contributor
0 Kudos
  • Control parameters

p_ls_control_param-device = 'PRINTER'.

p_ls_control_param-no_dialog = c_on.

p_ls_control_param-getotf = c_on.

p_ls_control_param-langu = sy-langu.

  • Composer parameters

p_ls_composer_param-tdimmed = c_on.

p_ls_composer_param-tddest = p_rddest. "printer name

p_ls_composer_param-tdnoprint = c_on.

p_ls_composer_param-tdnewid = c_on.

p_ls_composer_param-tddelete = c_on.

  • Assign and determine smartform function module for Customer Statement

c_on = 'X'.

This will create the spool in background and in foreground. It worked for me.

Former Member
0 Kudos

Hi

I believe you need to check the Immediate Option to 'X' then it will create the spool immediately

Thakns

Pavan