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

Spool request

Former Member
0 Likes
768

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.

6 REPLIES 6
Read only

Former Member
0 Likes
741

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

Read only

0 Likes
741

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.

Read only

0 Likes
741

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

Read only

0 Likes
741

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.

Read only

FredericGirod
Active Contributor
0 Likes
741

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

Read only

Former Member
0 Likes
741

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