2006 Mar 07 3:43 PM
Hi,
I am calling 2 smartforms from a print program.
When i print, 1st smartform output stored to one spool reqest and 2nd smartform output is stored in another spool request.
Is there any output option, so that i can store both smartforms output in a single spool istead of multiple spools.
I aready kept TDNEWID = space.
Any suggestions would be appreciated.
Thanks,
Subba.
2006 Mar 07 3:46 PM
hi Subha,
Can you provide more information on how you are calling your smartforms in print program.
You can control this by using OPEN_FORM and CLOSE_FORM in control parameters.
Regards,
Lanka
2006 Mar 07 4:21 PM
I have print program Lets say ZPRINT1.
I have data in internal table, so I am calling all below smartforms in a LOOP.
First smartform (SF1)is to print 'START INVOICES TYPE SS'.
Second smartform (SF2) is to print all invoices and this smartform print program (ZPRINT2) will be called through submit from ZPRINT1.
Thirst smartform (SF3) is to print 'CLOSE INVOICES TYPE SS'
Smartforms SF1 and SF3 are in the same print program. SF3 smartform is in another program.
So SF1 and SF3 output is stored in same spool and SF2 output is stored in different spool.
How can i use open_form and close_form directly.
thanks.
2006 Mar 07 4:52 PM
Hi Subha,
You are calling all the three forms from one print program (ZPRINT1) in a loop.
Try this:
Please set the following flags before the function calls (for all 3 form calls)
DATA: LS_CONTROL_PARAM TYPE SSFCTRLOP. " Control structure
LS_CONTROL_PARAM-NO_OPEN = 'X'.
LS_CONTROL_PARAM-NO_CLOSE = 'X'.
CALL FUNCTION LF_FM_NAME
EXPORTING
ARCHIVE_INDEX = TOA_DARA
ARCHIVE_PARAMETERS = ARC_PARAMS
CONTROL_PARAMETERS = LS_CONTROL_PARAM
-
-
Are you calling the Print/Preview window for all three forms or you are calling once at the first form call.
Regards,
Lanka
2006 Mar 07 6:03 PM
Hi Lanka,
Thanks for your information.
I have solved it but your infomration given help to search in help.sap.com.
http://help.sap.com/saphelp_nw04/helpdata/en/64/bf2f12ed1711d4b655006094192fe3/content.htm.
Thanks again for your information.
Subba.
2006 Mar 07 3:47 PM
Hi,
you have two options : close spool (SSFCOMPOP-... )and open new spool (SSFCOMPOP-TDNEWID) .
so don't close the spool in the first one, and don't use new spool in the second one.
Rgd
Frédéric
2006 Mar 07 3:51 PM
Hi,
you can use one opene_form and one close_form , in between call your smart forms. so that every thing will be added to one spool.
regards
vijay