Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

sap script page no dynamically

Former Member
0 Likes
554

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

4 REPLIES 4
Read only

Former Member
0 Likes
521

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

Read only

Former Member
0 Likes
521

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.

Read only

Former Member
0 Likes
521

hi,

check this link.

https://www.sdn.sap.com/irj/sdn/collaboration.

-Priyanka.

Read only

0 Likes
521

can you plz give me correct path.