on 08-06-2008 3:14 PM
Hi
I want to print 2 copies of form in sapscript but with title for the first print "Oryginal" and for the second
"Copy". How to do it with one click "Print" and without 2 different forms. This tittle must be dynamical depends from which is printing document (1-st or 2-nd).
Parameter tdcopies isn't good for this
Ok, I will try a loop
Edited by: Kosmo on Aug 7, 2008 11:20 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try this.....
loop 2 times.
if sy-index =1.
heading = original
elseif sy-index =2
heading =copy
endif.
open_form
write_form
close_form
endloop.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
&SFSY-PAGE& don't show me 1 in oryginall and 2 in a copy.
Maybe open_form two times will work.
Edited by: Kosmo on Aug 6, 2008 4:36 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
Try like this:
- create 2 different texts: original and copy
- make a condition for the original, like: SFSY-PAGE = 1
- make a condition for the original, like: SFSY-PAGE <> 1
Regards
Tamá
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can call the FORM two times from your driver program and depends on the call set one variable and pass that in the SAPScript.
Regards,
Naimesh Patel.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
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.