Displaying the total no of records in ALV ouput.

Hi everybody,
I am displaying the output in ALV.
I want display the total number of records at the top of page.( before the columns).
Can any one throw light on this plz.
Karunakar reddy

To get the number of entries in your displayed table use:
<i>DESCRIBE TABLE tab LINES wg_lines.</i>
To display the value in a ALV Grid Control, use something like this:
<i>DATA: sl_layout   TYPE lvc_s_layo.
sl_layout-grid_title = wl_lines.
CALL METHOD og_alv->set_table_for_first_display
      EXPORTING
        is_layout                     = sl_layout
        ....</i>
Regards,
Martin

Similar Messages

  • Count the total amount of records returned

    Is there a way in DW to count and display the total amount of records in my DB table?
    Eg: I might have 10,000 records in my database, but only 55 match the SELECT statement, so I want to show a visual counter saying '55 articles in this section' on my page.

    Choose one of these  function appropriate to the api you are using:
    http://php.net/manual/en/function.mysql-num-rows.php

  • Display the totals only at Material level in ALV

    Hi........,
    I am calculating the subtotals and totals. I am having the columns Company Code , Plant and Material etc.
    First I did sort on table as :
    gr_sorts = gr_table->get_sorts( ).
      gr_sorts->add_sort( columnname = 'C_CODE' subtotal = abap_true ).
      gr_sorts->add_sort( columnname = 'WERKS-WERKS' subtotal = abap_true ).
      gr_sorts->add_sort( columnname = 'MATNR' subtotal = abap_true ).
    After that I am doing the aggregation like this :
    gr_agg = gr_table->get_aggregations( ).
      gr_agg->add_aggregation( 'QUANTITY' ).
      gr_agg->add_aggregation( 'QUANTITY1' ).
      gr_agg->add_aggregation( 'DELTA' ).
    It is displaying the totals and subtotals at each Company code , Plant and Material level.
    But I want to display the totals only at Material level.
    Guide me on the same.
    Reply me as early as possible.
    Thanx,
    Jay
    Edited by: Alvaro Tejada Galindo on Feb 14, 2008 11:08 AM

    Replace your code for sorting
    gr_sorts = gr_table->get_sorts( ).
    gr_sorts->add_sort( columnname = 'C_CODE' subtotal = abap_true ).
    gr_sorts->add_sort( columnname = 'WERKS-WERKS' subtotal = abap_true ).
    gr_sorts->add_sort( columnname = 'MATNR' subtotal = abap_true ).
    with the code given below.
    gr_sorts = gr_table->get_sorts( ).
    gr_sorts->add_sort( columnname = 'C_CODE' subtotal = abap_false ).
    gr_sorts->add_sort( columnname = 'WERKS-WERKS' subtotal = abap_false ).
    gr_sorts->add_sort( columnname = 'MATNR' subtotal = abap_true ).
    Hope this helps. Reward points if helpful.
    Thanks,
    Balaji

  • Time stamp and total no of records in ALV

    Hi everybody,
    i need to display
    Time:
    Total No of Records:
    in my excel report downloaded from ALV.
    can any body help me out as how to keep the specified above  in my ALV to get in the Exel output.

    Hi,
    For the header - pls use top-of-page event.
    For Number of records u can use - Describe table ITAB lines lv_lines. ( declare lv_lines as i). After this statement, your lv_lines will contain the number of records in your final internal table which you are using to display the output.
    For the time stamp, just pass the sy-uzeit.
    Thanks,
    Guru

  • Display the total number of rows for the report in OBIEE 11g

    Hi, In obiee 11g, the pagination will be 1-25. Is there any possiblity in obiee to show the total rows count next to pagination. Ex: if the result contains 120 rows. it should display after the pagination
    Records 1-25. Total of Records : 120
    Is there any way we can display the total number of rows for the report.
    Kindly help me.. Its very urgent requirement.
    MAny Thank in advacne

    Check this http://obiee100.blogspot.com/2011/07/display-total-number-of-records-in.html
    and
    http://docs.oracle.com/cd/E28280_01/bi.1111/e10544/appsql.htm#CHDCDIDA
    You have to go something like as suggested in previous link.
    Mark as correct/helpful

  • How to display the total at the end of the column in the report.

    Hi all,
    Could any one please intimate, how to display the total at the end of the column. For example, i have a column, "sales" as the Key figure, and it has the data for all the transactions. Now, i would like to display the total at the end of the report, below the same column.
    Similarly, for all the other columns in the report, i need to display the total for all the columns in the report.
    Thanks & Regards,
    A.V.N.Rao

    Hi All,
    Thanks for many suggestions. I tried by providing the "Total" under "Calculate Results as" and also "Counter for all detailed values" under "Calcuate Single Values as", in the  "Calculations" tab of the key figure, but i am unable to get the information. Again, i am providing the requirement below:
    CHAR - A   CHAR - B   TIME CH. - 1 KF -1  KF- 2 KF - 3
    1                     RAM        2012           1         50      50
    2                     SAM         2012          2         100    200
    Result                                               3           150   250
    Assume KF -1 as  "Qty." KF-2  as "Price" KF-3 as "Sales".
    Please intimate the solution.
    Thanks & Regards,
    A.V.N.Rao.

  • I have a question about the new version of itunes. in the old version at the bottom of the sceen it display the total number of media and the size of the files. how can i get the new version to diplay this?

    in the old version at the bottom of the sceen it displayed the total number of media and the size of the files. how can i get the new version to diplay this?

    You're welcome. It was frustrating for me as well until I stumbled across "the fix"

  • So I have been using my iPad for a few months now and I recently noticed that the time display next to the playlist name in the music  app that is supposed to display the total song count and time of a playlist is way off. I have a 25 song playlist that 2

    So I have been using my iPad for a few months now and I recently noticed that the time display next to the playlist name in the music  app that is supposed to display the total song count and time of a playlist is way off. I have a 25 song playlist that is around 2 hours on my computer appears as 2003 minutes on my iPad.  It's a smart playlist limited to 25 songs if that makes any difference. Is this happening to anyone else? Any help would be appreciated!

    Greetings,
    First make an iCal backup, File > Export > Archive.
    Remove the following to the trash and restart your computer:
    Home > Library > Caches
    Home > Library > Calendars > Calendar Cache, Cache, Cache 1, 2, 3, etc. (Do not remove Sync Cache or Theme Cache)
    Home > Library > Preferences > com.apple.ical (There may be more than one of these. Remove them all.)
    __NOTE: Removing these files will remove any shared (CalDAV) calendars you may have access to. You will have to re-add those calendars to iCal > Preferences > Accounts.
    Once the computer is back up and running open iCal and test.
    Hope that helps.

  • Field over flow can not display the total and subtotal in ALV

    hi
    i am running a z report with huge data in quality system.
    in 2 columns and not able to show the total and subtotal in 2 columns
    it says field overflow and cannot be dispayed.
    value is around 20character integer.

    You can create a domains with 20 positions and 2 decimal, for example.
    Than, associate this domain a data element.
    To finish assign that data element to the column you wanna sum.
    I hope help.

  • Need to display grand total text in OOPS ABAP ALV report

    Hi
    I am using OOPS for alv display and need to display grand "total text" in any column in th eoutput display.
    I know the procedure to display in ALV display. but dont have idea in OOPS. Please help.
    Thanks
    Amminesh.

    hi,
    follow this link for alv's with oop's oncept.
    http://abapreports.blogspot.com/2008/06/alv-grid-display-with-oops.html
    for calculating total  to the specific field.....
    while creating the fieldcatalog pass the value 'X' to field do_sum of lvc_t_fcat( field catalog).
    data: fcat type lvc_t_fcat.
    fcat-fieldname = <field-name>.
    fcat-ref_table = <ref-tablename>.
    fcat-ref_field = <ref-fieldname>.
    fcat-do_sum = 'X'.
    regards,
    Ashok

  • Calculating and Displaying the Total for a field

    Hi all,
    I have a template that must have a field's total at the end of each page. I use <?add-page-total: InvAmt;’ ACCOUNTEDDR’?> for calculating the sum and<?show-page-total:InvAmt; 'C9G990D00';'(C9G990D00)'?> for showing the total. Its coming up properly.
    But on the last page i need the total of all the pages. I tried putting up <xdofo:inline-total display-condition="everytime" name=" InvAmt "> <xdofo:show-carry-forward name="InvAmt " format="99G999G999D00"/> in the footer but its printing the whole code as such. I tried to do a sum <?sum (ACCOUNTEDDR)?> after the for-each, but its returning a NaN. I couldnt find a solution for this.
    Please help.

    The NaN display that you get is probably due to some nulls. Filter out the nulls: <?sum(ACCOUNTEDDR[.!=''])?>
    For last page only content, take a look at the section "Last Page Only Content" in the guide here: http://download.oracle.com/docs/cd/E12844_01/doc/bip.1013/e12187.pdf
    Hope that helps.
    Bipuser

  • TO Display the row data as column in ALV

    Hi experts ,
    Need to display the row data in ALV as column.
    The column of an ALV has the fieldnames of a table , this needs to be displayed as row data , that is as single row.
    How can this can be achieved?

    Hi,
    Actually it is not possible to disaply in multiple lines.
    https://www.sdn.sap.com/sdn/collaboration.sdn?contenttype=url&content=https%3A//forums.sdn.sap.com/thread.jspa%3FforumID%3D50%26threadID%3D49517%26messageID%3D506378%23506378
    https://www.sdn.sap.com/sdn/collaboration.sdn?contenttype=url&content=https%3A//forums.sdn.sap.com/thread.jspa%3FforumID%3D50%26threadID%3D41133%26messageID%3D403371%23403371
    This problem was discussed many times in this forum, u can search for more results.

  • Change the total and subtotal dynamically in ALV GRID

    Hi guys,
               I need to change the total and subtotal of field "AMOUNT" dynamically.I am using ALV GRID CONTROL(oops concept).I need to override the standard functionality.I need to show my own subtotal and total line instead of standard one .

    Hi
    I've understood it, I wanted to use OO Grid too, but I had to use the ALV list in order to write my total.
    If you need to use OO grid u can try to exclude all funcitonalities for the total, subtotal and sorting and insert in the output table the lines with your totals.
    Max

  • Displaying the required No. of records

    Hello,
    Can any one tell me how to display only the required number of records on a web page. For example i have 100 records in a table in the database and i want to display only the latest five records on the web page.
    It will be great help for me by the solution.
    Thanks in advance
    regards
    dayakar

    If your table has a modified_timestamp field, then you could run SQL that orders that field in desc (descending) order. If you don't, then you would need to use the default ordering on the table. In that case, you would need to skip to the end of the ResultSet using the JDBC2.0 call of last(). Then, using the JDBC2.0 call relative(-5). If this call returns false, then you don't have five rows to display, so you would need to just display the entire result set.
    If you can order the table in descending order, that would be much more efficient than this way.
    rs = cursor.executeQuery();
    rs.afterLast();
    boolean goodResults = true ;
    if( !rs.relative(-5) )
        goodResults = rs.next() ;
    do
       if( !goodResults )
          break ;
       /* Fill in your collection of last five here */
    }while( rs.next() );

  • MessageChoice is not displaying the entire list of records

    I have created a page with a message choice and assigned a VO to it.
    The VO is retrieving 925 records, but the message choice is displaying only 200 records.
    Can we get the complete list of records using message choice.
    If not, is there any alternative.
    There is a fire action on this message choice.
    Thanks,
    divya

    Divya,
    LOV is the correct choice for displaying large data, but I suggest in your requirement you go with message choice only. You can safely turn the profile option FND: View Object Max Fetch Size from 200 to 1000.
    As in our case we always use it upto 1000 because ur client wanted only message choice.I haven't faced any performance issue in 1000, it may give performance issues at very high figures.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • My mid 2011 MacBook Air fell off my couch onto carpet. Slowed down.

    I made a post a few weeks ago about how my mid 2011 MacBook Air slowed down randomly over night. A few days later it randomly started functioning properly again. I was stoked. Today, I was using my MacBook on the couch, when it slipped off and landed

  • Swap project and event: how to?

    Hi, I've started to use iMovie 10 but I can't figure out how to switch views... I can see the "swap project and event" menu item but it's greyed out... this is surprising since Apple depicts the conventional view with projects top and timeline bottom

  • How to make Bank Note style artwork.

    I am wanting to know if there is an effect or action that someone knows about that will transform a regular image into a threshold style image like found on most bank notes. With lines and dots to create the shading and gradient effects. Not looking

  • How do I change me community username

    When I created my community username, I miss-spelled it.  How can I change it now?

  • FM for conversion of unit!!

    Hi, I need to convert the qunatity field from one unit to another.... from kg to gram.... which func mod is best suited... Regards Gunjan