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 footer

Former Member
0 Likes
379

hi to all

help me in this issue,

i am working on cust statements i had a problem in that

when there are less no of inovices the footer text is coming correctly in first page but whrn there a many invoices the records are going to second page and the footer text is coming in both the pages. but i want it as it as when there are less records footer should print in first page and when the records are more it should print in second page how can i do it.

thanks in advance

kiran kumar

3 REPLIES 3
Read only

Former Member
0 Likes
344

In the footer text elemet write a if statement as below

if &page& = 0

ur code...

else.

ur code..

endif...

Read only

Former Member
0 Likes
344

Hi kiran,

U can place ur footer window in last page, so that u will get required o/p.

Try this,

When you are on your window, in the third tab 'Conditions', you can try option : 'Only after End of Main Window '.

the window footer must be declared in both pages FIRST and NEXT

within window footer do:

/: IF &NEXTPAGE& = 0

HERE GOES YOUR CODE

/: ENDIF

Note that the key here is &NEXTPAGE& = 0

Regards,

Kumar

Read only

0 Likes
344

hi kumar,

i have done it

my first page is first and next is next

and in footer i kept as u said if &nextpage& = 0

but it is not working.

thanks in advance

kiran kumar.