Adhoc Query- Count of no of Records not displayed

Hi,
We are building adhoc queries for one of your requirements. In which, we need to generate the total count of the records. And also no of records with the same value in a specific column.
Even though we configured this value properly, the ALV output is not displayed as per the configuration.
Configurations:
1. Configure a Column in the count field in the "Basic List"
2. And also tried, Configuring Sort Ascending and Sum attributes under the "Statistics" .
None of the above two has produced the desired result.
Can you please suggest me which way we need to go ?

Hi,
Before the output in ALV you can try:
1. Total record count - you can try use DESCRIBE TABLE <internal table>  LINES <variable>.
2. No. of records with same values - pass the internal table to another internal table and DELETE ADJACENT DUPLICATES COMPARING your needed field, then you can compare the 2 internal table and count number of similar values.
Hope this gave you another way to address your problem.
Thanks.
kath

Similar Messages

  • Master-Detail Relation- Detail records not displaying

    Hi All,
    I am working forms(10g) customization for an oracle applications. our requirement is to develop a new window(screen) which should display all the related child records for the master record in the main form on a button press.
    i have developed a new database block based on a vew and provided the relation with master block, and done the required customization.
    But, when i run the form, and clicked on button, it is giving an error
    FRM-40350 Query caused no records to be retrieved.below is the code that i have written on button click
    BEGIN
              IF event = 'WHEN-BUTTON-PRESSED'
              THEN
              SHOW_VIEW('XXSCP_GBL_CUST_PEGGING_CON');
              SHOW_VIEW('XXSCP_GBL_CUST_PEGGING_STK');
              app_window.set_window_position('XXSCP_GBL_CUST_PEGGING_WIN',
                                             'CASCADE',
                                             'XXSCP_GBL_EXCEP_DETAILS_WIN');
          SET_BLOCK_PROPERTY('XXSCP_GBL_EXP_DETAIL_V',NEXT_NAVIGATION_BLOCK,'XXSCP_GBL_CUST_PEG_V');                                        
          GO_BLOCK('XXSCP_GBL_CUST_PEG_V');
         -- fnd_message.DEBUG('before execute');
          EXECUTE_QUERY;
          :parameter.p_excep_detail := 'FALSE';
              ELSE
                   NULL;
              END IF;
              EXCEPTION
                   WHEN OTHERS
                   THEN
                   fnd_message.DEBUG('other error at button press'||SQLERRM);
              --     NULL;
    END;I am able to query records in my view from database, but not working when i run the form.
    ANy suggestion will be helpful.
    Thanks in advance,
    pavan

    Duplicate post -- Re: Master-Detail Relation- Detail records not displaying

  • Active condition record not displayed

    Hi,
    During pricing, the active condtion record is picked up.. but not displayed in pricing. The analysis says " Condition record exists (removed manually)"
    The detail analysis says
    This message tells you that the condition record exists but has not been set in the document. If new pricing is carried out for the document item, the condition would be set.
    There can be different reasons why the condition has not been set:
    The condition has been manually deleted from the item condition screen.
    The condition record was created later. Here it should be noted, that order processing and pricing have buffer mechanisms. This has the effect that a newly added condition record is only found after you have completely left order processing and called up the condition record again.
    When an item was added, other key fields were used to access the condition record than the change time. This means that the conditionalcheck at the add and change times could have different results. This can be seen when modifications are made.
    I am very much sure, the record has been created much before the sales order date. If I do carry out new pricing the active condition record is picking up correctly
    any idea?

    Hi
    Are you checking the value in Sales order, before saving the document?
    If yes, please check for the value from VA02/VA03 after saving the Order.
    Thanks,
    Ravi

  • Records not displayed in the WGBEZ field in H_T023_MEPO search help.

    Hello Friends,
    I have created the search help exit , in that based on the LREF3 , we have to fetch the materail groups.
    1.I have written the code in the exit , in the search help exit tables parameter record_tab , the data is coming correctly
    but when we run  search help, the description field is not getting displayed.
    I have shift 2-3 places left side as well but the description is not displayed correctly.
    So how can we get the description field filled.
    2. We want that the LREF3 field should come in the selection screen of the dialog box, so that user can enter the values in it.(dialog with value restriction) so i have added LREF3 field in the search help parameters but i want that
    this field should not be displayed in the results of search help . Only materail group and its description gets displayed.
    So can we achieve the same.
    Thanks to provide answers for my above two questions.

    Hi
    Please go through the related pointers ->
    The OSS note 672960 has already indicated you need to use BADI to address it.
    For Search criteria
    You can also use user-defined fields as search criteria. To do this, you have to set fields XINPUT and XDISPLAY to 'X' in table ET_FIELDS for the fields you want to use in BADI BBP_CUF_BADI_2 in method MODIFY_SCREEN. The fields defined this way are displayed if you choose the 'Extended search' link.
    Re: Custom field in Create Bid Invitation..
    Re: Search Help for Purchasing Group..
    Re: urgent help request - How to add custom fields to  header BID.
    Re: New Screen with table control information in Process Bid Invitation
    Do let me know.
    Regards
    - Atul

  • How to get count as 0 for records not in table

    Hi All,
    I have requirement where I need count of records in the table based on ids. Example query below
    SELECT empid ,
    nvl(COUNT(id), 0) empcount
    FROM employee
    WHERE empid IN(1, 2, 4, 5)
    GROUP BY empid
    In the table only record for "empid=2" is present so I get count 1 for it. But with it I should get count as 0 for non existing records. Expecting below output
    empid | empcount
    1 | 0
    2 | 1
    4 | 0
    5 | 0
    Appreciate your help and Thanks in advance.
    Regards.
    Ashish

    e.g.
    SQL> select column_value deptno, count (deptno)
    from emp, table (sys.odcinumberlist (10, 20, 100))
    where deptno(+) = column_value
    group by column_value
        DEPTNO COUNT(DEPTNO)
            10             3
            20             5
           100             0
    3 rows selected.

  • Want claimed record not display to other user.

    Hi All,
    I have a use case where i have display adf table based on vo from DC.
    now i want when i select some rows from table and click on button(claim) these selected record display on this user not all util user does't unclaim
    record.
    how can i handle this in Adf?
    thanks
    Manish

    Hi,
    you could have a view criteria added to the view object that filters the data by the value of a claim field to be the username or null. This however would only filter the information when a user performs a query. However in your post you don't mention how immediate the claim should display for other users
    Frank

  • Records not displayed on the table view

    We have a scenario as follows :
    I am working on webdynpro project in which i have table on one of my second view.
    when i insert a records in the table by entering its values from the Form on the startView,  it is being shown as populated on the table.
    But once I insert my second record(s) also, the first or the previous records are not visible once i click on the display button.
    Can anyone help me to solve my problem as to how to see all the records inserted in the table on this view.
    Also plz let me know how to physically check the records on the database side.I am using the dictionary tables as my datasource and using SAPDB database.
    Thanx in advance..

    hi
    Try this code.
    Node-->Person
    Attributes of Person-->FirstName,LastName(String)
    ComponentController-->FirstCompController
    FirstView:
    onActionDisplay(...){
    String fname= wdContext.nodePerson().currentPersonElement().getFirstName();
    String lname=wdContext.nodePerson().currentPersonElement().getLastName();
       wdThis.wdGetFirstCompController().wdGetContext().nodePerson().currentPersonElement().setFirstName(fname);
       wdThis.wdGetFirstCompController().wdGetContext().nodePerson().currentPersonElement().setLastName(lname);
        wdThis.wdFirePlugOut1();
    SecondView:
    onPlug<plugname>(..)
    String fname=wdThis.wdGetFirstCompController().wdGetContext().nodePerson().currentPersonElement().getFirstName();
      String lname=wdThis.wdGetFirstCompController().wdGetContext().nodePerson().currentPersonElement().getLastName();
       IPrivateSecondView.IPersonElement elem=wdContext.nodePerson().createPersonElement();
       elem.setFirstName(fname);
       elem.setLastName(lname);
       wdContext.nodePerson().addElement(elem);
    you have to do navigationlinks from FirstView to SecondView and viceversa and also context mapping between ComponentController and views.
    In the second view also create actionbutton for navigating to the firstview and
    Fire the oubound plug also.
    Regards
    sowmya.

  • Can an Infoset (Adhoc) Query Report be Run using a Variant ?

    Hi
    We have a lot of users that have access to infoset (adhoc) query tool but where they are not authorised to save queries in the system. They have the ability to create new reports and also open up existing reports using Open query button.
    My question is whether the user can run an existing report using the Variant if one exists and how they select to run the report with a variant, and also whether a user can edit a variant for an existing report.
    Any help on this would be much appreciated.
    Nicola

    Hi
    The usersd do not have SQ01. They only have S_PH0_48000513 - Ad Hoc Query since SQ01 is a sensitive transaction as access to it should be restricted. Hence our users can go into adhoc query and open existing queries etc.
    I do not see any button Execute with Variant when in Infoset (Adhoc) Query view. Might you be able to advise?
    Thanks a lot
    Nicola

  • CM14 BI Publisher - modifying an existing Data Model, the Graphic View in Query Builder does not display

    I am trying to edit the default forms/reports that come with CM14, trying to edit the data model, data set, (to get to the old Infomaker style graphic view) , the Query model does not display (error the list of tables is too long..) Oracle tell me the limit is 60,  there are not 60 tables referenced in any CM report.
    Does this Query builder view work at all on any report?
    (bigger question, we are moving from CM12, should we move to CM13 which works with infomaker?)
    Thanks,
    Paul L

    Kurt, thanks for your replies.
    A couple of notes/clarifications.
    1.     You are correct that BI works better in Firefox--I have observed issues with the BI display when using IE.  I would recommend using Firefox too.
    2.     You are correct about the way to get to the Query Builder to see a graphical view of data tables.  There are basically two issues with this that I mentioned, but will re-iterate:
    a.  If you have an EXISTING query in the data set, then click the "Query Builder" button, this will remove the existing query that's there, it will NOT display the existing query in the query builder.  Query Builder works only to create a NEW query from scratch.
    b.  Query builder is limited to selecting 60 fields max in your query.  If you are creating a large report with many tables, you may find that 60 fields is not enough.  For that you will have to work in the SQL edit screen rather than using the query builder.
    I would impress on anyone developing CM14 reports that they become familiar with the database schema and relationships to avoid problems when developing your BI reports.  You should be able to find the tables and joins documentation in the knowledgebase.

  • Data is not displayed

    Dear all
    i have creation page user will enter the fields and save it will call to view page
    initially in creation page for 5 items default value is USD 0.00
    in that one more button should be enabled createcost user will click on this button it will call that page and eneter the
    records and save again it will call to view page with updated values
    USD 500.00
    in my case when user enter cost details and save it is coming to view page but values is not displayed
    i passed id from cost sheet to view page
    my query executed fine but values is not displayed
    Regards
    Sreekanth

    Just run the query in backend with the same id and see whether you are getting the output or not?
    Thanks
    --Anil                                                                                                                                                                                                                                       

  • Newly added column not displayed in Interactive report

    Hello,
    I have a tableA with 3 columns.In the application i am displaying as Form with Report region as Interactive report(Oracle 10g Application Express 3.2).
    I added one column to tableA.Now when i am refreshing the report by adding that column in the select query,the new added column is not displayed in the application.
    How can i do this so that the added column can be displayed.I dont want to delete the whole thing and redo it again.
    Thanks
    Siya

    Hi Siya,
    The Interactive Report will not show you the newly added columns by default. You have to select those columns from the actions menu and when all the required fields are displayed then save it as the default report.
    Then you will be able to see all the columns.
    Hope this solves your problem.
    Thanks,
    Satish.

  • Site CFC's not displaying in component panel

    Hi there.
    I've created cfc's manually and they do not show up in
    Dreamweaver's componet panel, nor does the folder they were saved
    to (also created manually).
    When I look in the Bindings panel after opening a cfm page
    that calls a cfc with a query in it, the cfc is not displayed
    either.
    If I create a cfc through Dreamweaver and save it to the same
    folder, the cfc is displayed in the Bindings panel and I'm able to
    use the Server Behaviors panel to output the query.
    So it looks to me there is some process that registers the
    cfc (and location) when Dreamweaver creates the cfc.
    Anyone know if there is a file I can update somewhere or a
    process for registering cfc's created manually or outside of
    Dreamweaver.
    The site works fine and testing server is set up properly.
    Thanks

    Does the little, blue, circle arrow in the upper right corner
    of the
    Components panel that refreshes the CFC list do anything for
    you?

  • Object Builder does not display

    I installed SAP Front End on my computer.
    I need to use program to assess SAP , so I need to use SAP R/3 DCOM Connector.
    After I do some setting in SAP R/3 DCOM Connector, and  when I connect to a destination, I find the connection is OK.
    But when I open the page which contains Object Builder, I find it does not display.
    My OS is windows 2000. I don' t have MTS in my computer, but there are Component Services. When I open  Component Services, I can't find anything related to SAP.
    Can anybody help me?

    Kurt, thanks for your replies.
    A couple of notes/clarifications.
    1.     You are correct that BI works better in Firefox--I have observed issues with the BI display when using IE.  I would recommend using Firefox too.
    2.     You are correct about the way to get to the Query Builder to see a graphical view of data tables.  There are basically two issues with this that I mentioned, but will re-iterate:
    a.  If you have an EXISTING query in the data set, then click the "Query Builder" button, this will remove the existing query that's there, it will NOT display the existing query in the query builder.  Query Builder works only to create a NEW query from scratch.
    b.  Query builder is limited to selecting 60 fields max in your query.  If you are creating a large report with many tables, you may find that 60 fields is not enough.  For that you will have to work in the SQL edit screen rather than using the query builder.
    I would impress on anyone developing CM14 reports that they become familiar with the database schema and relationships to avoid problems when developing your BI reports.  You should be able to find the tables and joins documentation in the knowledgebase.

  • How do I count the number of records returned in the CMIS query

    How do I count the number of records returned in the query CMIS?
    SELECT COUNT(*) FROM ora:t:IDC:GlobalProfile WHERE ora:p:xRegionDefinition = \'RD_PROJETOS_EXCLUSIVOS\''}
    Euler Homero

    Hi Euler,
    interestingly enough, the reference guide for CMIS ( http://wiki.alfresco.com/wiki/CMIS_Query_Language ) that I found does not mention the COUNT function at all. On the other hand it states that: "The SELECT clause identifies which virtual columns to return in the result set. It can be either a comma-separated list of one or more queryNames of properties that are defined by queryable object types or * for all virtual columns."
    There are, however, some other posts like e.g. http://alfrescoshare.wordpress.com/2010/01/20/count-the-total-number-of-documents-in-alfresco-using-sql/ which state that they could make it working.
    Having asked in the WebCenter Portal forum, I assume that your content repository is WebCenter Content. The CMIS doc for the Content is available here: http://docs.oracle.com/cd/E23943_01/doc.1111/e15813.pdf (no COUNT there either). It does, however, mention explicitly that "CMIS queries return a Result Set where each Entry object will contain only the properties that were specified in the query.". This means your could rather investigate the Result Set. Note that there are also other means than CMIS how to get the requested result set (e.g. calling a search service directly via so-called RIDC).
    In the given context I am also interested what your use case is. OOTB CMIS in WebCenter Portal is used, for instance, in Content Presenter, where it is content rather than "parameters" what's displayed.

  • Need help writing a MySQL query that will return only records with matching counter-parts

    Since I don't know how to explain this easily, I'm using the
    table below as an example.
    I want to create a MySQL query that will return only records
    that have matching counter-parts where 'col1' = 'ABC'.
    Notice the 'ABC / GHI' record does not have a
    counter-matching 'GHI / ABC' record. This record should not be
    returned because there is no matching counter-part. With this
    table, the 'ABC / GHI' record should be the only one returned in
    the query.
    How can I create a query that will do this?
    id | col1 | col2
    1 | ABC | DEF
    2 | DEF | ABC
    3 | ABC | GHI
    4 | DEF | GHI
    5 | GHI | DEF
    *Please let me know if you have no idea what I'm trying to
    explain.

    AngryCloud wrote:
    > Since I don't know how to explain this easily, I'm using
    the table below as an
    > example.
    >
    > I want to create a MySQL query that will return only
    records that have
    > matching counter-parts where 'col1' = 'ABC'.
    >
    > Notice the 'ABC / GHI' record does not have a
    counter-matching 'GHI / ABC'
    > record. This record should not be returned because there
    is no matching
    > counter-part. With this table, the 'ABC / GHI' record
    should be the only one
    > returned in the query.
    >
    > How can I create a query that will do this?
    >
    >
    > id | col1 | col2
    > --------------------
    > 1 | ABC | DEF
    > 2 | DEF | ABC
    > 3 | ABC | GHI
    > 4 | DEF | GHI
    > 5 | GHI | DEF
    >
    >
    > *Please let me know if you have no idea what I'm trying
    to explain.
    >
    Please be more clear. You say that 'ABC / GHI' should not be
    returned,
    and then you say that 'ABC / GHI' should be the only one
    returned. Can't
    have both...

Maybe you are looking for

  • How to sync Safari bookmarks to my iPad2?

    I've had my iPad2 for a few months now, and I noticed that my iMac Safari bookmarks are more current than those on my iPad2, even though I think I'm set up for them to be kept current using iCloud.  I use the cable to sync with iTunes on my iMac, and

  • Itunes can't find alot of my music.....

    I don't know what happen but oneday all my music or atleast the majority of them itunes can't find in my harddrive the names of all the song are in the library but once i click on them it take me to this screen where i have to search for them and the

  • Ldap auth specification about password

    Hi I try to search for the differences between iPlanet4.1 and Sun One 5.x about the specification of password when trying to authenticate each user. because this password is integrated into the web server. if there is any outstanding differences for

  • Some problem using in this function!!!

    Is it valid to write a function like this?? CREATE OR REPLACE FUNCTION dept_dtls(DEPT_ID IN VARCHAR2) RETURN record is DEPT EMPLOYEE.DEPT_ID%TYPE; STATUS RECORD; BEGIN Select COUNT(DESIGNATION), into STATUS from EMPLOYEE where DEPT=DEPT_ID GROUP BY D

  • Test page won't stop printing

    I have a Hp psc 1315 all-in-one and it won't stop printing a test page everytime I turn it on.  I have had this printer for 5 years and it did this once before but I can't remember how I fixed it.  I followed the directions over and over and scanned