07-15-2008 11:16 AM
hi guys !!
I want to print different titles on copies as follows...
1st copy - "Original"
2nd copy - "Duplicate"
3nd copy - "Triplicate"...
i have used system vairable SFSY-COPYCOUNT....
in my 'Copies Window'..i have the following program lines..
CASE SFSY-COPYCOUNT.
WHEN 1.
TEXT = 'Original'.
WHEN 2.
TEXT = 'Duplicate'.
WHEN 3.
TEXT = 'Triplicate'.
ENDCASE .
but the problem is this variable is always 001.....
i guess all the variables are initialised when ever the next copy is printed....
any idea why????
thnx ....
07-15-2008 11:18 AM
Poonam,
the same thing i post in your other thread have you look that?
and pls do not post similer thread you must to update your previous one.
AMit.
07-15-2008 11:20 AM
u need to mention SFSY-COPYCOUNT = 001, SFSY-COPYCOUNT = 002 and SFSY-COPYCOUNT = 003 in the conditions tab of the respective text fields.
u need not use the WHILE statement.
and then only wud it work fine.
pk
07-15-2008 11:23 AM
Poonam,
Instead of that you just add a window and in that widows text editor hardcode it as
ORIGINAL []
DUPLICATE[]
TRIPLICATE[]
Now in the driver program do it as below
DATA: ls_ctrl_params LIKE ssfctrlop, "Control Parameters
ls_outp_opts TYPE ssfcompop. "Output Options
To print 3 copies
MOVE '3' TO ls_outp_opts-tdcopies.
In the function module
CALL FUNCTION v_fnam
EXPORTING
control_parameters = ls_ctrl_params
output_options = ls_outp_opts
K.Kiran.
07-15-2008 11:23 AM
sorry guys i have posted the same query twice..so i m closing this thread ...
07-15-2008 11:26 AM