‎2018 Jul 10 3:39 PM
Hi.
I have to print different smartforms, call different functions, in the same report in the same spool id, with the pages that I need to print.
I had successfully achieved to create all the pages that I need from different smartforms, using NO_OPEN, NO_CLOSE logic, but when it ends the logic it shows the form pages, i need that the program continues the flow, opening and closing spools. Is that possible?
‎2018 Jul 10 10:27 PM
I believe every possible question concerning Smartforms has already been answered on SCN. Try Google "Smartform add the same spool site:sap.com" or similar searches.
I'm not sure though what exactly you mean by "when it ends the logic it shows the form pages, i need that the program continues the flow". If it ended then what's there to continue? Might want to clarify what you mean exactly, if you don't find an answer on Google.
‎2018 Jul 11 7:49 AM
‎2018 Jul 11 2:12 PM
w_cnt2 is the current index of the table that i am looping, w_cnt have all the pages that i need to print, so when i check the case, after that i check which smartform i have to call, ive got 4 smartforms in the same program that i need to call. So, is it possible to have a same spool id to 4 smartforms?
I am not using NO_DIALOG and PREVIEW, but i will try it.
case w_cnt2.
when 1.
control_parameters-no_open = space .
control_parameters-no_close = 'X'.
control_options-tdnewid = 'X'.
when w_cnt .
control_parameters-no_open = 'X'.
control_parameters-no_close = space.
control_options-tdnewid = space.
when others.
control_parameters-no_open = 'X'.
control_parameters-no_close = 'X'.
control_options-tdnewid = space.
endcase.
‎2018 Jul 11 3:37 PM
CONTROL_PARAMETERS-NO_CLOSE and no_OPEN, or explicit call of FM SSF_OPEN and SSF_CLOSE, can generate a single print request. To prevent creation of a new spool id you could also check values of parameter CONTROL_PARAMETERS-TDNEWID and TDFINAL, and must set value of parametert USER_SETTINGS to space to prevent use of user settings when build generating spool.