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

Sapscript for displaying page no

Former Member
0 Likes
770

Hai Eveyone,

Now Im currently working in sapscript, I have one doubt on that.In my program i displayed data's in each of the page for every vendor . I need the page no Based on Vendor wise. It means for example if the vendor number changed the page no also starts from the first. How to do this ?.

<<removed_by_moderator>>

Thanks In Advance.

Regards,

Ekadevi.S

Edited by: Vijay Babu Dudla on Jan 31, 2009 4:01 AM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
750

Hi,

Maintain a variable for the page number.

Let it be page_no = 1 initially.

then you can use,

/: AT NEW vendor_no.

page_no = 1. "setting the page number from 1 when the vendor number changes.

/: ENDAT.

When its the same vendor you can increment the page_no and print it.

Hope this helps.

Regards,

Deepthi.S

4 REPLIES 4
Read only

Former Member
0 Likes
750

Hi devi ,

Can you please elaborate properly ?

Read only

GauthamV
Active Contributor
0 Likes
750

Hi,

Define a new variable to count the pages and use conrol break statements

to capture the page no according to vendor.

Read only

Former Member
0 Likes
750

&SAPSCRIPT-FORMPAGES& u can use this variable

to get the page number in scripts

Regards

Anbu B

Read only

Former Member
0 Likes
751

Hi,

Maintain a variable for the page number.

Let it be page_no = 1 initially.

then you can use,

/: AT NEW vendor_no.

page_no = 1. "setting the page number from 1 when the vendor number changes.

/: ENDAT.

When its the same vendor you can increment the page_no and print it.

Hope this helps.

Regards,

Deepthi.S