cancel
Showing results for 
Search instead for 
Did you mean: 

Close Spool of several pages

Former Member
0 Kudos

Hi all,

I want to print several pages and close de spool

I´m using this:

When is the first line

po_control-no_open = ' '.

po_control-no_close = 'X'.

po_composer_param-tdnewid = 'X'.

po_composer_param-tdfinal = ' '.

When is the last line

po_control-no_open = 'X'.

po_control-no_close = ' '.

po_composer_param-tdnewid = ' '.

po_composer_param-tdfinal = 'X'.

Others

po_control-no_open = 'X'.

po_control-no_close = 'X'.

po_composer_param-tdnewid = ' '.

po_composer_param-tdfinal = ' '.

But the spool doesn´t seem close, why???

How can I close de Spool.

Thanks.

<MOVED BY MODERATOR TO THE CORRECT FORUM>

Edited by: Alvaro Tejada Galindo on Jan 4, 2010 5:37 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Is that a smartform?

Former Member
0 Kudos

yes, I'm using smartforms

Former Member
0 Kudos

Well, this is how I usually do it to print several spools in one page

no_close is always set to 'X' the whole procedure

After the first call I set no_open to 'X'. I also use a flag to see if in the first call the printing was canceled

After all the printing is done and the cancel flag is not set I just use function module SSF_CLOSE to close the spool

So in pseudo code that would be

ssfctrlop-no_close = 'X'
Loop at documents.
call function 'SMARTFORM_NAME'.
if sy-subrc <> 0.
l_cancel = 'X'.
endif.
ssfctrlop-no_open = 'X'.
endloop.
if l_cancel is initial.
CALL FUNCTION 'SSF_CLOSE'.
endif.

Answers (1)

Answers (1)

Sandra_Rossi
Active Contributor
0 Kudos

It seems correct.

What do you mean by "it doesn't seem to close"? What are the exact symptoms?