cancel
Showing results for 
Search instead for 
Did you mean: 

Page Numbers

Former Member
0 Kudos

Hi Friends,

I ahve to include oage numbers in the form. I have created a VAr window as page for that and included in the form layout. Then I am using Page &PAGE& of &SAPSCRIPT-FORMPAGES& . Whats its doing is its printing the pages as 1 0f 1 and 1 of 1 if there is two pages. Its not populating it correctly. Can somebody help me with this.

Regards,

Kiran

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

How have you defined the page counter in the page paramters?

It should be START for the first page and and INC for the next one.

Max

Former Member
0 Kudos

Hi MAX,

Yes done it..

Regards,

Kiran.

Former Member
0 Kudos

Hi

It seems all is right, are you using fm START_FORM and END_FORM in your program?

Max

Former Member
0 Kudos

Im new to scripts and am just changing the existing form. I didnt realsie that I have to change the driver program. I will look into it.

Thanks MAX.

Former Member
0 Kudos

Hi Max,

What are all the parameters needs to be passed. It is created when a transfer order is posted. Any suggestions..

Thanks,

Kiran.

Former Member
0 Kudos

Hi

Can you explain what you mean?

U can use all parameters (variables) defined in the program and you need to print.

Max

Answers (2)

Answers (2)

ferry_lianto
Active Contributor
0 Kudos

Hi Kiran,

&PAGE& will give current page no.

&FORMPAGES& will give total no of pages.

To display page nos in each page ,

  • PAGE &PAGE&( &FORMPAGES& )

this will display PAGE 1( 3 )

To display TOTAL PAGE no ONLY IN last Page, then you have to use the below logic.

/: if &NEXTPAGE& = 0

  • PAGE &PAGE&( &FORMPAGES& )

/: ENDIF

Regards,

Ferry Lianto

Former Member
0 Kudos

ur code is correct but u have increement the page numbers within the code.

Former Member
0 Kudos

Yes I have done that. There are 2 pages and in the FIRST page its in start mode and next page is NEXT and in the NEXT page mode is INC and next page is NEXT.

What else have I to do???