cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe forms - Footer at last page

Former Member
0 Kudos

Hi Experts,

I have to put bank details at the end of last page. If invoice has only 1 page it should come at the end of it, if it has more that 1 page it should come at the end of last page.

Please give me the script code If I have to do by scripting because i have no idea of it.

I have text ID for all the bank details which is based on the company code. I can get the bank details using ABAP. All the bank detailsa re in a subform of body page. Please tell me if there is any change required in layout.

Regards,

Nik

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Resolved my self

skhadir
Explorer
0 Kudos

may you explain how?

Former Member
0 Kudos

If your is resolves Close the thread

Former Member
0 Kudos

Hi Dude,

In Adobe forms please find the belwo code

if ($.nextpage eq 0 ) then

$.presence = "visible"

else

$.pressence = "hidden".

endif

Thanks & Regards

Ramakrishna Pathi

Former Member
0 Kudos

&page& gives value of current page

and &SAPSCRIPT-FORMPAGES& gives value of total no of pages(last page no).

if &PAGE& = &SAPSCRIPT-FORMPAGES&

code of last page

else

code for other pages

endif.

Former Member
0 Kudos

Problem Solved

Former Member
0 Kudos

Hi,

take the symbol &SY-PAGE& for current page and &SAPSCRIPT-FORMPAGES& for total number of pages in the form.

if &SY-PAGE& = &&SAPSCRIPT-FORMPAGES&

than your current page is your last page create a FOOTER window on that page below your MAIN Window and in the LINE EDITOR

/E <data_element>

  • code or bank details

Hope this helps

Thanks

Ravi

Former Member
0 Kudos

Hi Nikhil,

You know your on the last page by using NEXTPAGE.

when &nextpage& = 0 , it is the last page.

and you can check your current page using &page&.

So you can try your logic something like this.

/ : if &page& > 1

write footer on &nextpage& = 0 (that is the last page)

elseif &page& = 1

footer on &page& (current page)

endif.

Try using protect and endprotect .

Much Regards,

Amuktha.

Edited by: Amuktha Naraparaju on Feb 16, 2009 5:41 AM