2009 Jan 31 6:39 AM
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
2009 Jan 31 9:29 AM
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
2009 Jan 31 6:44 AM
2009 Jan 31 6:45 AM
Hi,
Define a new variable to count the pages and use conrol break statements
to capture the page no according to vendor.
2009 Jan 31 6:58 AM
&SAPSCRIPT-FORMPAGES& u can use this variable
to get the page number in scripts
Regards
Anbu B
2009 Jan 31 9:29 AM
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