cancel
Showing results for 
Search instead for 
Did you mean: 

footer at last page

Former Member
0 Kudos

Hi, all.

I have a sapscript probleme , i want to dispaly a footer at the last page , but i don´t want to leave a blank space in the others pages .

Remark

i can't display footer in the main via /: bottom /: end bottom because its too long

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi karim sefiani sefiani,

I want to dispaly a footer at the last page , this can be done like

If &NEXT-PAGE& = 0.

then print whatever you need..

endif.

but i don´t want to leave a blank space in the others pages .(Then wht you want to print another pages ?)

Remark:

i can't display footer in the main via /: bottom /: end bottom because its too long (wht is too long)

any doubt revert me back..

Regards,

sg

Answers (2)

Answers (2)

Former Member
0 Kudos

hi Sunnel / Sravanthi,

we know that the space reserved for /:bottom /:endbottom is limited , then i can't dispaly my FOOTER entirely (because is too long ) .

Now im writing the footer separately in other window, and at end of main im writing a blank line dispalyed only in last page in order that the footer data not show over the main data .

main

_________

footer

_________

________________

Regards,

karim

former_member585060
Active Contributor
0 Kudos

Try to this way

Create two pages in script.

In page1 : create the main winodw and display the data as per your requirement.

In page2:create the var window assign as footer window and dispaly the text as per your requirement.

Page1 -


>page1(next page)

page 2------>blank(next page).

and in Main Window after all the fields description in next line

give NEW-PAGE page2 command.

Ex:-

In Main Window

P1 &ABCD-ABCD&,,&ABCD-ABCD&

/: NEW-PAGE page2

Former Member
0 Kudos

Hi karim,

Create two pages in script.

In page1 : create the main winodw and display the data as per your requirement.

In page2:create the var window assign as footer window and dispaly the text as per your requirement.

Page1 -


>page1(next page)

page 2------>blank(next page).

In driver program.

AT LAST.

      CALL FUNCTION 'CONTROL_FORM'
        EXPORTING
          command   = 'NEW-PAGE PAGE2'
        EXCEPTIONS
          unopened  = 1
          unstarted = 2.
    ENDAT.

Regards,

Sravanthi