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

Single spool Output_options (SMART FORM)

Former Member
0 Likes
444

HI Guys,

I have a problem with the output_options values in

my smart form report. Whenever I run the report which

has more than a row, it prints in single spool without any

problem. If there is a single row, report does not print

anything at all.

I am attaching my code here . please help me.

Regards,

Harsha

SORT itab BY gpag avm_nr inv_no pos_nr.

control_parametres-no_open = 'X'.

control_parametres-no_close = 'X'.

output_options-tddest = 'LOCL'.

control_parametres-no_dialog = 'X'.

control_parametres-device = 'PRINTER'.

control_parametres-preview = ' '.

  • output_options-tdnewid = 'X'.

output_options-tdimmed = 'X'.

output_options-tddelete = 'X'.

AT FIRST.

control_parametres-no_open = ' '.

ENDAT.

AT NEW inv_no.

CLEAR sf_tab.

REFRESH sf_tab.

ENDAT.

MOVE-CORRESPONDING itab TO sf_tab.

APPEND sf_tab.

AT END OF inv_no.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = 'ZMASF_TIMES_JOB_INVOICE'

IMPORTING

fm_name = fm_name.

CALL FUNCTION fm_name

EXPORTING

control_parameters = control_parametres

output_options = output_options

user_settings = ' '

TABLES

itab = sf_tab

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

ENDAT.

ENDLOOP.

2 REPLIES 2
Read only

naimesh_patel
Active Contributor
0 Likes
413

Hello,

Remove comment on the statment

output_options-tdnewid = 'X'.

Check you last print spool combines in the last spool.

Regards,

Naimesh

Read only

0 Likes
413

Thanks Naimesh for the reply. I had earlier tried without

the comment. Does not print with or without the comment if

the itab has only one row.

Regards,

Harsha