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 Printing current page number

Former Member
0 Likes
940

Hi,

I an working on a SAPScript where I need to print an image on every page except the second last page. I tried doing it with a check on current page number &page&. However it is printing same page number on every page. I have three types of pages in my script, FIRST, multiple NEXT pages and LAST. I do not want to print that image on last NEXT page.
How can I do that?

Can I use a counter in sapscript?

Regards,

Arpit

Hi,

I an working on a SAPScript where I need to print an image on every page except the second last page. I tried doing it with a check on current page number &page&. However it is printing same page number on every page. I have three types of pages in my script, FIRST, multiple NEXT pages and LAST. I do not want to print that image on last NEXT page.
How can I do that?

Can I use a counter in sapscript?

Regards,

Arpit

2 REPLIES 2
Read only

former_member196331
Active Contributor
0 Likes
749

HI,

May i know image means , icon or page background page image.

Read only

Chintu6august
Contributor
0 Likes
749

Hi,

You will get current page name in ITCTG-TDPAGE.

make your logic like :

IF ITCTG-TDPAGE = 'FIRST'.

<<include image

Elseif IF ITCTG-TDPAGE = 'NEXT'.


ElseIF IF ITCTG-TDPAGE = 'LAST'.

<<include image

EndIF.


thank you!!