Only show subtotals (hide detail records)

Hey,
I have a very special 'need'. I hope I can explain myself.
In short: I have a query and I only want to see the subtotals.
I have a DSO with the following relevant fields.
CITY, DATE, ORDERNR, CONSTANT, COUNT (= 1 for every order)
In my rows I add CITY and DATE
In my columns, I add
- KF:   COUNT
- CKF: TOTAL --> SUMCT(COUNT)
- CKF: CALC  --> COUNT/TOTAL*CONSTANT
CALC in words: The number of orders a day, divided by the total number of orders of a city, multiplied by a constant.
I want a report that shows for every CITY the cfk CALC.
So for every city the sum of CALC values.
So I want to lose the division by DATE. However, when I remove DATE from the rows, my TOTAL isn't right anymore. Beacause I need subtotals for every DATE, If i drop the date my TOTAL is the overall total.
So I was hoping there is a way to hide the detail lines, so that only my subtotals are visible. Something like the collapse of an ALV report.
Any other suggestions are appreciated.
Steven
Message was edited by:
        Steven Dierick

One way that we have done this in the past is to use a VBA macro to hide all rows where the value <> "Results", then hide the column that only shows "Result". You can use the Tools -> Macro -> Record New Macro function in Excel to get pretty close to the code needed for this.
Hope this helps...
Bob

Similar Messages

  • Dynamically show and hide detail columns according to master column value

    i want to create a page where 2 level master detail.
    that is main master region with search option for query (query region)
    2nd detail with table
    and 3rd detail. (1-2-3)
    Here in 3rd detail region, some fields should be shown and some fields hide according to the value of one filed in 2nd detail table(for the current selected row).
    please advice
    or
    please point me to any similar posts

    Zam,
    show/hide is only beneficial if its optioanl for user to hide or show the fields at your detail region.If it is not , you will have to use PPR and transient VO approach.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Dynamic Parameter only showing 1000 records when Crystal report is run.

    I have created a crystal report using ODBC access to a table that has 3000 records.  I created a dynamic parameter to pull a list of all the Customer ID's in a customer table and the parameter will only show the 1st 1000 records.  In addition I cannot type in the customer ID that I would like.  Version of Crystal - Crystal 11.

    Oh, darn. So sorry. Looks like I hyperlinked the wrong URL (You'd think I got that down by now...). Anyhow here is the correct link:
    1218588 - How to increase the number of values in a dynamic parameter list in Crystal Reports?
    And in case the link does not work, or I goofed again, here is a copy of the resolution:
    Resolution
    CAUTION
    The following resolution involves editing the registry. Using the Registry Editor incorrectly can cause serious problems that may require you to reinstall the Microsoft Windows operating system. Use the Registry Editor at your own risk. For information on how to edit the registry key, view the 'Changing Keys and Values' online Help topic in the Registry Editor (Regedit.exe). It is strongly recommended that you make a backup copy of the registry files before you edit the registry.
    To increase the maximum number of values available in a dynamic parameter list of values, set the registry key: MaxRowsetRecords, to a value greater than 1,000.
    Open the Microsoft Registry Editor, and navigate to the path corresponding to the version of Crystal Reports used:
    Crystal Reports XI:
    -  HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.0\Crystal Reports\DatabaseOptions\LOV
    Crystal Reports XI R2:
    -  HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.5\Crystal Reports\DatabaseOptions\LOV
    Crystal Reports 2008:
    -  HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 12.0\Crystal Reports\DatabaseOptions\LOV
    Crystal Reports 2011:
    -  HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Suite XI 4.0\Crystal Reports\DatabaseOptions\LOV
    Crystal Reports 2013:
    -  HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Suite XI 4.0\Crystal Reports\DatabaseOptions\LOV
    Crystal Reports for Visual Studio 2010:
    -  HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports\DatabaseOptions\LOV
    NOTES:
    -  Add the key: LOV, if it is not present.
    -  For 64 bit version of Microsoft Windows, the registry path will be slightly different, it will start with:
          HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\...
       But the rest of the registry path is the same.
    Add the String value: MaxRowsetRecords
    Set the value of: MaxRowsetRecords to the maximum number of values to display in the List of Values.
    For example, a value of 2000 will return up to 2000 values in the lowest level of a dynamic cascading parameter.
    IMPRTANT NOTES:
    - The higher the number of values is, the longer it will take the see the dynamic parameter prompt screen. In brief, it impact the performance.
    - The value 0 (Unlimited) will not work with BusinessObjects Enterprise XI or Crystal Reports Server XI, you must specify another value.
    After making changes to the registry, close and reopen Crystal Reports, or restart the Crystal Reports services for the BusinessObjects platforms.
    - Ludek

  • Master-Detail only shows the first record of the Master's data

    I have an ADF Master Table, Detail table. I use ExcuteWithParams on the Master Table. When executed from a button (Button has partial submit = true for button, Master Table has PartialTrigger on button, and Detail table has PartialTrigger on Master table and button), it works fine. However, I want to pass the parameters in pageFlowScope variables, and have the ExecuteWithParams invoked upon page load. When I try to do this, the Detail table only shows the first record of the Master's data, no mater what row is clicked on the Master table.
    Master table now has no PartialTrigger, and Detail table has PartialTrigger on Master table. In my pageDef, I used an invoke action as follows:
    <invokeAction Binds="ExecuteWithParams" id="invokeExecuteWithParams"
    Refresh="always"/>
    What am I missing? I am using verion 11.1.1.3. Any help would be much appreciated.
    Thanks,
    Jessica

    Yes, it works when I drag the data control as a master detail without filtering any data. I want the user to be able to set search criteria to filter the data in the master table (For example, only pull back data with a transaction date between :startdate and :enddate). I can get it to work if I execute from an executewithparams button on the page, but not if I want to invoke the executewithparams upon page load with the parameter set by pageflowscope variables.
    Thank you for responding.
    Jessica

  • ALV user interface - hide details rows - show only sub-total rows

    Is there a way using the ALV interface for a user after sub-totalling to hide all the detail rows and only show the sub-total and grand total rows?

    Sure, you can force this in the code.  Please see the sample program.
    report zrich_0004
           no standard page heading.
    type-pools slis.
    data: fieldcat type slis_t_fieldcat_alv.
    data: sort     type slis_t_sortinfo_alv.
    data: begin of ivbap occurs 0,
          vbeln type vbap-vbeln,
          kunnr type vbak-kunnr,
          vkorg type vbak-vkorg,
          netwr type vbap-netwr,
          end of ivbap.
    * Selection Screen
    start-of-selection.
      perform get_data.
      perform write_report.
    *  Get_Data
    form get_data.
      select vbak~vbeln vbak~kunnr vbak~vkorg vbap~netpr
                  into table ivbap
                          from vbak
                             inner join vbap
                                on vbak~vbeln = vbap~vbeln
                                      up to 100 rows.
    endform.
    *  WRITE_REPORT
    form write_report.
      data: layout type slis_layout_alv.
      layout-totals_only = 'X'.
      perform build_field_catalog.
      perform build_sort.
    * CALL ABAP LIST VIEWER (ALV)
      call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                it_sort     = sort
                is_layout   = layout
                it_fieldcat = fieldcat
           tables
                t_outtab    = ivbap.
    endform.
    * BUILD_FIELD_CATALOG
    form build_field_catalog.
      data: fc_tmp type slis_fieldcat_alv .
      clear fieldcat. refresh fieldcat.
      clear fc_tmp.
      fc_tmp-reptext_ddic    = 'Sales Org'.
      fc_tmp-fieldname  = 'VKORG'.
      fc_tmp-tabname   = 'IVBAP'.
      fc_tmp-outputlen  = '4'.
      append fc_tmp to fieldcat.
      clear fc_tmp.
      fc_tmp-reptext_ddic    = 'Customer'.
      fc_tmp-fieldname  = 'KUNNR'.
      fc_tmp-tabname   = 'IVBAP'.
      fc_tmp-outputlen  = '10'.
      append fc_tmp to fieldcat.
      clear fc_tmp.
      fc_tmp-reptext_ddic    = 'SD DOC'.
      fc_tmp-fieldname  = 'VBELN'.
      fc_tmp-tabname   = 'IVBAP'.
      fc_tmp-outputlen  = '10'.
      append fc_tmp to fieldcat.
      clear fc_tmp.
      fc_tmp-reptext_ddic    = 'Net'.
      fc_tmp-fieldname  = 'NETWR'.
      fc_tmp-tabname   = 'IVBAP'.
      fc_tmp-outputlen  = '15'.
      fc_tmp-do_sum  = 'X'.
      fc_tmp-datatype = 'QUAN'.
      append fc_tmp to fieldcat.
    endform.
    *       FORM build_sort                                                *
    form build_sort.
      data: tmp_sort type line of slis_t_sortinfo_alv.
      clear sort. refresh sort.
    <b>
      clear tmp_sort.
      tmp_sort-fieldname = 'VKORG'.
      tmp_sort-tabname   = 'IALV'.
      tmp_sort-up        = 'X'.
      tmp_sort-subtot    = 'X'.
      tmp_sort-group     = 'X'.
      append tmp_sort to sort.
      clear tmp_sort.
      tmp_sort-fieldname = 'KUNNR'.
      tmp_sort-tabname   = 'IALV'.
      tmp_sort-up        = 'X'.
      tmp_sort-subtot    = 'X'.
      tmp_sort-group     = 'X'.
      tmp_sort-expa      = 'X'.
      append tmp_sort to sort.
      clear tmp_sort.
      tmp_sort-fieldname = 'VBELN'.
      tmp_sort-tabname   = 'IALV'.
      tmp_sort-up        = 'X'.
      tmp_sort-subtot    = 'X'.
      tmp_sort-group     = 'X'.
      tmp_sort-expa      = 'X'.
      append tmp_sort to sort.</b>
    endform.
    Regards,
    Rich Heilman

  • OBIEE  Detail record with all the columns not showing up in drill down

    Hi
    When i drill down in the hierarchy it only shows me the key rather than the full detail record
    M heirarchy is
    Dim
    total
    reckey
    detail
    detailkey
    name
    type
    When i drill down on reckey, it shows only the detailkey and not oher columns. Is there something i am missing here. The physical and logical table has detailkey as the primamykey

    You have a beautiful example in the Oracle By Example Series here :
    http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/bi_admin/biadmin.html#t2s7
    If you follow the instruction on the Channels Detail_Key in this example, you will succeed
    Success
    Nico

  • Master - Detail -- How to Hide page if no detail records

    I'm hoping to be able to hide a page if no detail records exist for the master query.
    My master query:
    "Company" and "account" and balances for each account
    (balances carry forward from previous months)
    Detail Query:
    transactions for each account for a month
    -- Linked to the master by "account-id"
    The master query is grouped into 2 parts:
    a) Company
    b) account and balance
    Sometimes an account won't have any transactions during the month (especially if the report is run at the beginning of the month)
    If I create a "summary" count field in the "account" group based on the transactions, then I can hide (not print) the "account" frame.
    But I can't figure out how to do this for the "company" frame.
    I'm probably missing something simple (or maybe not)
    Any suggestions?
    Thanks,
    Eric

    So basically you are showing each account on a separate page?
    Move the objects shown in Company repeating frame to the account repeating frame. In this case company repeating frame will be blank. And your already created format trigger to hide account frame will work for both (company+account). So whenever any account is zero, it will hide all objects within the frame. Parent frame doesn’t contain any objects, it would not show the parent frame for that account. Make sure vertically elasticity of the frame is variable.
    Hope this helps.

  • Show/hide detail row

    Carl:
    See http://htmldb.oracle.com/pls/otn/f?p=24317:6
    I modified your nifty example at http://htmldb.oracle.com/pls/otn/f?p=11933:1
    to use images instead of the show/hide detail labels.
    I had to make some minor mods to the code, but it works fine...for the most part.
    I used the option to show only 1 detail row at a time.
    If I click the show/hide images rapidly (actually I am not sure it is the rapidly part, haven't been able to reproduce it consistently), I end up with a situation where more than 1 detail row is visible at the same time.
    Can you please take a look and see if I am doing anything wrong?
    Thanks

    Mostly in IE, here is an example
    http://i3.tinypic.com/vo3bbn.jpg
    I am not sure of the exact sequence of clicks I did to land up at the screenshot, but I think rapidly clicking that show/hide image does it.
    Taking a look at the code
    function showdetail(t,i)The "t" that I am passing in to the function would be the IMG element in my case.
    I modified the Toggle function as
    function ToggleLabel(pThis)
            var l_show_img="/i/themes/theme_10/showhide_show.gif";
            var l_hide_img="/i/themes/theme_10/showhide_hidden.gif";
            var l_show_re=new RegExp(l_show_img+"$");
            pThis.src = (pThis.src.match(l_show_re)) ? l_hide_img : l_show_img;
    }where I flip the src attribute of the image.
    I am not sure what is wrong. If something were wrong, why would it work at all? Why would clicking stuff fast cause it to break?
    Thanks for any help.
    And I am not using AJAX at all, just your plain DHTML example at 11933:1
    Ah, I got it. Doing the following reproduces the bad state in both IE and FF consistently
    1. Launch the page in a new session
    2. Click the show/hide image on the first row to show the text
    3. Click it again to hide it
    4. Now click the image on the 2nd row.
    This shows the 2nd row's description...but it also shows the first rows description!
    Any idea why?
    Thanks

  • How can you shrink the size of an upright picture to make it smaller without losing any of the detail in it??? At the moment, if I view them on my laptop, landscape photos fill the screen, but portrait photos only show the middle part.

    How can you shrink the size of an upright picture to make it smaller without losing any of the detail in it (in Slideshow)??? At the moment, if I view them on my Mac Laptop, landscape photos fill the screen, but portrait photos only show the middle part, so I loose the top and bottom of the picture.  Have tried cropping, but that means I lose top and bottom part of the picture, so that is not the answer!!

    Homestly haven't a clue what's going on there. 
    Try trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder.
    (On 10.7: Hold the option (or alt) key while clicking on the Go menu in Finder to access the User Library)
    (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    What's the plist file?
    For new users: Every application on your Mac has an accompanying plist file. It records certain User choices. For instance, in your favourite Word Processor it remembers your choice of Default Font, on your Web Browser is remembers things like your choice of Home Page. It even recalls what windows you had open last if your app allows you to pick up from where you left off last. The iPhoto plist file remembers things like the location of the Library, your choice of background colour, whether you are running a Referenced or Managed Library, what preferences you have for autosplitting events and so on. Trashing the plist file forces the app to generate a new one on the next launch, and this restores things to the Factory Defaults. Hence, if you've changed any of these things you'll need to reset them. If you haven't, then no bother. Trashing the plist file is Mac troubleshooting 101.

  • OAF matester detail page : How to have a "Show All" feature on screen, so that all the master and details records are expanded .

    Hi ,
    I was trying to have a "SHOW ALL" feature on the master - detail page,
    the detail table is an advancec table.
    Please help me with inputs on how to have  "SHOW ALL" feature,
    Currently, we have to click on  ":Show" for each record at master level to view the child data.
    Trying to achive "Show All" Feature so that on click of this the master records on the page 'Expands"  showiing all master records with respective detail records.
    Regards
    bhuvanm

    Hi,
    You should not set DetailFlag = "Y" in whereclause because there is no such record.
    Also detail flag is transient attribute and not the query column, hence the error "Invalid indentifier".
    I asked you to use DetailFlag as query column with static value "Y".
    for example:
    SELECT "Y" detail_flag
    FROM <table_name>
    This will display all the table records in expanded format. if you want it conditionally then use decode on some bind parameters.
    For example:
    SELECT DECODE(:1, "SHOWALL", "Y", "N") detail_flag
    FROM <table_name>
    This bind parameter should be passed whenever you want to execute query for the table.
    Regards,
    Sandeep M.

  • Master-Detail-Form; Hide/Show columns in detail form depending on column

    Hi,
    i have a master detail form. In the detail form i have the columns:
    ID, MASTER_ID_FK, PC_SOURCE, A_C1, A_C2, A_C3, B_C1, B_C2, B_C3
    The Column PC_SOURCE should be a LOV with values
    NULL
    A
    B
    So if i choose or enter a master record the detail form appears and i can enter one or more detail records.
    PC_SOURCE is the first column.
    If i choose A, the columns B_C1, B_C2, B_C3 should disappear as there should no entry possible.
    If i chhose B, the columsn A_C1, A_C2, A_C3 should disappear as there should no entry possible.
    Is that possible?
    I tried a little on my own but without success. I tried to put into the first column (PC SOURCE lov) in Element Attributes a javascript call like onChange="do_Refresh('#PC_SOURCE#');"
    The javascript funktion do_Refresh tries to catch the column value and set a hidden item P1_SOURCE like document.getElementById('P1_SOURCE').value = v_source;
    But this does not work, as there is not the value of the column fetched.
    And probably can´t work because of the more than one detail rows.
    Thanks & regards,
    Matthias

    Hi,
    The html for your detail form will be a table of input elements with names f01,f02,etc. The columns for the key fields are normally hidden so your PC_SOURCE column will probably use the name f03. The name for column A_C1 will be f04 etc.
    Once you have the input names for your columns you can create a dynamic action (DA) to hide the elements you want.
    You want the DA to fire when any PC_SOURCE element is changed so you want the when to be:
    Event: Change
    Selection Type: jQuery Selector
    jQuery Selector: input[name="f03"]
    Condition: no condition
    The action is to hide an element in the same row if the changed element is a value. So the action should be:
    Action: Execute JavaScript Code
    Fire when Event is: true
    Code: if(this.triggeringElement.value=="A"){$x_Hide('f04_'+this.triggeringElement.id.split('_')[1])}
    You then need lots of true actions for each element you want to hide.
    Rod West

  • Not to show the detail records even though the mater records are existing.

    Dear Oracle
    I would like not to show the detail records even though the mater records are existing. Is there any block preperty I can set?
    Thanks

    I don't know the reason why you would want to do that but if you do not want to any record in the master block in
    a master-details format, then you could achieve this by setting the WHERE clause property in the block.
    e.g., master block DEPT (base table DEPT) and detail block EMP (base table EMP)
    table DEPT is as follow
    dept_id (pk)
    dept_name
    table EMP is as follow
    emp_id
    emp_name
    dept_id (fk)
    then you can set the WHERE clause in the DEPT block as follows
    exists (select 1 from emp a where a.dept_id = dept.dept_id)
    hope this help

  • DRQ : Draw Document Wizard only show limited details.

    Hi,
    I'm not sure is this the correct place to do development request.
    I found out that when do Copy from Function (eg. Do Delivery by Via Copy to function), Draw Document Wizard only show limited details. Width , height, length are not shown.
    Our customer sells same item (Product Code) with difference  size and dimension. It is hard to select the item from the draw document wizard.
    Even harder for documents that have a lot document lines with same product code.
    Is there any plan for this req in the next upcoming patch?
    Please advise.
    Andy

    Hi Andy
    What I understood from your explanation is you have one single item code, but the item has different sizes.  So, you are creating multiple lines for same item in base document (sales order/purchase order).
    My question is to you, how are you capturing the sizes in the document.  Have you created any UDF to capture the sizes.
    If your answer is 'Yes', then, you can include those UDFs in Draw Document Wizard -> Select Item to Copy (through Form Settings).  Also you can drag & drop those UDFs just beside your Item Code or Description, which will help user to understand the actual size/specification of the Item while drawing the base document into target.
    If your answer is 'No', then you can create those required UDFs for Marketing Document -> Rows and store the values in the base document.  And while using Draw Document Wizard include those UDFs through Form Settings as explained above.
    Thanks & Regards
    Anjan Bhowmick

  • DataGrid always only showing 1 record when there should be 5

    When I do the "Test Operation" in the Data/Services pane, I can pull back the expected 5 records, however at run time, a grid that pulls data using the exact same operation and same input value, it only shows the first record.  Is there a setting that is preventing the grid from showing all records, or, is there a runtime setting that is limiting the number of records pulled back?

    Are you getting the data from a database or is it internal xml?

  • HT201269 one fine day, my i phone just hangup lost all contact detail. The screen only show a picture depicting cable connection to iTune. I have tried to restore iphone to factory setting but not working .  May i know how to proceed to recover lost conta

    one fine day yesterday, my i phone just hangup lost all contact detail. The screen only show a picture depicting cable connection to iTune. I have tried to restore iphone to factory setting but not working .  May i know how to proceed to recover lost contacts.

    I have taken it back to the Apple store genius bar, but they say they don't see anything wrong. Well unless you use it all day and experience the problems when they happen, you wont see anything wrong. But there are lots wrong with it. But this would be the same store as I purchased the phone. And they backed up my old Iphone 4, but were not able to get anything to load back onto my new phone. So, I lost pretty much everything. But over time, some of my contacts have started showing up, although i am still missing over 800 of them.

Maybe you are looking for

  • How does APEX import a packaged APEX application

    I was wondering, if someone might help me to better understand how APEX imports a packaged application. The typical packaged application file looks like a simple SQL*Plus Script that needs to be processed by SQL*Plus from PL/SQL on the server. I woul

  • Wifi connection problem.

    Neither my iMac or iPhone 5 will connect to a Dlink router after a brief power interuption. Both connected fine before. Have rebooted and reset the router several times Windows PC still connects just fine.

  • I wont some stroll light which one should I buy.......

    Please help me find some stroll lights & trigger remote  I like to have some for the pros.............are home shotting thanks..........

  • How can I change menu language from Czech to American?

    Hi, I just bought CS6, and when I installed it, the language in the menu is Czech (I live in Czech). I would like to switch the language on the menu to American, how can I doi that? Thanks, Christie

  • FrameMaker 10 - Topics that contain xrefs are causing the program to freeze

    When I try to open a topic that contains a xref element with a valid href attribute, the program freezes for more than 5 minutes. This has caused significant problems with using this editor as our topics contain an extensive amount of xrefs. Does any