‎2006 Dec 18 6:15 AM
In SAP Script, we have pagge and total no of pages . Now I want to how to find page number and total no page dynamically. is it possible dynamically we will get page no and total no pages .
If i am passing more than one Delivery no , the page no and total page will reset based upon delivery no .
I have passing two delivery no like 1, 2 ( sapscript calculated automatically total no pages 5)
Delivery No 1 page no like 1of 4 ,2 of 4
Delivery No 2 page no like 3of 4, 4 of 4 ( i getting this page no in my sap script )
But Now I need 2 delivery no like
Delivery No 2 page no like 1of 2 ,2 of 2
‎2006 Dec 18 6:17 AM
PAGE:&PAGE& of &SAPSCRIPT-FORMPAGES(C)&
give this in the page window of ur form
dont forget to use C
for this u need to capture the values of the page into a variable and assign the variable to the page window.
and clear the count everytime a new delivery is assigned .
this thing will be in a variable .
<b>PAGE:&V_page& of &V_pages(C)&</b>regards,
vijay
Message was edited by:
Vijay
‎2006 Dec 18 6:26 AM
when ever u r writing the main window
loop at itab.
at new delivery .
v_page = 1.
endat.
call function 'write_form'
v_pages = v_pages + 1.
at end delivery .
clear : v_page , v_pages.
endat.
endloop.
‎2006 Dec 18 6:41 AM
‎2006 Dec 18 7:17 AM