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

Duplex printing script

Former Member
0 Likes
453

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.

3 REPLIES 3
Read only

Former Member
0 Likes
420

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.

Read only

Former Member
0 Likes
420

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.

Read only

Former Member
0 Likes
420

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