cancel
Showing results for 
Search instead for 
Did you mean: 

SAPscript - print copy number

Former Member
0 Kudos

Hi All,

I have to print 2 copies of a SAPscript. One is an internal copy and one is a customer copy.

I would like to print 'Customer Copy' on the 2nd copy. But I cannot seem to find any SAPscript system variable that keeps track of the copy count... I know that Smartforms uses a COPYCOUNT variable but I am using SAPscript here.

Any ideas? Has anyone done this before?

Thanks,

N.

Accepted Solutions (1)

Accepted Solutions (1)

FredericGirod
Active Contributor
0 Kudos

Hi,

did you check if the information is in the table NAST ?

have a look to the SAPScript of the Invoice, SAP manage the copy in the invoice.

Rgd

Frédéric

Former Member
0 Kudos

Hi Frédéric,

Thanks for your reply. NAST does not help much. Which Invoice SAPscript? There are many types...

Looks like I will have to implement some kind of counter in the print prog that I can read from the SAPscript.

Thanks,

Niall

FredericGirod
Active Contributor
0 Kudos

For the invoice, look the program RVADIN01 and the word 'REPEAT'.

Fred

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Fill the structure ITCPO... with TDCOPIES = 2 and pass it to the OPEN_FORM FM

Now while printing the form... in your print program

declare a variable to hold the string value "Customer copy'

do tdcopies times

case sy-index.

when 1.

var = 'ORIGINAL'.

when 2.

var = 'CUSTOMER COPY'.

...

when others.

endcase.

call your text element where you are displaying the var value

enddo.

regards

padma

Former Member
0 Kudos

Hi niall,

1. Probaby u can use the page number

to print using if condition.

&PAGE&

regards,

amit m.

Former Member
0 Kudos

Hi,

I have a SAP script in which i need to display the currect page number and copy number of the form. How can this be done ...

eg. Copy 1 of 4 ,copy 2 of 4 like that.

The total no. of copies will come from NAST table , but i don't know where the currect number will come from .

I got the total no of copies from nast table but i dint get the current copy can u help in this.

thanks in advance,

Anil.

Former Member
0 Kudos

Hi Niall,

Check out with the field ANZAL in table NAST. I hope this will give some help.

Thanks,

Hasmath.