cancel
Showing results for 
Search instead for 
Did you mean: 

smartforms - many documents in the same spool

Former Member
0 Kudos

Hi expert,

I have a document composed by 1 page. In this page I have 2 table: 1 in the windows and the 2 in the main window.

all run ok . if I want print 10 document, I have to call 10 time the smartforms.

Now i want to make a modify:

In the same time, i want to print many document.

To do it, i think that when I call the smartform I pass 2 big internal table, with data of many document, and inside the form i have to split in different page. It's correct ?? it's a good idea ?

how I can make it ?

tks,

bye.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

SPLIT IN MANY PAGE IN FORM

Former Member
0 Kudos

after executing this FM SSF_FUNCTION_MODULE_NAME'

its generate the some function module name automatically generate for below

in this function module you have output_options

DATA: ls_composer_param TYPE ssfcompop.

CALL FUNCTION lf_fm_name

EXPORTING

archive_index = toa_dara

archive_parameters = arc_params

control_parameters = ls_control_param

mail_recipient = ls_recipient

mail_sender = ls_sender

output_options = ls_composer_param

user_settings = space

TABLES

gt_final_ssf1 = gt_final_ssf1

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

when you double click this strcture SSFCOMPOP you can find the field TDCOPIES

for this field yo can pass number of copies which you want..

TDCOPIES TDSFCOPIES NUMC 3 0 Number of Copies

Former Member
0 Kudos

Hi chenna,

tks for reply, but I don't understand ...

you mean that with MF lf_fm_name is possible to make a different copy for the same document ??

I tried to check MF lf_fm_name but it's does not exist...

and, also, I dont want many copy of the same document, but print many document in the same smartforms's call ....

and idea ?

tks

Former Member
0 Kudos

you can pass the SPACE for this TDNEWID field in output_options

joginder_singh
Active Participant
0 Kudos

Hi

The approach you have mentioned is the best way of doing it. You can make use of New page event in it to trigger a the next page in which the next document data is printed. If all the pages format is same then if your page name is 'FIRST' include the same name in the next page as well. So the same page is called when a new page event is triggered.

I hope this hint helps you.

Cheers

Joginder