Display a counter

How can I dispaly the total number of records that is in my internal table  in the form?

yes as prabu told u have to use the DESCRIBE command to know number of records in an internal table.
V_LINES TYPE SY-TABIX.
DESCRIBE TABLE IT_TAB LINE V_LINES.
Please Close this thread.. when u r problem is solved. Reward all Helpful answers
Regards
Naresh Reddy K

Similar Messages

  • How to display the count of a list item in Sharepoint Designer?

    How to display the count of a list item in Sharepoint Designer? please reply with the proper code line to add for this.

    Hello,
    What version of sharepoint you are using? Try below approach:
    http://sharepointlogics.com/2010/03/total-count-of-items-in-list-in.html
    Hope it could help
    Hemendra: "Yesterday is just a memory,Tomorrow we may never see"
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
    you see a reply being an answer to the question of the thread, click "Mark As Answer
    Please feel free to unmark answer if does not resolves your problem.

  • I want to display total count on the top of a Column in  business graphics

    Hi All ,
        How can I display total count of the column say for example no. of employees in a series of column chart type in business graphics.
    Any type of help would be much appreciated.
    Thanks
    Uday

    Hi Vishweshwara,
    following is the code i wrote. please check the correctness of the code.
    int seriescount = 0;
    for(int i=0;i<nodesize;i++){
    IGraphDataElement catele = gdNode.createGraphDataElement();
    switch(i){
    case 0:   
       if(wdContext.currentContextElement().getQ().equals("Q1")){
         catele.setCategory("Q1");
           catele.setKRA_Series1(Q1_KRA);
           catele.setApp_Pln_Series2(Q1_AP);
           catele.setRev_App_Series3(Q1_RA);
           catele.setEnd_Rev_Series4(Q1_ERP);
           catele.setApp_Procss_Series5(Q1_AIP);
           catele.setApp_overall_Series6(Q1_AOP);
           seriescount = seriescount+1; break;}
            break;
    case 1:       
       if(wdContext.currentContextElement().getQ().equals("Q2")){
           catele.setCategory("Q2");
           catele.setKRA_Series1(Q2_KRA);
           catele.setApp_Pln_Series2(Q2_AP);
           catele.setRev_App_Series3(Q2_RA);
           catele.setEnd_Rev_Series4(Q2_ERP);
         catele.setApp_Procss_Series5(Q2_AIP);
         catele.setApp_overall_Series6(Q2_AOP);
            seriescount = seriescount+1; break; }
                 break;
    case 2:       
    if(wdContext.currentContextElement().getQ().equals("Q3")){
         catele.setCategory("Q3");
         catele.setKRA_Series1(Q3_KRA);
         catele.setApp_Pln_Series2(Q3_AP);
         catele.setRev_App_Series3(Q3_RA);
         catele.setEnd_Rev_Series4(Q3_ERP);
         catele.setApp_Procss_Series5(Q3_AIP);
         catele.setApp_overall_Series6(Q3_AOP);
         seriescount = seriescount+1; break;}
                 break;
    case 3:   
    if(wdContext.currentContextElement().getQ().equals("Q4")){
         catele.setCategory("Q4");
            catele.setKRA_Series1(Q4_KRA);
         catele.setApp_Pln_Series2(Q4_AP);
         catele.setRev_App_Series3(Q4_RA);
         catele.setEnd_Rev_Series4(Q4_ERP);
         catele.setApp_Procss_Series5(Q4_AIP);
         catele.setApp_overall_Series6(Q4_AOP);
            seriescount = seriescount+1; break;}
                 break;
    case 4: if(wdContext.currentContextElement().getQ().equals("All")){
           wdContext.nodeGraphData().invalidate();
         wdContext.currentContextElement().setGraphVisibility(WDVisibility.NONE);
         wdThis.onActiondropdownaction(wdEvent);
    }default:
    wdContext.nodeGraphData().addElement(catele);
    Thanks
    Uday

  • Yosemite finder doesn't display file count?

    I just installed Yosemite (10.10.2) on a clean drive in my MacBook Pro 6,2 and I'm trying to figure out how to get Finder to display a count of files at the bottom of the finder windows. I'm used to it displaying something like "356 files. 49 files selected." Is this functionality still available? I've looked in Finder prefs as well as the customize toolbar and sidebar areas. No luck.
    Any ideas?

    Choose Show Status Bar from the View menu.
    (121766)

  • How to Display Record Count on Search page?

    Hi
    I am new to OAF and one of the requirement is to display record count on Search page . I followed the same steps in Emp Search page as an example and created my search page.
    I followed the following steps
    1) I created a transietn Attribute in VO by name RecordCount
    2) I had written a method in AMImpl
    public void getRecordCount() {
    OAViewObject vo = getXXG2SourceAcctSearchVO1();
    int fetchedRowCount = vo.getFetchedRowCount();
    String msg = fetchedRowCount + " are retrived by query ";
    System.out.println(msg);
    String xfetchedRowCount = Integer.toString(fetchedRowCount);
    System.out.println("xfetchedRowCount : " + xfetchedRowCount);
    OARow reportRow = (OARow)vo.createRow();
    System.out.println("in set attribute");
    reportRow.setAttribute("RecordCount",xfetchedRowCount); // I am using this way and trying to display record count into RecordCount view Attribute
    }//getRecordCount
    3) on the SearchPG, I created a new messageStyledtext by name RecordCount and assinged VO and viewAttribute accordingly
    I am not able to see record count when i run the page ?
    Am i missing any steps ?
    I see the messages in the log file but not in Record count box ?
    Any suggestions?
    Thanks
    Ravi

    Hi Anoop
    i made the code change according to you and because of the following condition, it is createing a" new row" in the search page
    Row row = vo.createRow();
    vo.insertRow(row);
    For every search it is creating a new blank row in search page .
    I did some more research and modified my code as
    public void getRecordCount() {
    OAViewObject vo = getXXG2SourceAcctSearchVO1();
    int fetchedRowCount = 0;
    fetchedRowCount = vo.getFetchedRowCount();
    String msg = fetchedRowCount + " are retrived by query ";
    System.out.println(msg);
    //vo.setMaxFetchSize(0);
    //vo.executeQuery();
    if (fetchedRowCount == 0 )
    Row row = vo.createRow();
    //row = (OARow)vo.first();
    row.setAttribute("RecordCount", "0");
    else
    String xfetchedRowCount = Integer.toString(fetchedRowCount);
    System.out.println("xfetchedRowCount : " + xfetchedRowCount);
    Row row = vo.createRow();
    //vo.insertRow(row);
    row.setNewRowState(Row.STATUS_INITIALIZED);
    // Set the primary key value for this single-row VO.
    row = (OARow)vo.first();
    row.setAttribute("RecordCount", xfetchedRowCount);
    and in AM , I am calling this method in PFR as follows
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule am1 =
    (OAApplicationModule)pageContext.getApplicationModule(webBean);
    am1.invokeMethod("getRecordCount");
    now i see the record count on the search page . but after 2-3 searches, the record count value is not populating the correct value. its weird
    Any suggestions
    Thanks
    Ravi

  • Query to display multiple counts in the result

    Hi,
    I need to be able to display multiple counts for different items in the single result set:
    Here is the simplified schema:
    I have 2 tables:
    STATEMENT table:
    ===============
    statement_pk number,
    department varchar2(20)
    STATEMENT_INFO table:
    ===================
    statement_info_pk number,
    statement_fk number
    is_statement_done varchar2(1)
    is_statement_locked varchar2(1)
    I need to display counts of how many records where done and how records where locked in the
    single output:
    Statement_PK Department NumberOfStatementsDone# NumberofStatementsLocked#
    1          ABC_dept          3                    5
    2          DEF_dept          4                    8
    3          XYZ_dept          7                    2
    The following does not work:
    SELECT
    s.statement_pk,
    s.department,
    COUNT(r.statement_info_pk ) NumberOfStatementsDone# ,
    COUNT(rr.statement_info_pk ) NumberOfStatementsLocked#
    FROM STATEMENT s ,
    STATEMENT_INFO r,
    STATEMENT_INFO rr
    WHERE
         s.statement_pk = r.statement_fk
         AND     s.statement_pk = rr.statement_fk
         AND      is_statement_done = 'Y'      AND rr.is_statement_locked = 'Y'
    GROUP BY statement_pk, s.department
    I was trying to work with analytic function but could not figured it out either.
    Please help
    Thanks,
    Ia.

    this would be something like:
    SQL> r
      1  select statement_pk,
      2         department,
      3         sum(decode(is_statement_done, 'Y', 1, 0)) statement_done,
      4         sum(decode(is_statement_locked, 'Y', 1, 0)) statement_locked
      5  from   statement_info,
      6         statement
      7  where  statement_fk = statement_pk
      8* group by statement_pk, department
    STATEMENT_PK DEPARTMENT           STATEMENT_DONE STATEMENT_LOCKED
               1 ABC_dept                          4                1
               2 DEF_dept                          6                2
               3 XYZ_dept                          1                2
    SQL> Message was edited by:
    Leo Mannhart
    Craig you were faster

  • OVS display row counts

    Hi,
    When i search for records via OVS and display, i want to set the display row count to 5 rows. I donot find an option within OVS auto generated code to set it. Is there any way to do that ?
    Thanks in advance,
    Gaurav.

    Hi,
    Under phase indicator,
    In Case if_wd_ovs=>co_phase_0,
          ovs_callback_object->set_configuration(
                    window_title = lv_group_header
                    col_count    = 3
                    row_count    = lv_line ). Hre u can mention the no. of rows to be displayed.
    Thanks,
    Divya.S

  • Displaying the count of search result?

    Hi,
    We have built new search pages for our client to search for candidates registering in their iRecruitment site. The client prefers to see the no of records of each search result. Typically some searches may fetch around 50000 records.
    How to achieve this. Currently we have set the VO_MAX_FETCH_SIZE for one responsibility as 50000. I think this will have a performance impact and it cannot display the exact count if it is > 50000. Is there any other way just to show the count of search records?
    thanks,
    Hem

    Henry,
    As Ram insisted before that if no. of records in your VO is more than max fetch size set in profile option, then it won't return excat number of records.You can very well use this method in normal flow, if you expect that your VO query will not return more than max fetch size records.
    Otherwise run a separate query to get total, as discussed.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Weird/strange idea. I want to sync 3 ipads with a mac, to display a count of things being made.

    My church is doing something called Operation Christmas Child. It’s a big service opportunity where anyone can come and pack a shoebox full of toys to be sent around the world for poor kids to get toys at Christmas. My church is doing a big shoebox packing party, where we are hoping to have about a thousand shoeboxes and tons of toys/school supplies/games/etc to fill them with.
    I wanted to display the number of shoeboxes we have packed on a projector as we go. I’m wondering if there are any apps that would count the number of shoeboxes we make as we go.
    Our setup is this: we have a Mac hooked up to a sound system and a big projector in our gym/worship area. It has ProPresenter5 on it which we use to display music lyrics, videos, etc. We are going to have three 50ft long tables in the gym that people will be walking along packing their boxes. At the end of these, we were thinking about having people with iPads to give people the option to donate a $7 fee to pay for shipping for their box(es). We thought about using a credit card app like Square, PayPal, or I was kinda leaning towards Intuit-GoPayment to take these donations. In a perfect world, I would be able to have three iPads, one at each table, that as people paid the fee or finished making their box, the iPad would sync/connect to our Mac, which would count that box, and display the total number of boxes made on the projector. I wouldn’t mind if that meant the person running the iPad (or even a laptop if that would work better?) had to push a button to count that box as they saw it finished, but I really want to have the multiple iPads or laptops to be able to send that information to one spot for a total count, specifically, our Mac that could display the total count.
    Are there any apps/programs for the Mac that I could buy/download to make this happen? Is there anything in ProPresenter that anyone knows about that could perform this?
    Any other ideas how to make this work?
    I tried really hard to make this make sense, but it’s a confusing/strange idea. Please let me know if you have questions about what I’m wanting.
    Much thanks!
    Dan

    Use a different IMAP (mail) account as described here:
    http://support.apple.com/kb/HT4191

  • Display a count of data in a single report table based on date

    Hello, I need a report that will display the name of the SOURCES, and compare the number of sources received TODAY and YESTERDAY
    My table CELLS holds the name of the SOURCE, and their SAMPLED_DATE so I need to distinguish how many I reveived today and yesterdat.
    eg.
    SOURCE|TODAY|YESTERDAY
    A | 10 |8
    B | 7 |4
    I am thinking of something like the below:
    SELECT DISTINCT source, COUNT(source) TODAY, COUNT(CASE
    WHEN sampled_date = TO_CHAR(SYSDATE-1, 'DD/MM/YY')
    THEN 1 END) YESTERDAY
    FROM cells
    WHERE sampled_date = TO_CHAR(SYSDATE, 'DD/MM/YY')
    GROUP BY.... CUBE
    Any help will be much appreciated.

    drbiloukos wrote:
    Hello, I need a report that will display the name of the SOURCES, and compare the number of sources received TODAY and YESTERDAY
    My table CELLS holds the name of the SOURCE, and their SAMPLED_DATE so I need to distinguish how many I reveived today and yesterdat.
    eg.
    SOURCE|TODAY|YESTERDAY
    A | 10 |8
    B | 7 |4
    I am thinking of something like the below:
    SELECT DISTINCT source, COUNT(source) TODAY, COUNT(CASE
    WHEN sampled_date = TO_CHAR(SYSDATE-1, 'DD/MM/YY')
    THEN 1 END) YESTERDAY
    FROM cells
    WHERE sampled_date = TO_CHAR(SYSDATE, 'DD/MM/YY')
    GROUP BY.... CUBE
    Any help will be much appreciated.Regardless of your final solution, if "sampled_date" is a character string, I'd convert it to a DATE (use TO_DATE) to compare against SYSDATE, rather than convert SYSDATE to a string for the comparison.

  • How to display the count distinct in a report

    hi,
    i have a report with multiple columns in it and with column, say A; i need to display in a calculated column B how many distinct values there are in A across the entire report; how to do that?

    Hi.
    For example:
    CALENDAR_YEAR
    CALENDAR_MONTH_DESC
    count(distinct TIMES.CALENDAR_MONTH_DESC by TIMES.CALENDAR_YEAR)
    Count will give you how many distinct months are in year.
    Regards
    Goran
    http://108obiee.blogspot.com

  • Messages won't display unread count

    Since the last update the unread count on the icon will not display. Anyone have any ideas? It's turned on in the notifications centre.

    Hi,
    That does seem odd.
    I mentioned the Containers things as this is the Read and Write route that the app uses (normally to the aliases in the /Data/Library/Preferences that pints to ~/library/Preferences)
    I also looked in those places but for IDS, SOAgent and IMAgent that are also involved but no luck.
    On your Console Location for the Var Stuff I have this
    See Path Bar across bottom. This pic of Dec 1st I had to open in Preview.
    A Different view if it helps
    I am not sure what to suggest at this point.
    8:28 pm      Tuesday; December 9, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • Why doesn't OTM display the Count of test cases when a Filter is applied

    Hi,
    I would like to know if there is a way to get the count of test cases returned when a filter is applied in OTM
    Though the Group By condition returns the number/count of test case, why a particular filter when applied, does not display/return the count of test cases?

    User just wants to get a count when a filter applied? If a report has to be created for a query/filter, then that conveys that OTM lacks usability.
    How about users who does not access to Reports Tab, users who dont have access to create reports?

  • Safari 4 tabs do not display unread counts for GMail and Google Reader

    To reproduce this, do the following:
    1. Create a bookmark for either GMail or Google Reader
    2. Click on the bookmark under Safari to load either site (make sure it has at least on unread item)
    The text in the tab title will not display the unread count. Instead, it displays either "GMail" or "Google Reader". Firefox displays the unread counts for both sites in the tab's title text as follows: "Gmail - Inbox(2) - <email addr>", "Google Reader (2)".
    This is the one of the main reasons why I will continue to use Firefox over Safari 4. Displaying the unread counts in the tab titles allows me quickly glance at the browser's window with both sites loaded in separate tabs to see if there are any unread items.

    I was able to fix the problem by disabling Gmail Labs (you can always reenable them again).
    http://mail.google.com/mail/?labs=0.
    Or go to Settings-Labs and you'll notice a link at the very top asking you if you want to kill all the labs if it breaks something on gmail...there's an escape hatch.

  • Js link - Display group count list SharePoint 2013

     
    I have a list column name "category" with values like Completed, Not Completed, Started.
    I want to group list items based on category.  I want to format it without showing all the list items so that it should look like:
        Completed : 45
        Not Completed : 30
        Started : 20
    I am using Js link functionality on the list webpart to achieve it.
      (function () {
        var itemCtx = {};
        itemCtx.Templates = {};
        itemCtx.Templates.Group = GroupOverride;
        SPClientTemplates.TemplateManager.RegisterTemplateOverrides(itemCtx);
        function GroupOverride(Ctx, group, groupId, listItem, listSchema, level, expand) {
        return '<div style="font-weight:bold; display: inline-block;">' + listItem[group] + ' ::'  + '<div><ul>'+ listItem[group].Count + '</ul></div>' + '</div>';
    By using above code, I am able to show category names but not the count (listItem[group].Count is throwing error). Any idea how to achieve it?
        Completed : 
        Not Completed :
        Started : 
                 

    Hi,
    According to your description, you might want to change the format of the list view to display without list items.
    I would suggest you debug the script in browser to watch if
    listItem[group] object contains a valid Count property.
    About how to debug JavaScript using IE Developer Tool:
    https://msdn.microsoft.com/en-us/library/ie/bg182326(v=vs.85)
    If your requirement is to display something like a static HTML table, an alternative way is that you can apply custom CSS to the page to hide the unwanted elements.
    Here is a working demo will display the list view in a similar format as you want:
    <style type="text/css">
    .ms-gb
    border-bottom: none !important;
    .ms-gb a, .ms-gb2 a
    display: none !important;
    thead
    display: none !important;
    </style>
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Patrick Liang
    TechNet Community Support

  • How to display stock count on partlist page

    Hi everyone
    Can anybody tell me which aspx or ascx file I need to modify in order to display the stock count on the partlist page where now only presents Image PartNo     Description Price and AddtoCart button.
    Thanks and regards
    Sky

    hi sky,
    here is one possible solution - because I am not sure it's possible to do what you want to do with the supplied controls, as you have no access to the codebehinds.
    Instead, rewrite the PartListblock.ascx to function exactly the way you want to (it's really just a table of data). I've been doing this with my own setup because I find a lot of the time I just can't get the exact functions that I need using the builtin controls.
    Here is an example (very basic) of how you could do it.
    Create a new Web User Control in the catalog/controls folder.
    This would be the .ascx file: (using C#)
    (note I am using .NET 2.0, its OK as long as you also have .NET 1.1 installed on the server as well I have found you can create your own controls using 2.0 and Netpoint will still work fine)
    <%@ Control Language="C#" AutoEventWireup="true" CodeFile="MyPartsListBlock.ascx.cs" Inherits="catalog_controls_MyPartsListBlock" %>
    <%@ Import Namespace="netpoint.api.catalog" %>
    <asp:Repeater ID="repItems" runat="server">
    <ItemTemplate>
    <table>
    <tr>
    <td><%#((NPPart)Container.DataItem).ThumbNail %></td>
    <td><%# ((NPPart)Container.DataItem).PartNo%></td>
    <td><%# ((NPPart)Container.DataItem).Inventory %></td>
    <td>Buttons etc</td>
    </tr></table></ItemTemplate>
    </asp:Repeater>
    and here is the codebehind for the control: (MyPartsListBlock.ascx.cs)
    using System;
    using System.Data;
    using System.Configuration;
    using System.Collections;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Web.UI.HtmlControls;
    using netpoint.classes;
    using netpoint.api.catalog;
    public partial class catalog_controls_MyPartsListBlock : System.Web.UI.UserControl
        private int catID;
        protected void Page_Load(object sender, EventArgs e)
            //get the CategoryID that was passed into us
            catID = Convert.ToInt32(Request["CategoryID"]);
            //get the page object
            NPBasePage p = (NPBasePage)Page;
            //now get the list of parts for the catalog category we are in
            ArrayList parts = p.Catalog.CategoryParts(catID, p.UserID, p.PriceList, p.Encoding);
            //initialise each part's Inventory count
            foreach (NPPart temp in parts)
                temp.GetInventoryCount(p.UserID);
            //finally bind them to the repeater
            repItems.DataSource = parts;
            repItems.DataBind();
    If you want to use only .Net 1.1 then take out the "Codefile" reference in the first section and put in 2  @Import directives to import the netpoint.api.catalog and netpoint.classes namespaces, then override Page_Load in the ascx file.
    Once you have tested this you can then replace the control on the partslist.aspx with your own control.
    I am assuming you are familiar with asp.net - as you can see all I've done is put in a very basic repeater here which is bound to an ArrayList of NPParts, this list is initialised by getting the CategoryID Request variable and just using the builtin methods of the NPBasePage to get tye list of items
    This way you get total control over the ability to call GetInventoryCount() on the items in the list.
    Obviously you will want to put more elements like images and links into the Repeater's ItemTemplate, but that's just the usual, you can override repItems_OnDataBound to set the image path and the links as each row in the repeater is created, etc.
    Hope this helps, and sorry if its confusing but it will work for you if you just take some time with it.
    Steve

Maybe you are looking for

  • Podcasts fail to show on iPod after updating to iTunes 10.1.0.56

    Hi, I'm using a 5th gen iPod classic. When I updated iTunes to version 10.1.0.56, all the podcasts I downloaded from iTunes after the update failed to show up on my iPod after synching. I've downloaded podcasts before and had them show up on my iPod.

  • Validating XML with XMLType.CreateXML and a schema

    I created a schema with: dbms_xmlschema.registerSchema('com/company/user/project/forexample.xsd', xsd_as_clob); This works fine and I can see the elements of my schema in the enterprise manager. However when I try to use this schema with: xmltype_var

  • ITunes syncing lower-res versions of photos from Aperture library VS iphoto?

    Today I changed my iPad's photo syncing prefs so that it would sync photos from my Aperture library as opposed to iPhoto. To my dismay I've discovered that it appears to be syncing REALLY low-resolution versions of the images compared to what it was

  • Any Download Manager available for Macs?

    Very often when I'm downloading large software updates I either lose internet connection or I close the cover on my Mac and the downloading is interrupted. Every time this hapens I need to restart the download. My internet connection is not very fast

  • No matching records found (NNM1)(ODBC-2028)

    Hi, While adding approved A/P invoice i am getting the above error. Please help Thanks Md.nazeer Shaikh