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

Open same spool id for different smartforms functions

ninhochin
Explorer
0 Likes
1,037

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?

4 REPLIES 4
Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
923

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.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
923

Could you elaborate on your "when it ends the logic it shows the form pages", with the NO_OPEN/NO_CLOSE of Smartforms control structure you should already have found a solution, Which value did you pass yo NO_DIALOG and PREVIEW?

Read only

0 Likes
923

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.

Read only

923

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.