Fields to be included in Aggregates

Hi all,
I want to know what fields need to be mandatory included in a aggrgate of a cube to ensure that while running  a query built on that cube  it should hit that  aggregate and not the cube.

Hi,
You have to first check for which combination of the fileds (infoobjects), the query is frequently used.
Based on this you have include those set of fields in your aggregate, so that when a new query is executed and if the conditions of the query is sufficed by the fields in aggregates then query will take the data from aggregate instead of hitting the cube...
So the fields to be included in an aggregate will depend upon the statics of the fields which are frequently used in the queries executed by an end user...or initially while building aggregates choose those fileds which u feel is very important from the query point of view..
Over a period of time u can make out the usage of the aggregates (goto Tcode RSDDV) and if few aggregates are found to be not useful then u can delete them permanently or switch them off temporarily...this will substantially reduce the unwanted memory occupied and reduce the query runtime
And if the hits on some aggregates are very high.. c in these aggregates the most often used fields in the past executed queries and with such field build some more child aggregates on these parent aggregates..
this will make the query execution much faster
Please assign points if this was helpful..
regards,
Kalpana

Similar Messages

  • Optimistic Locking fails when version field is part of a Aggregate

    I'm trying to persist a Mapped Object using 9.0.3 Toplink.
    The object uses optimistic locking while the Timestamp versioning field is part of an Aggreate Descriptor. This works well in the Workbench (does not complain).
    Unfortunally it does not work whenever I use the UnitOfWork to register and commit the chances.
    Sample code:
    Object original;
    UnitOfWork unitOfWork = ...          
    Object clone =   unitOfWork.registerExistingObject(original);
    clone.setBarcode("bliblalbu");
    unitOfWork.commit();This throws an nasty OptimisticLockException, complaining about a missing versioning field:
    LOCAL EXCEPTION STACK:
    EXCEPTION [TOPLINK-5004] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exceptions.OptimisticLockException
    EXCEPTION DESCRIPTION: An attempt was made to update the object [BusinessObject:{id:12382902,shorttext:null,barcode:bliblablu,ownerLocation:null,IdEntryName:0,idCs:20579121}], but it has no version number in the identity map.
    It may not have been read before the update was attempted.
    CLASS> de.grob.wps.domain.model.BusinessObjectBO PK> [12382902]
         at oracle.toplink.exceptions.OptimisticLockException.noVersionNumberWhenUpdating(Unknown Source)
         at oracle.toplink.descriptors.VersionLockingPolicy.addLockValuesToTranslationRow(Unknown Source)
         at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.updateObjectForWrite(Unknown Source)
         at oracle.toplink.queryframework.WriteObjectQuery.executeCommit(Unknown Source)
         at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.executeWrite(Unknown Source)
         at oracle.toplink.queryframework.WriteObjectQuery.execute(Unknown Source)
         at oracle.toplink.queryframework.DatabaseQuery.execute(Unknown Source)
         at oracle.toplink.publicinterface.Session.internalExecuteQuery(Unknown Source)
         at oracle.toplink.publicinterface.UnitOfWork.internalExecuteQuery(Unknown Source)
         at oracle.toplink.publicinterface.Session.executeQuery(Unknown Source)
         at oracle.toplink.publicinterface.Session.executeQuery(Unknown Source)
         at oracle.toplink.internal.sessions.CommitManager.commitAllObjects(Unknown Source)
         at oracle.toplink.publicinterface.Session.writeAllObjects(Unknown Source)
         at oracle.toplink.publicinterface.UnitOfWork.commitToDatabase(Unknown Source)
         at oracle.toplink.publicinterface.UnitOfWork.commitRootUnitOfWork(Unknown Source)
         at oracle.toplink.publicinterface.UnitOfWork.commitAndResume(Unknown Source)
         at de.grob.wps.dwarf.domainstore.toplink.ToplinkTransaction.commit(ToplinkTransaction.java:60)
         at de.grob.wps.dwarf.domainstore.toplink.ToplinkPersistenceManager.commit(ToplinkPersistenceManager.java:396)
         at de.grob.wps.dwarf.domainstore.toplink.ToplinkPersistenceManagerTest.testPersistSerializableWithBusinessObjects(ToplinkPersistenceManagerTest.java:87)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at junit.framework.TestCase.runTest(TestCase.java:154)
         at junit.framework.TestCase.runBare(TestCase.java:127)
         at junit.framework.TestResult$1.protect(TestResult.java:106)
         at junit.framework.TestResult.runProtected(TestResult.java:124)
         at junit.framework.TestResult.run(TestResult.java:109)
         at junit.framework.TestCase.run(TestCase.java:118)
         at junit.framework.TestSuite.runTest(TestSuite.java:208)
         at junit.framework.TestSuite.run(TestSuite.java:203)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:392)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:276)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:167)So what can I to fix this problem? BTW the Object I try to persists has been read from database and the IDE debugger shows what that the aggregate object contains java.sql.Timestamp instances.

    Sorry guys. My debugger fooled me. The locking field wasn't initialized in the database. This caused the problem which is fixed now.
    Thx anyway.
    Bye
    Toby

  • Custom fields to be included in Purchase Order in MM-SUS scenario

    Hello,
             We need to include some custom fields in Purchase Order, that is transferred from ERP to SUS system. We are in SRM 7.01 and the communication from ERP to SUS happens via PI using the standard PI service.
    There is a SAP note 762984 for adding custom fields. Will this be applicable for our case also. Else what will be the standard approach.
    thanks
    Arindam.

    Hi Srikanth,
    Through partner dtermination you can get this requirement.
    First you assign farwarding agent partner function CR in your sale document Header Partner procedure and item procedure.
    Do the farwarding function assignment to delivery partner procedure and billing procedure also.
    You create Master data in XK01 transaction with 0005 account group for that forwarding agent.
    Now while creating sales order you enter that partner function and number of the farwarding agent(Which you got in XK01) in sales order -->Header >partner function or sales order> item-->partner functions.
    System will carry these partner up to billing.
    I hope it will help you,
    Regards,
    Murali.

  • CO PA MARA-EXTWG field is not included in standart ch.

    Hi experts,
    i have two systems. in one of them MARA-EXTWG field can be added as a characteristic in KEA5 by using reference table MARA.
    however in other system it is not included.
    any idea?
    thanks in advance.

    The fields are specific to Operating concern type
    Check in both systems, your Operating Concern at KEA0 whether selected both Costing based and account based check boxes.
    Click on Display icon  to know whether that particular field is inlcuded or not
    Srinivas

  • Field catalog with INCLUDE TYPE

    Hi all,
    I want to build field catalog for internal table which has INCLUDE TYPE. Can anybody please help me.
    Please note,
    LVC_FIELDCATALOG_MERGE or REUSE_ALV_FIELDCATALOG_MERGE are not working -- Refer documentation of second FM..
    Manual method is out of question, there are lot of tables / structure and i am doing lot of stuff dynamically.
    Thanks,
    Regards,
    Mohaiyuddin

    Cannot do it with include.. I had defined all internal table instead of structures..

  • Why the State field does not include "DC"?

    The field for State has a drop down box but does not include DC for the District of Columbia.

    Are you talking about State field in our form templates? Yes, DC wasn't listed, but you can modify forms created from these templates easily. Here are the steps:
    1. Select the dropdown and click on the Pencial like edit button
    2. Mouse over the option "CT" and click on the "+" button to add a new state "DC"
    Thanks,
    Wenlan

  • Adding new fields from CI Include to Standard SAP Screen

    Hi All,
    I am enhancing Infotype 0487. I have added new fields to the CI include and created the screen fields in subscreen 0200 with reference to the data dictionary fields. When I test the subscreen alone, the new fields are displaying correctly and F4 help is active. But when I view the whole screen(2000) in PA30, the new field is inactive and I am not able to enter data. Also F4 help option is present for the field but when it is selected, a message 'No Values Found'  is displayed. Please suggest some solution.
    Thanks in advance
    Regards,
    Sivasankari
    Edited by: Julynila on Oct 7, 2010 10:41 AM

    Hi,
    This might be the standard transaction, so there is a possibility of adding the fields using the Screen variants using SPRO, get in touch with your functional consultant. there you can copy an existing screen and add the required fields and rename the screen to different number, and in the config this new screen can be added.
    Thanks,
    Srini.

  • Where is INCLUDE KOMKZ for adding field to Free Goods Determination ?

    http://help.sap.com/saphelp_46c/helpdata/en/0e/9e466f0e18d311ae620060b03c9bbe/content.htm
    This page is the info in SPRO for adding a field for Free Goods Determination.
    New fields for free goods determination are added in the following INCLUDES:
    Header data in KOMKZ (INCLUDE in KOMK, KOMG)
    Item data in KOMPZ (INCLUDE in KOMP, KOMG)
    I checked and the struture KOMKZ doesnt exist, only a data element exists. So... I was wondering if it´s a error in SAP Documentation.
    When u add the field in that include it will be in KOMK, I allready added a field for Pricing determination...in INCLUDE KOMKAZ, so I add also the field for Free Good in that structure...but it doesnt work, I know that in the end is just a field in KOMK, but perhaps there is some kind of validation... because Pricing determination works, but Free Goods doesn´t and I think that is because the field is in the wrong Include Structure.
    Some1 could give me a hand with this ?
    Thx

    Hi Rodrigo..
    As mentioned the include is KOMKAZ and not KOMKZ.. Just wanted to check if code has been written in the user exits to populate that fields..
    Ex:
    FORM USEREXIT_PRICING_PREPARE_TKOMK in include MV45AFZZ .
    It worked for me.
    Best Regards,
    Pradeep.

  • How to include a field in the search criteria.

    Hi,
    In B2B, there is a requirement In Account Details.jsp ,  to add a new field "Your reference". this field should haev the value same as  from the order creation page:Your referene field.  This field should not be included in the result list. This should be used as a search criteria. I have added that YOUR Reference Field in Account Details.JSP,.Now i need use it for search criteria.C
    Could you kindly suggest me how this field can be included in the search critertia in Funciton Module "Zb2b_Account_Details.
    Thanks & Regards,
    Sujitha. S
    Edited by: Sujisruthy on Jun 16, 2010 1:23 PM

    Hi,
    Please see documentation of enhancement MM06E005 (transaction SMOD).          
    Userexit EXIT_SAPMM06E_016 is a component of enhancement MM06E005.            
    With that enhancement, you can                                                
      -   Maintain/supply your own customer fields                                
      -   Update your own customer-specific tables                                
    You cannot:                                                                   
      -   Change standard fields                                                  
      -   Change data that depends on the document header in the items            
      -   Change data that depends on an item in the document header                                                                               
    Please have a look at Business Add-In (BAdI) ME_PROCESS_PO_CUST.              
    Regards,
    Edit

  • I want a sum to include values from duplicated fields

    How do I set up my total to also include the value from added fields?

    Kit you want to use the simplified field notation option with field names that include punctuation or space, you have to escape each special character with a backslash. So "name1.1" would be entered as "name1\.1"

  • Include calculated fields in the Infospoke

    Hi all,
    i need to include in the csv ouput of an Infospoke (data source is an ODS), some calculated fields not directly included in the ODS.
    These fields are calculated using other infoobjects contained in the ODS.
    Is this a way to calculate and include these fields in the csv output?
    Tks in adv,
    Federico

    HI,
    You can do this Calculation in the BADI Transformation. Write an ABAP code there to add a Calculated field to the downloaded file.
    Regards,

  • Trouble when attempting to Sum Calculated Field.

    I had to create a calculated field called RI_Limit which contains static data.  (Developers/DBA could not enter it into the database at this time, so this was a work around. 
    The calculated field is setup as such:
    =iif(Fields!Location_LOCATION_NAME.Value = "a", 8, iif(Fields!Location_LOCATION_NAME.Value = "b",2, iif(Fields!Location_LOCATION_NAME.Value = "c",0, iif(Fields!Location_LOCATION_NAME.Value = "d",0, iif(Fields!Location_LOCATION_NAME.Value = "e",1, iif(Fields!Location_LOCATION_NAME.Value = "f",1, iif(Fields!Location_LOCATION_NAME.Value = "g ",0, iif(Fields!Location_LOCATION_NAME.Value = "h",0,iif(Fields!Location_LOCATION_NAME.Value = "i",4,iif(Fields!Location_LOCATION_NAME.Value = "j A",0,iif(Fields!Location_LOCATION_NAME.Value = "k",0,iif(Fields!Location_LOCATION_NAME.Value = "l",7,iif(Fields!Location_LOCATION_NAME.Value = "m",0,iif(Fields!Location_LOCATION_NAME.Value = "n", 1, iif(Fields!Location_LOCATION_NAME.Value = "o",0, iif(Fields!Location_LOCATION_NAME.Value = "p",1, iif(Fields!Location_LOCATION_NAME.Value = "q",3, iif(Fields!Location_LOCATION_NAME.Value = "r",1, iif(Fields!Location_LOCATION_NAME.Value = "s",1, iif(Fields!Location_LOCATION_NAME.Value = "t",3, iif(Fields!Location_LOCATION_NAME.Value = "u",5,iif(Fields!Location_LOCATION_NAME.Value = "v",0,iif(Fields!Location_LOCATION_NAME.Value = "w",0,"NA")))))))))))))))))))))))
    and I setup a textbox with that expression and the numbers fill in correctly with its cooresponding site name.
    However, when I go to sub total or total, I get a much larger number than expected. (See screenshot)
    I have searched the internet on a way to calculate both the total by Location Level 2 and LOB total, but nothing that pertains to the specific issue where by calculated field contains static data.  Nothing I try produces an accurate sum.  Any suggestions?

    Hi Katherine,
    Sorry for taking a few days to reply.
    I tried the suggestion, but it it still not summing my calculated fields.  The total row will calculate my other cells okay but not the calculated fields that I had to add to the report.  When I attempted to write an expression to sum the calculated
    fields I get the following error message. 
    The expression used for the calculated field '=sum(iif(Fields!Location_LOCATION_NAME.Value = "test", 8, iif(Fields!Location_LOCATION_NAME.Value = "test1",2, iif(Fields!Location_LOCATION_NAME.Value = "test2",0, iif(Fields!Location_LOCATION_NAME.Value = "test3",0, iif(Fields!Location_LOCATION_NAME.Value = "test4",1, iif(Fields!Location_LOCATION_NAME.Value = "test5",1, iif(Fields!Location_LOCATION_NAME.Value = "test6 ",0, Fields!Location_LOCATION_NAME.Value = "test7",0,Fields!Location_LOCATION_NAME.Value = "test8",4,Fields!Location_LOCATION_NAME.Value = "test9",0,Fields!Location_LOCATION_NAME.Value = "test10",0,Fields!Location_LOCATION_NAME.Value = "test11",7,Fields!Location_LOCATION_NAME.Value = "test12",0,Fields!))' includes an aggregate, RowNumber, RunningValue, Previous or lookup function. Aggregate, RowNumber, RunningValue, Previous and lookup functions cannot be used in calculated field expressions.
    The Espression for the calculated field I am attempting to sum is the following:

  • Query does not use aggregate ?

    Hi,
    how can I check if a query uses an aggregate ?
    How can I force a query to use an aggregate ?
    ThanXs
    Martin

    Hi,
      You can check in RSRT whether a query is hitting aggregate or not. Otherwise you run the query and go to aggregate maintanence and see the last used date. In order to make the query hit the aggregate all the fields in query including filters should be in the aggregate.
    Regards,
    Raghavendra.

  • Building Aggregates...

    Hi,
    Wats the best approach to decide upon wat charecteristics to be included in aggregate.
    And i m looking at BW statistics query for query usage..Does the field navigation imply how many times query is used?
    Thanks,
    Sai.

    This question comes up pretty often.  There are some good documents on SDN Community that cover aggregates which you might review.  Also try searching the BI forums as there are many threads on this topic. A couple links:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3f66ba90-0201-0010-ac8d-b61d8fd9abe9">SAP BW Query Performance Tuning with Aggregates (Workshop Presentation)</a>
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/d9fd84ad-0701-0010-d9a5-ba726caa585d">SAP BW Query Performance Tuning with Aggregates</a>

  • To fetch selective fields from DATABASETABLE into Internal TABLE

    Hi Friends,
    I have declared an internal table with fields for e.g. A , B , C , D.
    This does not have any records as of now.
    I have to fetch data from a DATABASE TABLE with fields A , B , X , Y , Z having records .
    I only need records for fields A B fron DB table.Can any one pls tell how can I do that with performance issues in mind as lots of records are there.
    I had written a query where:
    SELECT A B from dbtab
                        into CORRESPONDING FIELDS of table it_table.
    It_table i had defined with only two fields A B.
    Is this correct?
    Please tell wats the way to do it as I am new to ABAP.
    THANKS in ADVANCE..

    Hi.....
    What mentioned in all above answers is very helpful for ur requirement...
    and...
       Here some Steps to increase the performence of your programs...
    >Use Select Single when only one row is expected
    >Use Select Where rather than Selectu2026Check
    >Use Select with aggregate functions (SUM, MAX, MINu2026)
    >Use a View instead of nested Selects
    >Use Select column specific instead of select * for few fields
    >Use Selectu2026Into Table rather than Select...Move Corru2026Apend
    >Use Join extension with Select if possible
    >Use special operators (CO, CA, CS) rather than code your own
    >Use Delete Adjacent Duplicates rather than manual processing
    >Specify key fields for Readu2026Binary Search
    >Use Loop At Where rather than Loop Atu2026Check
    >Copy Internal Tables with TAB_DEST() = TAB_SRC()
    >Specify the sort key as restrictively as possible
    >Use Append To, Insert Into, Collect Into rather than Move
    >Compare tables with If Tab1() = Tab2()u2026
    >Use Delete ITAB Whereu2026 instead of Loop At ITAB Whereu2026Delete..
    >Use Case statements instead of If-constructions
    >Use Call Functions wisely, Performs use less memory
    >Use While instead of Do Exit
    >Use Type I for Indices
    >Keep Occurs clause realistic or use 0
    >Use COMMIT WORK as appropriate to free the Data Base and preserve work
    >
    >Avoid:
    >Using Shift inside a While-loop
    >Leaving unneeded declarations in your program
    >Using Move-corresponding for just a few fields
    >Excessive nested includes within function calls
    >Using DB field names if the value will be changed
    >Using Occurs clause if only the header is needed
    Thanks,
    Naveen.I

Maybe you are looking for

  • Display issues with MacBook Pro

    When I connect my MacBook Pro to my Promethean Board it automatically resizes my screen so that it is very large.  I can't access all of my menu at the top of my screen and my icons are huge.  If I got into the Display settings it is set on 1280x800

  • Why can't I scroll or use MMB to open pages in new tab, when I have a PDF file opened in FF4?

    If I have a PDF file opened in firefox 4, I am for unknow reason unable to open pages in new tabs with MMB or scroll thepage up or down. The scroll function isn't working at all, and it seems like I'd be scrolling the PDF file, not the page of my cur

  • Switching iMessaging to a different phone using the same Apple ID

    I'm setting up my old iPhone as an iPod touch for my son.  I am using the same Apple ID for both phones so we can share some content.  But now the old phone is receiving all of my iMessages instead of my current phone.  How can I switch that?

  • Essbase Security Filter issue.

    Hi, Its regarding the security filter issue. The major problem is whosoever user is provisioned under that security filter, if the user is trying to connect to Application using Excel Addin / Smartview, it crashes the essbase server [Network Error [1

  • The Stage Gate Workflow get suspended in project server 2013

    Hi, Getting following error when i am trying to create an stage gate project/workflow in project server 2013. The submit button in the ribbon gets disabled and when i see the workflow status it is suspended. and getting following error message.  Requ