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

not creating new spool

Former Member
0 Likes
669

Hi Experts

When i re- print smartform after changing the params of selection screen the new output is being appending in the same old spool. But I want new spool to be created for each time.

Pls Help.

Thanks

Ajay Kumar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
570

In your print program

pass ls_composer_param-TDNEWID = 'X' to Fm .

CALL FUNCTION lf_fm_name
       EXPORTING
                archive_index        = toa_dara
                archive_parameters   = arc_params
                control_parameters   = ls_control_param
*                 mail_appl_obj        =
                mail_recipient       = ls_recipient
                mail_sender          = ls_sender
                output_options       = ls_composer_param
                user_settings        = ' '
                is_nast              = nast
       TABLES
                lt_caufvd_tab        = caufvd_tab
       EXCEPTIONS
                formatting_error     = 1
                internal_error       = 2
                send_error           = 3
                user_canceled        = 4
                OTHERS               = 5.

Regards

Vinay

Hi Experts

When i re- print smartform after changing the params of selection screen the new output is being appending in the same old spool. But I want new spool to be created for each time.

Pls Help.

Thanks

Ajay Kumar

2 REPLIES 2
Read only

gaursri
Active Contributor
0 Likes
570

Hi Ajay,

Please check after refrshing spool request using TCODE SPAD and delete old spool request.

Hope your query resolves quickly.

Have a best day ahead.

Edited by: Srivastava.G on Sep 1, 2009 8:37 AM

Read only

Former Member
0 Likes
571

In your print program

pass ls_composer_param-TDNEWID = 'X' to Fm .

CALL FUNCTION lf_fm_name
       EXPORTING
                archive_index        = toa_dara
                archive_parameters   = arc_params
                control_parameters   = ls_control_param
*                 mail_appl_obj        =
                mail_recipient       = ls_recipient
                mail_sender          = ls_sender
                output_options       = ls_composer_param
                user_settings        = ' '
                is_nast              = nast
       TABLES
                lt_caufvd_tab        = caufvd_tab
       EXCEPTIONS
                formatting_error     = 1
                internal_error       = 2
                send_error           = 3
                user_canceled        = 4
                OTHERS               = 5.

Regards

Vinay