on 06-22-2012 8:44 AM
Hi Experts,
I had devlelop SAP Script, in that i had taken 4 pages. First page having mode START and next page is Second, while Scond page having mode INC and next page is Third, while Thied page having mode INC and next page is Fourth, while Fourth page having mode INC and next page is Fourth.
In page Counter Tab in Pages window i had taken number type as ARABIC.
I had created a window name page which i want to print in bottom on each page, and create a page window in each pages. In that i have given &Page& of &SAPSCRIPT-JOBPAGES& for printing pages, but &SAPSCRIPT-JOBPAGES& is printing properly while &Page& is not printing properly. In all pages it is printing as PAGE 1 of 4 , &Page& is not incrementing even though i have taken mode as INC.
So can anyone tell how to increment the pages number in SAP SCRIPT.
Thanks In Advance,
Ashish
Hi Ahsish,
Please use below code:
Page No: &PAGE(C2)& of &SAPSCRIPT-FORMPAGES(C2)&
&PAGE& : Gives Current page
&SAPSCRIPT-FORMPAGES& : Gives total pages
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi..
Take the &SAPSCRIPT- FORMPAGES& instead of &PAGE&...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, check the below code sample for your scenario.
I have create a page PAGE1 and next page is also PAGE1.
I am calling one MAIN WINDOW which has below logic on PAGE1.
/E MAIN1
* &PAGE& / &SAPSCRIPT-FORMPAGES&
/: NEW-PAGE
/E MAIN2
* &PAGE& / &SAPSCRIPT-FORMPAGES&
/: NEW-PAGE
/E MAIN3
* &PAGE& / &SAPSCRIPT-FORMPAGES&
/: NEW-PAGE
/E MAIN4
* &PAGE& / &SAPSCRIPT-FORMPAGES&
/: NEW-PAGE
In the driver program, I have four WRITE_FORM'S for the above 4 elements.
Try with this logic.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I hope 'START_FORM' is getting executed only once.
Regards
Raju Chitale
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.