Cost Vs Rule

Hi All,
How can i compare the cost based optimization or rule based optimiztion based on a query? Suppose now the query is using rule based and taking 1 min for execution, after i analyze the table same query is taking more time.
What all things i have to look into the query/paramters ?
Thanks in advance,
Thomas.

RBO accts on set of rules defined, where as, CBO totally depends on object statistics. As long you supply good/accurate statistics, Optimizer will give you best execution plan.
Tune your query according to cardinality and response time.
If you feel, CBO gives you bad plan which takes longer time to execute the query, there is something missing for optimizer and thats whyh its gives bad plan.
Take the explain of the query and see where you get the bad plan, which you were not expecting.
Jaffar

Similar Messages

  • Shiment Cost Calculation Rules

    Hi Gurus
    Can you please provide me details of configuring Shipment Cost Calculation Rules?
    Thank You

    Hi Brajesh,
    Is the following rules you are expecting?
    Determining the Calculation Basis  
    Use
    The origin of the data upon which a condition type is based during shipment costing determines the calculation basis. During shipment costing, the system determines the shipment cost items from the different calculation bases for the condition types of a pricing procedure. Shipment costing itself is carried out for each sub-item.
    Prerequisites
    You must maintain a suitable calculation base in the definition for the condition type in Customizing.
    If you select handling units as the calculation basis, you must also specify the packaging material type so that only the relevant handling units are used for shipment cost calculation.
    Features
    The calculation bases are determined during shipment costing for a shipment cost item on the basis of the settings made in the condition type.
    During pricing, the calculation base influences
    The condition types to be considered for each sub-item
    The information available for determination of the conditions
    All condition bases contain information from the shipment header or shipment stage, as well as from the shipment cost item. This information includes service agents, geographical information (point of departure and destination) and shipping type, for example.
    How the scale base types (gross weight, net weight and volume) are calculated
    The following types of calculation bases are possible:
    Deliveries
    If condition types with this calculation base exist in the pricing procedure, then the system creates a shipment cost sub-item for every relevant delivery.
    No information from the delivery items (such as materials) or the handling units is available.
    The scale base types (gross weight, net weight, volume) refer to the corresponding information from the delivery headers.
    Delivery items
    If condition types with this calculation base exist in the pricing procedure, then the system creates shipment cost sub-items for every relevant delivery item.
    Information from the delivery header and the relevant delivery item is available. There is no information from the handling units, however.
    The scale base types (gross weight, net weight, volume) refer to the corresponding information from the delivery items.
    Group of Handling Units
    If condition types with this calculation base exist in the pricing procedure, then the system creates shipment cost sub-items for the sum of all identical handling units with the relevant packaging material type (also specified in the condition type).
    There is no information from the deliveries or the delivery items available.
    The scale base types (gross weight, net weight, volume) refer to the corresponding cumulated information from the relevant handling units.
    Shipment cost item
    If condition types with this calculation base exist in the pricing procedure, then the system creates exactly one shipment cost sub-item.
    There is no information from the deliveries, the delivery items or the handling units.
    The scale base types (gross weight, net weight, volume) refer to the corresponding information from the relevant delivery headers.
    Per handling unit
    This calculation basis corresponds to the calculation basis handling units, with the only difference that each handling unit is calculated individually. This calculation base is necessary for shipping packages, for example.
    Handling unit including delivery item
    If condition types with this calculation basis exist in the pricing procedure, then the system creates a shipment cost sub-item for every packaged delivery item and handling unit (per combination of delivery item and handling unit). Shipment costs are therefore calculated with content depending on the handling unit.
    All of the information from the handling units and delivery items is available.
    The scale basis types (gross weight, net weight, volume) refer to the gross weight of a handling unit per delivery item.
    All
    You can use this calculation base if, for example, you want to define a discount that applies to both delivery-related and handling unit-related shipment prices. A condition type with this calculation base can be used for every shipment cost sub-item.
    Several calculation bases may be used within a shipment cost item. In performing a shipment comparison, for example, the calculation could be performed using two calculation bases. You could then compare the results. See also Shipment Comparisons.
    For system load and clarity reasons, we recommend selecting a calculation base that is only as detailed as absolutely necessary. For example, if only the total weight and the transportation leg are relevant, the calculation base for shipment cost items is sufficient. However, you can still distribute the costs in greater detail. The cost distribution is independent of the calculation base. For example, you can calculate shipment costs using the calculation basis for shipment cost items and distribute the costs at delivery item level. The system weights the costs and distributes them accordingly.
    When defining the condition tables in Customizing (Logistics Execution ® Transportation ® Shipment Costs ® Pricing ® Pricing Control ® Define price dependencies (condition tables), you should make sure that information is not available for every field - depending upon calculation base. If, for example, you select the field Incoterms for a condition table when condition types with the calculation basis Handling units exist in the pricing procedure, there can be no information on Incoterms for the corresponding sub-item. This means that no condition records will be found for this key. For further information on the role of the condition table in pricing, see  Condition Tables.
    Please let me know your thoughts.
    Thanks nand Regards,
    Satheesh Durgi
    Edited by: Satheesh on Jan 25, 2011 1:01 PM

  • Cost/Cost business rule

    Dear All,
    I have one business scenario where I have requirement as below.
    I have one project with Distribution rule Cost/Cost, now I have recieved one item in Inventory with amount 1000$.
    But as this cost is still present in Inventory I dont want to issue any invoice to my customer(let say after 6 months I will issue this item to my customer and during that moment only invoice should issue)
    As per Cost rule, 1000$ ll be showing in Projects as actual cost and invoice will be automatically generated.
    I want to avoid this.(Dont want to change rule)
    Can any one help me out here?
    Thanks in advance,
    Sarvottam.

    Hi
    By choosing the distribution rule COST/COST you are going to get revenue and invoices based on the formula -
    Revenue event = Actual accumulated cost / Approved Cost Budget * Approved Revenue Budget - Actual accumulated Revenue
    Invoice Event = Actual accumulated cost / Approved Cost Budget * Approved Revenue Budget - Actual accumulated Invoices.
    Usually companies run the GDR and GDI processes each period.
    You described a scenario where you want to invoice the customer when you deliver the item to the customer. If you need to invoice then based on the above described formula, then you just need to schedule the process GDI to the right moment (after delivery). Be careful and prevent invoice generation, or at least prevent invoice release, before the right time.
    However, if you need to invoice for a fixed price value which is not based on that formula, you might need to use as invoice method EVENT and not COST.
    Dina

  • CJ20N : Settlement Rules Heritage on unique IeC WBS Element

    Hi Experts,
    I've customize PS for an investment project, who have a stategy for top down heritage of the settlement rules from the project definition, and an automatic generation of an only IeC (on first WBS element) when the entire project is launched from the project definition.
    All settlement rules are settled to the first WBS element (WBS project), who becomes the IeC.
    Heritage is OK on all WBS elements and  I can see them under "Edit -> Costs -> Settlement Rule".
    When I try to see my seetlement rules on the first WBS Element (WBS project), the system turn in loop and dump after 2 minutes (time over message).
    In my opinion, the error comes that the system permiss to affect the settlement rule (for exemple WBS -> I/0001) on his own object (WBS ID I/0001) . They have no error message when I save the project for the heritage.
    After this operation, impossible to go back under "Edit -> Costs -> Settlement Rule" to see the settlement rules of this WBS Element.
    For more information, I don't want the create the heritage to level 2 or 3 of my WBS elements structure, because I don't want to loose a level (coding mask I/XXXX.XXXX.XXX.XXXX).
    Does an expert have a solution to resolv my problem ?
    Thanks in advance for your assistance.

    Hi herieric ,
    The program should not enter into an endlos loop in such case. It is rather a program error than a consulting issue. You can copy the key words from the dumps and search the notes. If there is still no suitable notes, create a customer message and ask SAP for support.
    Kind regards,
    Zhenbo

  • Settlement Rule in Networks

    Hi Friends,
    I'm trying to create settlement rules for networks in CJ20N and facing issues. I have projects with WBS elements, networks, and activitieis (standard projects). System is allowing to maintain dettlement rules for WBS elements, but not for networks, i.e., when I go to Edit - Cost - Settlement rules, after selecting networks, the settlement rule page is coming up only in display mode. Any suggestions on what could be the root cause? FYI... I have all necessary authorizations roles in Project Systems.
    Regards,
    Aman

    Also check if your network is header assigned or activity assigned. if the same is header assigned in that case only you can assign settlement rule at network header if the same is activity assigned in that case you need to assign settlement rule at activity  level.
    With  Regards
    Nitin P.

  • OPM Process Execution and OPM Standard Costing for Poultry Business

    I have a business requirement from the client at their Poultry Processing plant where the client feels that the OPM Execution steps are too cumbersome until closing the batches. The client wants to maintain minimum number of batches in Production: one for Primary, one for Secondary and one for Further Processing, rather than having multiple batches based on different formulas. There are 3 main types of processing which can be briefly described as follows:
    A.) Primary Processing:
    Live Birds (Ingredient) become Whole Dressed Chicken with Neck, without Neck, Liver, Heart, etc... (40 Finished Products)
    e.g. Live Birds (Broiler) -> Whole Dressed Chicken with/without neck, Whole Dressed Chicken with/without neck, etc.
    B.) Secondary Processing:
    Only one type of Whole Dressed Chicken (from Primary Processing) become Chicken Cuts (80 Finished Products).
    e.g.[Scenario B1] Whole Dressed Chicken (Broiler) -> Drumsticks, Thighs, Wings, Breasts, Backbone, etc.
    [Scenario B2] Breasts -> Filets and Deboned Breasts (2 FGs)
    [Scenario B3] Thighs -> Thighs in Plain Bag
    Please note that the Whole Dressed Chicken is also sold as a Finished Good as well as an Ingredient for the Secondary Processing.
    C.) Further Processing:
    Chicken Cuts become 40 Finished Products
    e.g Filets -> Chicken Nuggets, Chicken Fries, etc...
    The client is using Standard Costing method for its OPM Financials and all the finished products (160 Products in all) are having different production cost. Please note that 1 kg of Chicken Wings is not equal to 1 Kg of Chicken Thighs. Different body parts have different costs. In order to alleviate the maintenance of multiple batches per day on the production floor, the client wishes to have minimum batches. We therefore would wish if you can confirm the below approach to be correct?
    a.) OPM Process Execution:
    ==========================
    EITHER should I (Option 1):
    a.) Create ONLY 3 Formulas for Primary, Secondary and Further Processing . The 3 Formulas will have all the processing line Finished Products grouped together (as per the scenarios explained above). Formula for Primary and Secondary Processing can also combined together, reducing it to only 2 batches to maintain per day.
    b.) Can set any Quantity Values for the Ingredient, Product and By-Product in the Formula details with ANY Cost Allocation (amounting to a total of '1') in the Products section
    c.) Set the Validity Rules as 'PRODUCTION' for the 3 Recipes
    d.) Complete the steps defined in the 'OPM Cost Management' (as described below)
    e.) Create the 2 or 3 batches and record the appropriate quantities at the end of the day before closing the batches
    OR should I (Option 2):
    a.) Create MULTIPLE Formulas (above 100 formulas) for Primary, Secondary and Further Processing based on the different products processed.
    b.) Can set any Quantity Values for the Ingredient, Product and By-Product in the Formula details with ANY Cost Allocation (amounting to a total of '1') in the Products section
    c.) Set the Validity Rules as 'PRODUCTION' for the 3 Recipes
    d.) Complete the steps defined in the 'OPM Cost Management' (as described below)
    e.) Create the MULTIPLE batches and record the appropriate quantities at the end of the day before closing the batches.
    b.) OPM Cost Management:
    ========================
    Whether (Option 1 or Option 2) selected, the below needs to be set for OPM Costing:
    a.) Define multiple formulas (above 100), as in Option 2.
    b.) Set the Quantity value to be '1' for the Ingredient, Product and By-Product in the Formula details with the appropriate Cost Allocation in the Products section
    c.) Set the Validity Rules as 'COSTING' and 'PRODUCTION' for each Recipe
    d.) Run Cost Rollup at least once so that the products can have an item cost per unit
    As per me, for the purpose of Costing, it would be imperative to have multiple batches (created one time only) with appropriate Cost Allocation in the Formulas and the ‘Recipe Use’ in the Validity Rules should be set as ‘COSTING’. Then, setting Profile Option 'GMF: Use Only Costing Validity Rules for Cost Rollup' to 'Yes'. In this way, we are sure that the different products in the formula with correct Cost Allocation will have their Item Cost calculated after performing the Cost Rollup. AND, for the purpose of operations, we can only one combined formula of Live Birds (as Ingredients) to yield -> All FGs for Primary and Secondary Processing with Cuts. But, this time, the ‘Recipe Use’ in the Validity Rules of the Recipe should be set as ‘PRODUCTION’.
    I want to confirm which approach (Option 1 or Option 2) is more appropriate in terms of Operations and confirm that the above proposed steps are correct with no circular reference (as certain finished products are also used as ingredients for another product in the Secondary Processing)?
    Thanks and regards
    Raveesh Nobeen
    [email protected]
    Edited by: user12189219 on Jan 20, 2010 3:48 PM

    Hi Raveesh
    I am implementing OPM R12 in Poultry Processing business, I think option 1 (Create 3 formulas/recipes/batches) is more appropriate. In my case we are using actual costing (Moving Average) as a costing method.
    I have set the profile option GMF: Cost Allocation Factor Calculation to be "Dynamic" to calculate the batch cost allocations as a ratio of actual quantity of each product produced to the total production batch output quantity and I have used OPM Financial Cost Allocation process to allocate GL expenses on different products based on Fixed percentage % according to product "value" where Filets has a return more than wings.
    Can you please share your knowledge in this business area and confirm to what extend my approach is correct ??
    Thank you and best regards
    Mamdouh Ragab

  • K/834 no standard cost estimate and ke435 costing key 000 does not exist

    Hi ,
    scenario as under we have following type of materials
    normal Material that has cost estimate
    Configuarable material
    Material without cost estimate -prices are updated thru MR21 (as some legacy system calculated the price)
    There are many company codes and use one or more above  category of material. further we have common Material type and valuation class.
    we need cost component split to get updated in COPA and for that i create 2 costing key one for normal and other for normal one and developed an enhancement (KEPC) that check whether material is configurable or not. based on that it assign 001 or 002 costing key
    it went well but failed for material that has no cost estimate and got error K/834.
    To tackle same we insert further logic to check for normal material whether cost estimate exist, if yes then assign costing key 001 else ignore it. configurable material logic remain as it is. it working fine for normal and Configuarable material but normal material without cost estimate resulted in error KE435.
    need to know:
    -at first place why system  generates K/834 error for enhancement - earlier we were using assignment rule (KEPC) where we use valuation class and assigned costing key 001, it worked for normal one and ignore configurable one and normal material without cost estimate. I haven't changed costing key rule and exclusive error is not marked .
    - any other way to tackle besides resetting message class from error to warning or changing Materila type or valuation class as that is not acceptable due to other complexity.
    Regards,
    Atul

    Hi,
    It resolved thru enhancement
    Regards,
    Atu

  • Cost Distribution - Sender to be selected with Real Cost Center / Stats IO

    hi CO allocation gurus,
    our company has a unique requirement. we want to identify cost by Cost Center/stats IO combination. We have a scenario wherein one cost center will have multiple Stats IO combination and these Stats IO can be used across multiple cost centers.
    The reason is that the Stats IO are cost portions identifiers and they are repetitive across cost centers. So instead of creating multiple cost centers, we create a combination in the coding block.
    During cost allocation we want to move cost based on a particular cost combination. As Stats IO are not cost allocatble, the system completely ignores the combination and total cost for the cost center/cost element combination is selected.
    The stats IO information is stored in COEP as OBJNR_N1 field. However this is not available in the Tcode KCIV ( maintain Sender / receiver combination ). 
    Has anybody come across this scenario and did some enhancement, are there any speciific userexits  to address this ?
    any help would be appreciated...
    regards,

    hi CO allocation gurus,
    our company has a unique requirement. we want to identify cost by Cost Center/stats IO combination. We have a scenario wherein one cost center will have multiple Stats IO combination and these Stats IO can be used across multiple cost centers.
    The reason is that the Stats IO are cost portions identifiers and they are repetitive across cost centers. So instead of creating multiple cost centers, we create a combination in the coding block.
    During cost allocation we want to move cost based on a particular cost combination. As Stats IO are not cost allocatble, the system completely ignores the combination and total cost for the cost center/cost element combination is selected.
    The stats IO information is stored in COEP as OBJNR_N1 field. However this is not available in the Tcode KCIV ( maintain Sender / receiver combination ). 
    Has anybody come across this scenario and did some enhancement, are there any speciific userexits  to address this ?
    Can i do this with costing substitution rule, if so what user exit ?
    any help would be appreciated...
    regards,

  • Hyperion Profitability and Cost Managment : Questionnaire

    Hi All,
    Is there any standard questionnaire available that we need to ask from our clients for going ahead with Hyperion Profitability and Cost Management?
    Regards,
    Sugi

    Here are a few questions I could think of:
    - What are the stages of Cost Flow for certain Product?
    - What is the costing methodology being used?
    - How are the Drivers to define Cost?
    - What are the Cost Assignment Rule across Stages.
    Please correct/add questions or your valuable inputs as per your experience. Any pointers to the same will also be helpful.
    Thanks,
    Sugi

  • Error  while raising billing from sto

    Hi . ,
    For my business cycle , Here we are doing STO then delivery then billing .... now customer want during billing they can maintain values manually ... previously it is flowing from sto only ( condition type P101 ) , now as per their requirement I remove that one ...and in that place i put one manual condition type which will work through per kg (weight basis) .
    But now whenever i am creating invoice in header i am giving value per kg . ... but it' sshowing some error of " material , condition type  and unit of measure EA is not allowed "
    Though net weight and gross weight is maintained properly .
    Please advice  .

    Hi ..sankar ,
    Unit of measure in material master is EA .
    But I maintain manual condition type in net weight  basis .
    In v/06 , I customize it like bellow way ...
    Cond. class     B Prices
    Calculat.type    E Net weight
    Cond.category  G Cost
    Rounding rule    Commercial
    pls help ...

  • No AUC shown on settlement for WBS

    The WBS shows status of AUC but when you go to the the WBS and check the settlement rule, there is none shown.  If you go from the project WBS to the AUC (Extras>Asset under construction)the AUC was created. 
    The account assignment indicator is set and the investment profile is assigned to the WBS and provides for an asset under construction.
    I am using t-code CJ20N.  Why isn't the AUC shown on the settlement for the WBS?

    Hi,
    Settlement rule (For Partial Settlement i.e.Moving the cost from WBSE to AUC) will get populated once you do the Partial Settlement (i.e. Moving the cost from WBSE to AUC) through CJ88 / CJ8G.
    Once you do the partial settlement you can see the settlement rule by Edit -
    > Cost -
    >Settlement rule.
    By investment profile you can generate the AUC asset nos against the WBSE once you release the project. But those AUC asset no will only get reflected in settlement rule once you do the partial settlement (i.e. Moving the cost from WBSE to AUC).
    Thanks & regards,
    Pradip

  • GuiXT for projects - to call application within transaction

    Hi
    I'm using GuiXT for screen modifications and field layouts.
    I'm using Project Builder CJ20n. Everytime when i want to give a settlement rule to the WBS element within project i need to select the WBS element, g oto Edit --> Cost --> Settlement Rule
    I got the program function as ABRV.  I want to have a Pushbutton on the screen so that when i click on it, it will direclty go to that
    screen.
    Regards,
    Ashish

    Hi Asish,
    I would proceed as follows:
    1. Creating a Pushbutton
    for example:
    Pushbutton (toolbar) "@3B\QText as Quickinfo@Testbutton" process="Test.txt"
    2. Recording an input script with GuiXT
    for example:
    select the WBS element, goto Edit --> Cost --> Settlement Rule
    3. Saving an input script as test.txt
    4. Done
    Regards,
    ScriptMan

  • WBS: Settlement Parameters: Settlement Profile - To change to non mandatory

    WBS -> Costs -> Settlement Rule -> Goto -> Settlement Parameters
    The settlement profile field is mandatory, is there any way to turn off this by config?
    Regards,
    Feng Hwa

    Dear,
            You can assign default sattelement profile that is not relevent for sattlement to the project profile.
            This can help you.
    Regards.

  • CJ8G Settlement and Business Area

    Dear Experts,
    where can I put a defult Business Area in the Settlement (transaction CJ8G)?
    I need that that FI documents created in CJ8G have a default Business Area, but I can't change the WBS master data putting a Business Area in it.
    Thanks a lot.
    Best regards

    Hi
    *Maintain settlement Rule: Distribution Rules screen*
    This screen in CJ20N
    Go to CJ20N and select the WBS element goto the top menu path EDIT-costs-settlement rule----and click new rule icon (F9).
    Here you need to maintain the Business Area
    Thanks
    S.Murali

  • Exclude freight from material price

    Dear SAP gurus,
    I have requirement where there is a freight to be included in PO, however there is also a requirement that this freight should not be included as material price when we do GR.
    As far as I know if we have freight condition in PO, then when we do GR the amount will be included.
    Eg. PO for material A --> price for material A = 5,000 USD, qty = 1 pc, freight = 100 USD. Then when we post the GR, the journal will be:
    material = 5,500 USD
    GR/IR = 5,000 USD
    freight clearing = 500 USD
    Thus, the material is increased by 5,500 USD (freight included).
    Is there any way to make it so that the material will only be increased by 5,000 USD?
    Best regards,
    John

    Dear,
    Go to M/06...for your condition typr FRC1...check below seetings:
    Cond. class   A Discount or su
    Calculat.type C Quantity
    Cond.category B Delivery costs
    Rounding rule   Commercial
    Manual entries        No limitations
    Accurals checked
    Now go to M/08...
    Check Statistical check box is checked or not...Also check Account key  FRE  and accurals FR1 are maintained or not.
    Check and revert.
    Utsav

Maybe you are looking for

  • How to deletephotos in  Iphoto 9.5.1

    Hi folks ! Can anyone Help ? MBP 13" udated to OSX Maverick 10.9.4 I have fotos in Iphoto 9.5.1 Library. These fotos are appearing as images but do not have the original archives anymore The original fotos had been deleted after having downloaded to

  • Problem while sending unicode (utf-8) xml to IE.

    Hi, I have encoding problem while sending utf-8 xml from servlet to IE (Client), where i am parsing the xml using Ajax. In the log I can see proper special characters that are being sent from the servlet. but when same is seen in the client end,, it

  • Trying to Compile CVSRenderer.java in Apps Server

    Hi, I wanted to do some changes to CVSRenderer.class in oracle.apps.asf.html. Hence i took the .class file from the server and i decompiled it and did the changes to the .java file and when i wanted to push it back to the server and compile this CVSR

  • MySQL + apache2 + PHP Database connection error

    Hi Folks: I am trying to connect to the database and keep getting a 500 internal server error. here is the setup Database server -- mysql 4.1 (linux) on a gentoo linux server -- IP 192.168.0.10 -- srvdb-01 Webserver - Apache2 + PHP 5 on Gentoo Linux

  • N8 & ovi maps

    Just received my nokia n8 on vodafone UK, and i was surprised to found maps version 3.04 the current is 3.06 o.k., i ran the software update from the phone, but nothing happened the same is with ovi suite. So how i can get the new one?