Alv page no 1 of 10 in footer
Hi All
I am using reuse alv Grid FM. I need to print alv report providing 'Page No. 1(Current page) of 10(end of page) in footer. Could any body help me with sample code.
-Usha-
Hi,
suppose 65 lines per page , take the number of lines of ALV and devide with 65 , then you will know no.of pages.
use describe table of internal table , then you will get number of lines that you are going to display in alv.
no_pages = no_of_lines / 65.
write: sy-uline(50).
skip.
write:/40 'Page:', sy-pagno, 'of' no_pages .
endform.
more clearly :
DESCRIBE TABLE i_final_data LINES ws_final_count.
IF ws_final_count > 65 .
ws_pages = CEIL( ws_final_count / 65 ).
ELSE.
ws_pages = 1.
ENDIF.
Laxman
Similar Messages
-
i have 5 html pages that share a common header, footer, and sidebar. how do i use my nav bar to change the content of the body without duplicating a lot of code? thank you!
i inherited the website. It’s for a non-profit and is not very
sophisticated, and neither am I in webdesign. It currently has multiple
pages that are identical except for that body section, so whenever i change
the navigation (in the sidebar) I have to update every html page. I want
to have one basic page, and just call in the different body content based
on the link the user selects from the nav bar. How can i do that using a
script? i am using Dreamweaver.
~ in love and light ~
Jeannie
On Sat, Feb 7, 2015 at 4:07 AM, Ben Pleysier <[email protected]> -
Dear SDN,
I found lots of posts with this title, however, after following all the instructions, my ALV does not show any page break.
Using input table IT_SORT of the ALV Function Module.
WA_SORT-FIELDNAME = 'PSPID'.
WA_SORT-SUBTOT = 'X'.
WA_SORT-GROUP = '* '.
APPEND WA_SORT TO IT_SORT.
What might be missing?
How should this page break come up?
Thank you.
Regards,
Fabiohi,
Check the below link
page break in ALV
Page break Ups in ALV reports
PS-> In ALV grid, we will not be able to see the page breaks on the screen. Once we convert the ALV grid to u201CList Outputu201D,we can see the page breaks or during print from the ALV grid.
Reagrds,
Nagaraj -
ALV Page Break when Catagory Changes (ie SO # change)
I will have an ALV report with a Sale Order # on a header section and line items associated for the header SO#, and when a different SO# occurs it will go to next page and display the next SO# on header section and the item info on the main body. Is this possible and how would I set this up? (not using OO). Thanks in advance.
Hi,
Try this..
Add a row for the sales order # field to the sort internal table T_SORT and pass it in the parameter IT_SORT..
DATA: T_SORT TYPE LVC_T_SORT.
DATA: S_SORT TYPE LVC_S_SORT.
S_SORT-SPOS = '1'.
S_SORT-FIELDNAME = 'VBELN'. "Sales order #
S_SORT-UP = 'X'.
S_SORT-GROUP = '*'. "This will trigger a page feed
APPEND S_SORT TO T_SORT..
Thanks,
Naren -
Page number, in a table, in footer
Hello,
I'm having an issue which I think might be a legitimate bug. Here's the probem:
• I'm adding the dynamic "page number", into a table, that resides within the footer.
• When the page number reaches double digits (10, 11, etc), the number displays as two digits, but the spacing is being treated like a single character.
So, when you hit "10" the zero overlaps any text that comes after the number. You can add extra spaces to make up for this issue, but then the previous, single digit, pages are all messed up. They have way to much spacing now.
I've tried everything I can think of and still can't get around this issue. Starting a brand new document, removing all formatting, etc. I'm hoping someone has run across this before and knows of a solution, or maybe an update to fix this in Pages (Fingers crossed..haha).
Any help or comments is appreciated.
Thanks,
JoshHi Jerry,
I've saved a screen shot of my existing working document as well as a brand new blank document to show that it's not my styles that's causing the issue. You will notice that the "10" page number is overlapping the text that follows it. When you highlight the "10" only the "1" get's highlighted, which makes me think it's representing that number incorrectly as a single digit. -
Page number to right/left in footer, custom page size
I have a document that is 70 mm wide. In the footer, I want page numbers on the far right or left, respectively. It looks great in my other documents that are 80 mm wide. How do I change the tab in the 70 mm wide document?
FrameMaker v. 10Change the tab setting for the footer paragraph format.
I have noted that it's often necessary to set a right tab to 0.01 inches less than the footer frame width. If you get a wrap-around, try it. -
How to suppress page header when rendering particular group footer
Description: I am using Crystal Reports 2008. I have a report with a page header, and several groupings. The groups all suppress their headers, but have footers. The grouping is in the order: type,county,city,status,parent. The first 3 footers force a new page before the footer. The county footer includes summaries and charts.
Problem: The client wants the header displayed for the detail and the header for the county footer to be different. How can I make this happen?
More Info: I currently have just a page header. I have tried messing with the suppress formula for the page header, but I cannot figure out the correct formula to use to suppress the page header on a county footer page. Is there a way to do this, or is there a completely different approach I should be taking to solve this?
I can provide more info if needed.
Google search was unhelpful in solving this problem. This problem is driving me nuts. Any help appreciated.
Thanks,
MichaelWhat i would suggest is to create a new variable in WhilePrintingRecords evaluation time. For example:
1. Boolean variable set to TRUE in Group Footer #2 (County)
2. Reset it to FALSE in Group Header #2 and Group Footer#1
3. Use the variable for conditional suppression -
Dynamic tables on one page - overflow problem with repeating header/footer
Hi,
with the help of the user RADZMAR I was able to create dynamic tables..
But now, I have got the next problem.
2 different tables are placed on 1 page.Each of them should be dynamic.
Please let me list what is working, and what not:
each textfield should be expandable (-> working)
Table 01 should be overflowing to page 02 (-> working)
Table 02 should be overflowing to page 02 (->working)
Table 02 should be scrolling to page 02 if tabele 01 is growing (->working)
Table 01 and Table 02 should be splittable (->working)
header 02 + the footer 02 ( from table 02) should be repeated on every page (->working)
header 02 + the footer 02 ( from table 02) should not be stand alone, indepentenly on which page (-> NOT WORKING)
In other words:
How can I reach, that the header and the footer enclose at least ONE textfield-row ?
The setting "keep with previous / following" did not helped me.
If the text in table 02 is large, the settings "keep with..." cause some layout destructions.
This is the screenshot of the problem:
Here you can download my doc:
https://acrobat.com/#d=V*HZAV8VILZarp6gF0B3nw
Thanks and Greetings
NuriYour question was "... but the font on the footer is much larger than that of the template", yes?
I only can repeat, look at the difference of:
1. index.html (Font-size > medium) >
2. Calendar.html (Font-size > no entry):
> "... font on the footer is much larger than that of the template",
Hans-Günter
P.S.
See us again - maybe - at Monday > we will do a nice little trip to Austria. -
Shrink image on PDF page to make room for header & footer
I have an application that prints to pdf with no header and footer, and does not leave wide enough margins for me to add the header & footer using Acrobat without overwriting part of the document/graphic on the page.
What would be the EASIEST way for me to reduce the image and widen top & bottom margins on each page of a .pdf document without cropping away part of the image, so that I can add the header & footer to each page?
Thank you in advance for your suggestions.Use the graphics package that you used to create the PDF to add the margins. You might also print to a new PDF to add margins. Graphics do not scale in a PDF, at least in my experience.
-
Hi All,
I have a requirement to provide a Headcount of active employee for each benefit plan. I had extracted & populated the output table with the required fields and it needs to be printed in ALV grid with the total count of employee at benefit plan level.
For example:
Employee ID (P0002-PERID)...First Name (P0002-VORNA)...Personnel Area (P0001-WERKS)...Personnel Sub Area (P0001-WERKS)...Benefit Plan (P0377-BPLAN)...Start Date (P0377-BEGDA)...End Date (P0377-ENDDA)
The above fields are columns.
Each benefit plan should start in new page and the total (number of employee) in that plan at the end.
Please help me in acheiving the above requirement.
Thanks in advance.
SatishHi,
Please guide me.
Satish -
Hello! Could someone please help me with this one?
I have an ALV report that requires to have a page break every N lines. I've checked initially with similar posts on the forum, but so far all the solutions I've seen are based on the SORT-GROUP field. Has anyone discovered how to do the page break based on the line number?
Also, there's something weird with the scrolling of my report. Whenever I click the next page button, or press the Page Down, it goes to the very end of the report output. Do I need to set something in order for the page down/up to function properly?
Thanks very much in advance.Hi,
Please take a look at a previous post at Re: New Page in ALV for Value Change on a Field on the same topic.
Hope it helps.
Regards
Jayant -
Itsmobile Alv page size problems
Hi All
I am having 2 problems with alv grids on the itsmobile.
My first problem is with the page size, in that I now have a very large scroll area. The horizontal scroll bar is down near the status bar and I also have two vertical scroll bars that is eating into my screen size.
I have l looked at note 1356836 and I have updated the alvpagesize in my gui config but this has made no difference.
Its weird as I have buttons that appear right underneath the custom control for the alv grid and they are appearing correctly under the blank alv grid, but yet there is a large vertical scroll area on mobile screen.
My second problem is that the select all button is being displayed even though I have this turned off in the layout ( p_layout-NO_ROWMARK = abap_true.) This is causing my horizontal layout to scroll of the page as it is adding about 3 character to the width of the screen.
We are on 701 SAPKB70105.
Many thanks
DarrenHi All
You can also copy the css file in itsmobile to your internet service.
By putting the following code into the css and updating the gui config in sicf for the internet service you can remove the vertical scroll bar.
this problem only seems to happen when you use the mobile4 gernation style.
/* --- MOBILE BODY -
.MobileHtml -
Hi,
iam displaying output using alv grid(function modulues).
i want to display the page numbers like 1 of 4(total pages) in top-of-page.
how can i display?
Regards,
suresh.This functionality can be triggerred only when u take a printout of the ALV!!
This code needs to be written in the END-of-Page event!
Here's come to to help u out
DATA: v_temp TYPE f,
v_rec TYPE i,
v_page TYPE i,
v_pagno TYPE string,
v_cpage TYPE string,
v_page2 TYPE string,
v_div TYPE i,
v_lincnt TYPE sy-linct.
* Calculate & Display the number of pages during printout
v_lincnt = sy-linct.
DESCRIBE TABLE it_output LINES v_rec.
IF v_lincnt LE 11.
v_lincnt = 58.
ENDIF.
v_div = v_lincnt - 11.
v_temp = ( v_rec / v_div ).
v_page = TRUNC( v_temp ).
v_temp = FRAC( v_temp ).
IF v_temp = 0.
ELSE .
v_page = v_page + 1.
ENDIF.
v_cpage = sy-pagno.
v_page2 = v_page.
CONCATENATE text-055 "page
v_cpage
text-056 "of
v_page2
INTO
v_pagno SEPARATED BY space.
IF sy-linct GT 11.
WRITE AT (sy-linsz) v_pagno RIGHT-JUSTIFIED.
ENDIF.
try this link also.
https://www.sdn.sap.com/irj/scn/wiki?path=/pages/viewpage.action&pageid=27043
Hope this helps you.....
Regards
Hareesh -
HI Experts,
I need to show the Company code, Date & other selections as Page header in my AVL report. The Header Should b in big format. Plz help me to do the same.
Thanks.
Khan.Hello Khan,
DO like this:
* Internal Table TOP-OF-PAGE commentary
DATA: IT_COMMENTARY TYPE SLIS_T_LISTHEADER.
* Work Area TOP-OF-PAGE commentary
DATA: WA_COMMENTARY TYPE SLIS_LISTHEADER.
CLEAR : WA_COMMENTARY,
IT_COMMENTARY,
IT_COMMENTARY[].
WA_COMMENTARY-TYP = 'S'.
WA_COMMENTARY-INFO = TEXT-003. " Give whatever u want to display
APPEND WA_COMMENTARY TO IT_COMMENTARY.
IT_VARIANT-REPORT = SY-REPID.
G_PROGNAME = 'Z48M2_MAT_LIEF_PROJ'.
* 003 vsm1kor 18.02.08 - en " OPL 1979
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = G_PROGNAME
I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE'
IT_FIELDCAT = IT_FIELDCAT
I_SAVE = 'A'
IS_VARIANT = IT_VARIANT
I_SCREEN_START_COLUMN = 50
I_SCREEN_START_LINE = 5
I_SCREEN_END_COLUMN = 100
I_SCREEN_END_LINE = 20
TABLES
T_OUTTAB = IT_MATNR
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*& Form TOP-OF-PAGE
* For Top of page
FORM TOP_OF_PAGE. "#EC CALLED
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = IT_COMMENTARY.
ENDFORM. "top_of_page
Cheers,
Vasanth -
How to add page event on the every pdf footer
How to add page event on the every pdf footer
there is an option available in third party tool which you are using for create PDF using java. so read API documentation. if you can also extend/customize any feature using java
Maybe you are looking for
-
I have the latest iTunes software on my iMac mini and now have IOS7 on my iPhone and now I cant sync music from my library either by wifi or by usb? I get song lists that scoll at a million miles an hour but no actual content. What should I do to get
-
I asked this question before, and was told to connect directly to the internet via ethernet, rather than attempting to download wirelessly. Three times I have attempted the download, and the most I get is a small blue dot on the launchpad icon. I cl
-
why is my ipod touch showing when synced to itunes that it has 4gb of apps when there are 9 apps on yet my iphone that has the same apps and lots more says it has less than 1gb, can anyone help please as cannot put any music on the ipod touch. thanks
-
Concept between FI-CA, FI-AR, and FI-AP
Dear FI-CA gurus Please help me to understand the concept of relationship between FI-CA, FI-AR, and FI-AP. Our customer is in utility industry. They have both of corporate customer and personal customer. So, in this case, all customers and suppliers
-
MacBook Air or Should I keep MacBook Pro?
I recently (last week) purchased a MacBook Pro 13in. (2.8 ghz) I originally wanted the 15 inch, but wasn't thrilled with the wieght. I know there are rumors of a new Pro design making them slimmer, but with no definite release date, It's kind of hard