cancel
Showing results for 
Search instead for 
Did you mean: 

SAP_SCRIPT

Former Member
0 Kudos

Hi all,

<u>I want to print footer window in last page only.</u>

Means if my main window ends on first page, that footer window will appear in first page and if my main window continue printing in second page or any page apart from first page,it should print my footer window in that <u>last page</u>.it should not appear on first page or any subsequent page.

how to do it?

Thanks & Regards,

Dinesh...

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Dinesh,

Check Current page No equal to Toatal No of pages.

then print.

Logic:

write logic in Footer 'window

if &page& = &SAPSCRIPT-FORMPAGES&.

print text

endif

Thanks,

Amjad

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks,

Problem has solved.

Thanks & Regards,

Dinesh...

Former Member
0 Kudos

You can write simple logic at footer window.

/: IF &PAGE(C)& = &SAPSCRIPT-FORMPAGES(C)&.

P1 PRINT TEXT HERE

/: ENDIF.

Here P1 is the paragraph format and use above logic,it should work

Thanks

Seshu