cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with "displaying page number in invoice copies printout"

Former Member
0 Kudos

hi all,

I have a script that prints invoices. I am trying to display page no as Current page / total no of page.

I am using &PAGE& / &SAPSCRIPT-FORMPAGE&. when I give invoice numbers as input, if each invoice has different no of pages for example 1st invoice - 2 pages; 2nd invoice - 3 pages; 3rd invoice - 2 pages, while printing it correctly counts total no of pages as 7 pages . But, while printing current page is not printed sequentially from 1 to 7. instead, for each invoice it recounts from 1 i.e. 1/7, 2/7, 1/7, 2/7, 3/7, 1/7, 2/7.

how can I rectify this,

Thanks,

Rajan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Rajan

U r right

it does exactly like wat u specified

to rectify

just store the &PAGE& bfore entering in new invoice in a temporary variable and nxt time u print tempvariable+ &PAGE& instead of just &PAGE&

Hope it helps

Regards

Vikas C

Answers (3)

Answers (3)

Former Member
0 Kudos

Solved on my own

Former Member
0 Kudos

Maybe you can tell us how you did it.

Knowledgesharing is one the reasons this side excists.

Former Member
0 Kudos

Hi,

U can try giving all the WRITE_FORM,START_FORM , END_FORM within the same OPEN_FORM and CLOSE_FORM.

I think its taking different invoices as different jobs.

Thanks,

Nithya.

Former Member
0 Kudos

Hi,

try giving &page& / &sapscript-jobpages&.

This prints 1/2 ,2/2.

1/3,2/3,3/3.

thanks.

Former Member
0 Kudos

Hi sreesudha

the problem is not with &SAPSCRIPT-FORMPAGE&. the problem is with &PAGE&

I mean the problem is with wat is coming 1,2,3,4 in 1/7,2/7,3/7 and not with 7