on 02-16-2009 3:07 AM
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
Resolved my self
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If your is resolves Close the thread
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
&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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.