Cost value in CBO

I have 2 queries.
A's Cost is 20000 (say select * from emp where sal < 100K)
B's cost is 100 (select * from dept where location = 'USA')
Does it mean that query B runs faster than A ?

May or may not. There are several factors.

Similar Messages

  • Cost Based Optimizer (CBO)

    not sure if this is a daft question or what. but i am trying to find out where exactly it exists.
    i know, when performing ST05 and viewing the execution plan, we see what the CBO has used, but is the CBO purely performed at the database server, and not at the SAP Application.
    When updating the statistics, are these passed to the database server, and once again, the CBO utilizes them for the execution plan, or do the database statistics actually reside in the database server.
    finally, in viewing the execution plan, the statement "execution costs = xxx" (xxx being a numeric value). what exactly is xxx. maybe an internal index used to compare  execution plans, or maybe the number of blocks required to read the "estimated #rows".
    anyone  ??
    thanks
    glen

    Hello Glen,
    So far as my knowledge is concerned, the statistics are actually located on the database server. That is what appears to be more logical too. what is the use of maintaining the access paths on tha application server ? Most of the modern database servers are equipped with the CBO functionality. And Cost-Based-Optimizing is dependent on the database.
    Here's what the documentation says:
    <i>You can update statistics on the Oracle database using the Computing Center Management System (CCMS). The transactions to be used are DB20 and DB21.
    By running update statistics regularly, you make sure that the database statistics are up-to-date, so improving database performance. The Oracle cost-based optimizer (CBO) uses the statistics to optimize access paths when retrieving data for queries. If the statistics are out-of-date, the CBO might generate inappropriate access paths (such as using the wrong index), resulting in poor performance.
    From Release 4.0, the CBO is a standard part of the SAP System. If statistics are available for a table, the database system uses the cost-based optimizer. Otherwise, it uses the rule-based optimizer.</i>
    Regards,
    Anand Mandalika.

  • Can anybody tell me how to extract sales value and cost value for an materi

    dear all,
    Can anybody tell me how to extract sales value and cost value for an material sold .
    All the values of cost value and sale values are getting  stored in bseg-wrbtr field .
    How to identify them uniquely.
    Or there is another way to find the sale and cost values.
    Regards
    Mave

    Hi Mave!
    Normally there is no condition change, when something is sold.
    But sales price depends on sales conditions (not only price, but also surcharges, discounts, taxes - if customized).
    Nevertheless, after selling you have a invoice document, where correct values <i>should</i> be stored (see VBRP fields mentioned above). If here is a problem, then customizing of price determination is in question, not a programming of user-exits with MARD selection for costs (or some other tries to get a price).
    When you specify your requirements more in detail, you might get better answers - but currently only general hints are possible ('see in invioce / G/L accounts').
    Regards,
    Christian

  • Table used in Material cost value

    Hi,
    In Material cost estimation Cost Components views are Material Cost, Material Overhead, Subcontracting Charges, Conversion Cost and Total Cost. Material Cost is calculated based on Material price, Bom Qty, value put in KP26 i.e, fixed and variable pirce with combination of Cost Center and Activity type and processing hours, Labout hours from Routing. Total Cost appears with the combination of Material Cost and Conversion Cost . This Total Cost appears in costing view tab of Material Master and CKIS table. which table stored in Material Cost value. Kindly need your suggestion.
    Regards,
    Anindita

    Hi A Roy
    The tables are KEKO and KEPH....
    In KEKO you will find prod costimation no against the combination of Plant/Material
    Against this Prod Cst Est no, you will find the cost break up in KEPH table
    Regards
    Ajay M

  • Any standard report to show WBS,settlement, asset no and asset cost/value

    Hi All,
    Please advice . Is there any standard report to show WBS,settlement, asset no and asset cost/value ? I tried tcode kosrlist_pr but it does not show asset cost/value.. it shows only WBS,settlement and asset no.
    Thank you.
    Best Regards,
    Nies

    Dear,
    der is no such standard report to show WBS,settlement, asset no and asset cost/value as perv my knowlwdge. so do one thing select one standard report which is more similar to standard report to show WBS,settlement, asset no and asset cost/value but some of like asset no or asset cost or some other values not reflecting in that std report. den u take the Table name and field name of that particular fields which u wann reflect in the report. use the logic of STD TC of SAp which more similar to which u wanna preapre the New TC. tae help of Abaper. tell ur querry and content of ur report . he will definately do it
    if ur get my ans reward with points
    Regards
    Rakesh

  • Different Cost values for full table scans

    I have a very simple query that I run in two environments (Prod (20 CPU) and Dev (12 CPU)). Both environemtns are HPUX, oracle 9i.
    The query looks like this:
    SELECT prd70.jde_item_n
    FROM gdw.vjda_gdwprd68_bom_cmpnt prd68
    ,gdw.vjda_gdwprd70_gallo_item prd70
    WHERE prd70.jde_item_n = prd68.parnt_jde_item_n
    AND prd68.last_eff_t+nvl(to_number(prd70.auto_hld_dy_n),0)>= trunc(sysdate)
    GROUP BY prd70.jde_item_n
    When I look at the explain plans, there is a significant difference in cost and I can't figure out why they would be different. Both queries do full table scans, both instances have about the same number of rows, statistics on both are fresh.
    Production Plan:
    0 SELECT STATEMENT Optimizer=ALL_ROWS (Cost=18398 Card=14657 B
    ytes=249169)
    1 0 SORT (GROUP BY) (Cost=18398 Card=14657 Bytes=249169)
    2 1 HASH JOIN (Cost=18304 Card=14657 Bytes=249169)
    3 2 TABLE ACCESS (FULL) OF 'GDWPRD70_GALLO_ITEM' (Cost=949
    4 Card=194733 Bytes=1168398)
    4 2 TABLE ACCESS (FULL) OF 'GDWPRD68_BOM_CMPNT' (Cost=5887
    Card=293149 Bytes=3224639)
    Development plan:
    0 SELECT STATEMENT Optimizer=ALL_ROWS (Cost=3566 Card=14754 B
    ytes=259214)
    1 0 HASH GROUP BY (GROUP BY) (Cost=3566 Card=14754 Bytes=259214)
    2 1 HASH JOIN (Cost=3558 Card=14754 Bytes=259214)
    3 2 TABLE ACCESS (FULL) OF 'GDWPRD70_GALLO_ITEM' (Cost=1914
    4 Card=193655 Bytes=1323598)
    4 2 TABLE ACCESS (FULL) OF 'GDWPRD68_BOM_CMPNT' (Cost=1076
    Card=295075 Bytes=3169542)
    There seems to be no reason for the costs to be so different, but I'm hoping that someone will be able to lead me in the right direction.
    Thanks,
    Jdelao

    This link may help:
    http://jaffardba.blogspot.com/2007/07/change-behavior-of-group-by-clause-in.html
    But looking at the explain plans one of them uses a SORT (GROUP BY) (higher cost query) and the other uses a HASH GROUP BY (GROUP BY) (lower cost query). From my searches on the `Net the HASH GROUP BY is a more efficient algorithm than the SORT (GROUP BY) which would lead me to believe that this is one of the reasons why the cost values are so different. I can't find which version HASH GROUP BY came in but quick searches indicate 10g for some reason.
    Are your optimizer features parameter set to the same value? In general you could compare relevant parameters to see if there is a difference.
    Hope this helps!

  • Purchase Rebate is adding to Material cost value field

    HI,
    When i execute purchase rebate scenario, that amount is adding to Material cost value field in COPA report. Kindly tell me what isthe problem and where is the link between this.
    Thanks
    KB

    In customizing the integration of other modules with COPA you have keep in mind the sign logic because it may be different for values coming from different modules.
    Example: In our system revenue-reducing sales conditions come to COPA with a negative sign. In postings that come directly from FI to COPA, a negative sign means earnings. So we cannot assign any Fi account for direct posting to COPA to the same value field as SD conditions, because the sign logic doesn't match. We have to use different value fields and then get the formulas right in creating COPA reports to get the correct result in COPA.
    I think your problem here is of the same kind: Rebates from purchase seem to come with the same sign as cost of goods sold AND go to the same value field, although one consitutes cost and the other a reduction in costs.
    I think you have to get your rebates to post to another value field. Are those rebates an MM-condition or do they go to COPA through an assignment of FI-account to a value field?
    Regards
    Nikolas

  • Source of Cost Value in POS DM

    Hi all,
    I have activated the Business content for BI POS DM (cube 0RPA_C01). Does anyone know how the sales in cost value KF 0RPA_CST is loaded (I know that this KF is fed according to the value of the record type) ; actually my question is : what is the source of the Cost : is it the inventory cost of the material, the purchasing cost, ... ? Is it coming from material master ?
    Any answer would be appreciated !
    Alexandra

    Hi,
    As long as you have a cost maintained in the Material Master for thr plant that you are delivering from the cost will be picked up.
    In the sales order you can see for item conditions (If you are using condition type VPRS) the value being picked up for the plant where you do not use cost estimate to update the material master. This is the value(VPRS) that will pass to COPA (If you are using costing based COPA), provided you have assigned this condition to a value field in KE4I
    Hope this helps
    Siva

  • Hide cost value in documents.

    Dear everybody,
    Someone knows, if there is some choice to hide the value in the field cost.   I dont know if I am wrong, but I heard its possible marke that value with asterisks to protect it.
    I was trying in general authorizations but the value is always visible.
    Thanks a lot.
    Daniel.

    Thanks a lot Gordon,
    This recomendation is to do it in every document, for example I should do it in the item master data and to all of every marketing documents too and after I have to make an Aditional Authorizations creator to the form settings? If I am wrong thanks for your future information.
    Is there other choice to do this topic general in the way to protect the cost value for all the users and documents.
    Thanks a lot for your help.
    Daniel

  • Can we see costing value for line item batch in Batch Information Cokcpit r

    Can we see costing value for line item batch in Batch Information Cokcpit report - BMBC?
    Business like to see standard cost/ item and extended cost which should be qty in inventory * standard cost.
    Help appreciated.
    Edited by: Tom_Eric on Jan 13, 2012 2:33 AM

    HI.
    YES it is passible.
    If the GL is activated line item display check box is active then we can able to see the data as per line items.
    T<Code. Fbl5n
    Thanks.
    Vasu
    Edited by: Vasu Enaguthi on Apr 7, 2010 8:46 AM

  • Sales order prod costing error and extracting the cost $ value

    We are doing sales order product costing via custom program which internally calls FM CKKA_Costing_Process, CK_F_SD_ORDER_CALC and all other std processes and calculates the cost. In the event of error, the calculated dollar value is getting cleared. Is there any way we can find and extract the cost $ value in case of costing error?

    Owen,
    That's fine. Not worried about the error. But business needs the cost calculated with the error. Is there anyway we can get the cost $ while error. VA02 costing returns error too, but we have the cost updated.
    Regards
    Gopi

  • Actual cost value appears duplicated

    Hi!.
    When I confirm an internal activity on the project system, actual cost value seems to be duplicated. Customizing procedure has been properly performed. Activity Type Price is set to 22 € / hour and after confirming one hour, actual cost value appears as 44 €.
    Does anybody have a clue why this is happening?.
    Thanks in advance!

    Dear Raul,
    The Controlling Area currency is different of the Company currency?
    The Planning layout in CO defines where currency the price is planned.
    In PS the reports standards are in controlling area currency.
    Please verifies and send me the result from this error.
    Best Regards
    Elza

  • Non-Stock Sales - Cost Value Issue

    HI Experts,
    Currently we implemented a Non-Stock Sales for a certain Sales Organization, however during the creation of the Invoice, the Cost of Material is calculated automatically. But the users doesn't want this. How can I change the configuration where the cost is not calculated for their Materials in the Sales Orders.
    Thanks a lot!

    Thanks for the answers. And it is now working. Cost is now not calculated in the displayed invocie for the Item Category as tested in QAS.
    However, just one question. Even though the Cost Value is not initial as displayed in the Invoice, are the Materials Cost still valuated for this eventhough there are no Material Postings done (because of non-stock)? Is this considered as a non-valuated sales item? I can only confirm in COPA Report that COS has the cost value from the Invoice for non-stock sales. But I cannot see any document in the Sales History that includes the cost of the material.
    Thanks again!

  • Requirement to capture shipement cost value in Sd invoice

    Hi,
    I have requirement to have the shipement cost value in in SD invoice associated to that delivery. Further i need to slpit that amount based on the material weight to all fininshed goods in SD invloice. Kindly suggest the steps for the same...

    Hi ,
    You can get the profile option value in following ways.
    String customprofile = transaction.getProfile("XXXX");
    if(customprofile == null)
    throw new OAException("The custom Profile Option Named XXXX has not been defined. Contact " +
    "your IT Support Group. , (byte)0);
    if(customprofile.length() == 0)
    throw new OAException("The custom Profile Option Named XXXX does not have a value assigned" +
    ". Contact your IT Support Group. "
    , (byte)0);
    Thanks
    Deb

  • =SUM(IIF(Fields!OPTION_CODE.Value="M","0",Fields!COST.Value * Fields!TOTAL_UNITS.Value )) =IIF(Fields!OPTION_CODE.Value="P","0",SUM(Fields!COST.Value * Fields!TOTAL_UNITS.Value )) =SUM(IIF(Fields!OPTION_CODE.Value="M",CDbl(Fields!COST.Value * Fields

      in this i want to calculate only Option code 'M' Amount in gross total.BUT MY Gross total calculating M and P Amount.  option code P value should visible but not to add.
    please any body help me to writing any function
    =SUM(IIF(Fields!OPTION_CODE.Value="M","0",Fields!COST.Value * Fields!TOTAL_UNITS.Value ))
    iam writing like below its showing error
    =SUM(IIF(Fields!OPTION_CODE.Value="M","0",Fields!COST.Value * Fields!TOTAL_UNITS.Value ))
    =IIF(Fields!OPTION_CODE.Value="P","0",SUM(Fields!COST.Value * Fields!TOTAL_UNITS.Value ))
    =SUM(IIF(Fields!OPTION_CODE.Value="M",CDbl(Fields!COST.Value * Fields!TOTAL_UNITS.Value), CDbl(0,0)

    Hi Pullela venu,
    I have checked the expression and found that you have incude the string "0" in the SUM function which will cause the error, please remove the "" of the value 0 as below to have a test:
    =SUM(IIF(Fields!OPTION_CODE.Value="M",0,Fields!COST.Value * Fields!TOTAL_UNITS.Value ))
     =IIF(Fields!OPTION_CODE.Value="P",0,SUM(Fields!COST.Value * Fields!TOTAL_UNITS.Value ))
    For the last expression as below is not correct, CDBL function format is CDBL(expression):
    =SUM(IIF(Fields!OPTION_CODE.Value="M",CDbl(Fields!COST.Value * Fields!TOTAL_UNITS.Value), CDbl(0,0)
    Modify as below:
    =SUM(IIF(Fields!OPTION_CODE.Value="M",CDbl(Fields!COST.Value * Fields!TOTAL_UNITS.Value), CDbl(0.0) )
    If the problem still exists, please provide the error message if the expression throw any error.
    Any problem, please feel free to ask.
    Regards
    Vicky Liu

Maybe you are looking for

  • Installing Adobe Acrobat Pro 9 on a new laptop, but it doesn't accept my serial number

    Hello, On my old laptop I had installed and licensed Adobe Acrobat Pro 9. I retired my old laptop and bought a new one. I want to install Adobe Acrobat Pro 9 now on the new one. But seemingly my serial number is not accepted any more. That's what I d

  • Extended desktop mode with external display

    I use my Macbook with an external display. Sometimes I need to use extended desktop mode and sometimes I don't need the extra desktop space and prefer to work only with my external display. My needs change as I work throughout the day and I'm getting

  • Drag & drop to other programs won't work

    Today i installed firefox 24. I tried to drag & drop a picture from google pictures to the program tag & rename. That didn't work. Drag & drop to my desktop works ok. Drag & drop from internet explorer to tag & rename works fine. Till today i had a n

  • Tables for Cube

    Hi guys, im trying to activate a cube, but the process fails, saying there was no primary key for the table /BIC/L<CubeName> . Now i wonder what kind of table that is. Is there any complete List of tables for Cubes? I know about those: /BIC/F<CubeNam

  • Berkeley DB: Too Many Open Files

    I've installed BerkelyDB 6.0.3 on Mavericks but when I try to use it I get errors about there being too many open files: Apr-10-14 11:20:45 [Worker_10001] BerkeleyDB-CRT-ENV-ERROR (1) in HASH Delay , on file /Applications/assp/delaydb.bdb : BDB:Too m