on 01-13-2007 1:36 PM
Hi,
I'm working on Bank Pay in slip smart from , the form to be printed 4
copies,in all the windows the data is same,only in footer window data changes
like in footer window in first copy with data 1.Bank copy.
in footer window in second copy with data 2.Bank copy
in footer window in third copy with data 3.Co-ordinator copy
in footer window in fourth copy with data 4.company copy
How to do it ?please advise me.
Thanks
Naveen
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 4 TIMES.
" ---> Here SY-INDEX can indicate which copy is beeing elaborated
CALL FUNCTION <SMARTFORMS>
....................
ENDDO.
Max
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
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'.
Regards
Subramanian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Create First Page. Then, Copy Paste First Page 3 times so that you will have total four pages. Then Change the Footer for each page. Now, you will have four pages with differnet footers. Therefore, every time you print a smartform, you will get 4 pages with different footers.
Reward points if the answer is helpful.
Regards,
Mukul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
u r requirement seems like ur values of 4 copies is constant will not change in this case in the text elment of footer write a condition check
only if page no =1 or page no = 2 ,another text element with condition only if page no = 3 ,page no. = 4.; here page no. is a variable .
so giving condition like this (the page no. value) ur logic will be simple
also dont forget to increment the variable immediately after printing the footer value and initially page no. value is taken as 1.
hope this works
hope u understand this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.