Application Development 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: 

footer in last page

Former Member
0 Kudos

how to display footer in the last page for 10 pages

2 REPLIES 2

Former Member
0 Kudos

Hi

Keep the condition as below to print the footer

IF &PAGE& EQ &SAPSCRIPT-FORMPAGES&

....WRITE THE FOOTER LINES

ENDIF

Regards

Anji

Former Member
0 Kudos

Hi Harish,

Proceed like this:

1) Create the footer window and add the text you want to print.. but below a window element like this:

/E FOOT

/: If w_last EQ 'X'

  • This is footer..

/: ENDIF.

Defining a window element will prevent print of this text automatically.

2) in your Driver program, you must be looping at the internal table and calling the WRITE_FORM function with window MAIN inside the loop.

As soon as the loop gets completed, set the w_last flag. and call function WRITE_FORM passing the window name as FOOTER and element as FOOT

Thanks and Best Regards,

Vikas Bittera.