cancel
Showing results for 
Search instead for 
Did you mean: 

Copy count issue in the smartform

Former Member
0 Kudos

Hi,

When printing the same invoice, more than one copies, customer requires that on the second printout 'INVOICE (COPY)' gets displayed and not only INVOICE like on the first printout.

In the NAST table there is field ANZAL that shows number of invoice copies that are going to be printed.

Unfortunately I am not able to find a field which shows at the run time the number of copy that is being printed.

I tried working with the field TDCOPIES from the structure SSFCOMPOP but it does not work for the field is always 1.

I tried also the COPYCOUNT from the SFSY structure but this does not work eider for this field is also 1.

I'll try working with memory but does anyone have any other suggestions?

Thanks in advance.

Regards,

Amel Alic

Accepted Solutions (0)

Answers (1)

Answers (1)

amit_khare
Active Contributor
0 Kudos

u ahve to use the COPY window to PRINT like this.. in the Normat even if you use the SFSY-COPYCOUNT it won't work.

wht u ahve to do is crete a WINDOW (Type COPIES WINODOW) then insert the same as u did... or just change teh Window type to COPIES window it will be fine.

~As find in forum.

Regards,

Amit

reward all helpful replies.

Former Member
0 Kudos

I did set up the WINDOW as COPIES window but the system structure SFSY gets reset every time a new copy is printed. Therefor is the SFSY-COPYCOUNT always 1. I not sure what goes wrong here.

It is an Invoice with standard SAP program RBL_INVOICE where I created a new (Z) smartform for.

Regards,

Amel

Former Member
0 Kudos

Thanks yar....

Its Working....

Thanks for your wonderful advice....

but i dont understand your logic....

I did use TDCOPIED = '3'...

But what i have found that smartform is being processed only one times...

Then how can i able to get... described by you and ur questioner????

I dont find any connection between COPY WINDOW... and the 3 Copies...although its working....

Once again .... Thanks & Regards,

Nirav Parekh

Former Member
0 Kudos

Hi !!!

I've the same problem with that document (Bill Invoice) how did you manage to resolve this?

Can you put more details please?

I'm using the Copy Pages and the SFSY-COPYCOUNT check but is not working.

Thanks in Advance,

Narciso Rodrigues

Former Member
0 Kudos

Hi,

Create a Window

and in the Program Lines

IF SFSY-JOBPAGES = '1'.
copy  = 'ORIGINAL FOR BUYER'.
COPY1 = 'ORIGINAL FOR BUYER'.
ELSEIF SFSY-JOBPAGES = '2'.
copy  = 'DUPLICATE FOR TRANSPORTER'.
COPY1 = 'DUPLICATE FOR TRANSPORTER'.
ELSEIF SFSY-JOBPAGES = '3'.
copy  = 'TRIPLICATE FOR EXCISE'.
COPY1 = 'TRIPLICATE FOR EXCISE'.
ELSEIF SFSY-JOBPAGES = '4'.
copy = 'QUADRAPLICATE FOR ASSESSEE'.
COPY1 = 'QUADRAPLICATE FOR ASSESSEE'.
ELSEIF SFSY-JOBPAGES = '5'.
copy = 'EXTRA COPY NOT FOR CENVAT'.
COPY1 = 'EXTRA COPY NOT FOR CENVAT'.
ENDIF.
var = var + 1.
vline = 4.

and declare variable in the Global definitions

COPY TYPE COPY

COPY1 TYPE CHAR30

VAR TYPE I

VLINE TYPE I

The Text to be displayed will be in your Variable COPY1

And in the tree of Smartform in the last

define the Commands(4 for 5 copies)

and specify the page name for go to next page as Page1 itself.

Regards,

Vijaya Lakshmi.T