‎2008 Jul 23 12:08 PM
Hi All,
I have requirement for a customer Acct statement form, wherein I have to print different footers on alternate pages.. say like.
it's a duplex printing script.
for each customer statements, the first page should have a footer "Contd on reverse" and the second should have "contd.."
and again the third "Contd on reverse".
I.e for even pages it's "Contd on reverse"
and for odd pages it's "contd..".
I suppose we can manage using the PAGE variable.
Can you provide some help on how to go about this logic.
‎2008 Jul 23 12:41 PM
Hi,
Based on the page number try to print the footer. Try to define the text elements in the same window. In driver program, try to keep if condition based on page number then print the correspoding text elements.
or
In driver program-> calling Text elemnts-> keep this code in Text element in script.
consider the MOD of page No by 2.
If it is Zero
print that 'Conttd on reverse'.
else.
print 'Contd'.
endif.
Thanks & Regards,
Chandralekha.
‎2008 Jul 23 12:47 PM
well you CAN use the page variable.
But there is another way i which i sense is a bit easier.
in Sap-Script you got PAGES.
what about copying your page NEXT (hope you have such) to a page next_straight.
you should then have NEXT a following page in page FIRST, while NOW comes the clue.
following page of page next is not next like before but its next_straight.
and following page of next_straight is next.
now you can change the footer of either page next or next_straight to the desired footer.
‎2008 Jul 23 2:40 PM
Hi Chandralekha,
Can you please give me the sytax for calculating the mod of page number in the layout text editor.
thanks a lot...
sheetal