Application Development 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: 

SMARTFORMS

Former Member
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

Hi,

do you want to create the window dynamically?

Cheers,

Stefan

Former Member
0 Kudos

hi chandu,

you can use loop with program lines (for looping flag condition) in your smartforms.

-Maharshi

Former Member
0 Kudos

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.