on 12-31-2009 3:48 PM
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
Is that a smartform?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
It seems correct.
What do you mean by "it doesn't seem to close"? What are the exact symptoms?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.