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: 

sub: SMARTFORMS

Former Member
0 Kudos
155

Hi ALL,

I am going to give 5 copys of invoice output at a time.

But i want first copy of output containe Wording "Original" and remaining copys having wording "Copy".

how to identify how many copys of smartforms and how to differentiate copy of outputs before going to spool.

thanks

sridevi

6 REPLIES 6

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Kudos
126

Hello,

You need to declare the window as "Copies" window. And the fields: SFSY-COPYCOUNT & SFSY-COPYCOUNT0 to count the copies.

BR,

Suhas

Former Member
0 Kudos
126

HI I am working in sap 4.6c vartion. in that not having system field like SFSY-COPYCOUNT.

do have any idea how to get. other than this variable.

Former Member
0 Kudos
126

Hi,

If you are using WAS 6.10 and above, then you should be able to use these smartforms parameters:

1. &SFSY-COPYCOUNT0& which will have value 0 for original and increment by 1 for all other copies

2. &SFSY-COPYCOUNT& which will have value 1 for original and increment by 1 for all other copies

Regards,

Lim...

Former Member
0 Kudos
126

hi,

use variable SFSY-COPYCOUNT to check for original and duplicate

if SFSY-COPYCOUNT > 1 then print duplicate else original.

see this link

thanks

thanks

Former Member
0 Kudos
126

Hi,

if syst-copycount is not available, still you can do the manual process.

Declare a local variable with initial value as o, add 1 to the value. And if the value is 1, mark as ORIGINAL, if greater than one, mark as copy / duplicate.

Hope method may resolve issue.

SP Raj

Former Member