12-11-2007 5:22 AM
Hello experts,
i am practicing on SMARTFORMS.
i want to print same window 10 times in same page.
i mean when i click on the Print priview,it shows all the 10 windows on the same page.
can u plz help me out.
thank you
12-11-2007 10:56 AM
12-11-2007 12:23 PM
hi chandu,
you can use loop with program lines (for looping flag condition) in your smartforms.
-Maharshi
12-11-2007 12:29 PM
Hi
U should control wich copy is being printed and so decide which text to be printed in the footer.
U can know the number of copy driving the call of your smartforms:
DO 10 TIMES.
" ---> Here SY-INDEX can indicate which copy is beeing elaborated
CALL FUNCTION <SMARTFORMS>
....................
ENDDO.
OR ELSE:
This is for 4 times ,try for 10 times.
Declare a variable as follows in your print program.
Data: struct_output_opt LIKE ssfcompop. "Output Options
In this structure set TDCOPIES = 4. (no. of copies)
And before you call the Smartform FM:
pass this structure to the parameter - OUTPUT_OPTIONS.
Now in the Smartform, in your footer, check the page no. If sy-pagno = 1 or sy-pagno = 2, then prnt the text: 'Bank Copy', if sy-pagno = 3 , print 'Co-ordinator Copy' and if sy-pagno = 4 print 'Company Copy'.
Reward points if found helpful....
Cheers,
Chandra Sekhar.