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: 

different titles for different copies while printing an invoice

Former Member
0 Kudos

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 ....

5 REPLIES 5

former_member181995
Active Contributor
0 Kudos

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.

former_member184657
Active Contributor
0 Kudos

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

kiran_k8
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

sorry guys i have posted the same query twice..so i m closing this thread ...

0 Kudos

poonam,

thank you for understanding SDN and us.

Amit.