Variance Tables

Hi, 
  We are doing customizing report for variance analysis, because user want the variance report category wise, plant wise periodically before settlement. Can you please tell me what are the tables in which variance stores before settlement, i.e. after executing the transaction KKS2.
Thanks in advance.
Regards,
Pavan

Hi Pavan,
Table COSB holds the variances. A useful tool is transaction RKACSHOW, this shows all the tables that are updated in an order. If you select value trpe 31(variances) you will see the variances of an order.
Regards,
Declan

Similar Messages

  • MRBR Report- Price and qty variance tables/structure/Function module

    Hi
    I am in the process of developing a customised report similar to MRBR report. I am not very clear on the logic used for "Difference Qty" and "Difference Value".
    MRBR is taking values from strucrure ARSEG. Is anybody aware if there are any tables from where we can get this information ? Are there any Function modules that SAP uses to arrive at this difference.
    I am aware that we canget the information from EKBE table and calculate our seleves. At times the values do not match and the logic do not seem to be straight forward.
    Has someone worked around this area ?
    Thanks for your time in advance.
    Dasaradh

    Hi,
    RBKP_BLOCKED is one important table from where this program gets the blocked invoices.
    Hope this helps.

  • "analyze index"  vs  "rebuild index"

    Hi,
    I don't undestand the difference between "analyze index" and "rebuild index".
    I have a table where I do a lot of "insert" and "update" and "query", What is the best thing to do ??
    thanks
    Giordano

    When you use dbms_stats.gather_schema_stats package with cascade=>true option, you are also collecting stats for the indexes, no need to collects stats separately using dbms_stats.gather_index_stats.Of course, but I refered to the rebuild index question. Therefore I only mentioned the GATHER_INDEX_STATS.
    Auto_sample_size has many problems/bugs in 9iOk didn't know that - I'm using 10gR2.
    But this discussion made me curious. So I tried something (10gR2):
    CREATE TABLE BIG NOLOGGING AS
    WITH GEN AS (
    SELECT ROWNUM ID FROM ALL_OBJECTS WHERE ROWNUM <=10000)
    SELECT V1.ID,RPAD('A',10) C FROM GEN V1,GEN V2
    WHERE ROWNUM <=10000000;
    SELECT COUNT(*) FROM BIG;
    COUNT(*)
    10000000
    So I had a Table containing 10 Million rows. Now I indexed ID:
    CREATE INDEX BIG_IDX ON BIG(ID)
    I tested two different methods:
    1.) GATHER_TABLE_STATS with estimate 10%
    EXEC DBMS_STATS.GATHER_TABLE_STATS(TABNAME=>'BIG',OWNNAME=>'DIMITRI',CASCADE=>TRUE,ESTIMATE_PERCENT=>10);
    It took about 6 seconds (I only set timing on in sqlplus, no 10046 trace) Now I checked the estimated values:
    SELECT NUM_ROWS,SAMPLE_SIZE,ABS(10000000-NUM_ROWS)/100000 VARIANCE,'TABLE' OBJECT FROM USER_TABLES WHERE TABLE_NAME='BIG'
    UNION ALL
    SELECT NUM_ROWS,SAMPLE_SIZE,ABS(10000000-NUM_ROWS)/100000 VARIANCE,'INDEX' OBJECT FROM USER_INDEXES WHERE INDEX_NAME='BIG_IDX';
    NUM_ROWS SAMPLE_SIZE VARIANCE OBJEC
    9985220 998522 ,1478 TABLE
    9996210 999621 ,0379 INDEX
    2.) GATHER_TABLE_STATS with DBMS_STATS.AUTO_SAMPLE_SIZE
    EXEC DBMS_STATS.DELETE_TABLE_STATS(OWNNAME=>'DIMITRI',TABNAME=>'BIG');
    EXEC DBMS_STATS.GATHER_TABLE_STATS(TABNAME=>'BIG',OWNNAME=>'DIMITRI',CASCADE=>TRUE,ESTIMATE_PERCENT=>DBMS_STATS.AUTO_SAMPLE_SIZE);
    It took about 1,5 seconds. Now the results:
    NUM_ROWS SAMPLE_SIZE VARIANCE OBJEC
    9826851 4715 1,73149 TABLE
    10262432 561326 2,62432 INDEX
    The estimate 10% was more exact - also a 1,7 and 2,6 percent variance is still ok. It's also very interesting, that using AUTO_SAMPLE_SIZE
    causes oracle to execute a estimate 5% for the index and a estimate 0.5 for the table.
    I tried again with a table containing only 1 Million records and oracle did an estimate with 100% for the index.
    So for me I will continue using AUTO_SAMPLE_SIZE. Its very flexible, fast and accurate.
    Dim
    PS: Is there a way to format code like one can do in HTML using <code> or <pre>?

  • Pivot Table - Calculate Variance - Hidden Fields?

    I need some help adding a target value field inside a pivot table in excel.
    Here is what my current pivot table looks like.
    Regions                  1 year - Actual              1 year - Target??               
    Difference
                       (April 2013 to MArch 2014)                                          
     (Target - Actual)?     
    Region1                $6,355,696.75
    Region2                $6,775,309.87
    Region3                $2,230,424.76
    Regions expand into managers which in turn expand to consultants.
    What I want to do is add a column for target values of the 3 different regions and then create another calculated field that will show the difference between the target and actual values.
    Can this be done without writing any stored procedures in SQL? I want to do this in excel itself.
    The target values are not calculated so can we store them in hidden fields or something in the pivot or excel?

    1. Click anywhere in Pivot and go to Options tab > Formulas > Calculated Field.
    2. Create a calculated field called Target (whatever name your choose). If your target is say 7000000, put this value in Formula field. You may put it with or without =
    3. Now after this, you can once again create a new Calculated Field. Let's say this is Variance. If you variance is Target - Actual, put this as =Target-Actual in Calculated Field.
    4. Your pivot will have whatever you wanted.

  • Matrix table add year over year variance

    I am trying to get add a variance column to a matrix report is ssrs 2008 r2. However I am unable to create the custom code needed. I have been working with many examples online but none seem to fit what I am trying to do. Any help would be great. I am trying
    to calculate the diff at a month level year over year. Like month 1 2013 – month 1 2014
    I have a matrix table with three column grouping
    Quarter
    Month
    Year
    Design view of table
    Quarter
    Month
    Year
    Customer
    Job Location
    Job id
    Example of what I need (Variance)
    1
    1
    variance
    1
    1
    variance
    1
    1
    2
    2
    2013
    2014
    2013
    2014
    Acme
    Acme Philadelphia
    jj123
    100
    150
    50
    150
    100
    -50
    Dataset
    select
    Fisc_year
    ,(case
    when
    datepart(month,dt)
    = 11 then 1
    when
    datepart(month,dt)
    = 12 then 2
    when
    datepart(month,dt)
    = 1 then 3
    when
    datepart(month,dt)
    = 2 then 4
    when
    datepart(month,dt)
    = 3 then 5
    when
    datepart(month,dt)
    = 4 then 6
    when
    datepart(month,dt)
    = 5 then 7
    when
    datepart(month,dt)
    = 6 then 8
    when
    datepart(month,dt)
    = 7 then 9
    when
    datepart(month,dt)
    = 8 then 10
    when
    datepart(month,dt)
    = 9 then 11
    when
    datepart(month,dt)
    = 10 then 12
    end)
    as Mnth
    ,fisc_qrtr
    as Qrt
    ,Customer_Name
    ,Job_Name
    ,sum(REVENUE)
    as REVENUE
    from tbl_whatever
    where Customer_name
    = @Customername
    and Fisc_year
    = @Fyear

    Hi SQLtl,
    To achieve your requirement, we can directly use expression. For more details, please refer to the following steps:
    Right-click the column contains Year field to insert a column with Outside Group-Right.
    Then type the following expression to the corresponding cells:
    =Sum(iif(Fields!Year.Value="2014",Fields!REVENUE.value,0))-Sum(iif(Fields!Year.Value="2013",Fields!REVENUE.value,0))
    Besides, we can also use custom code to achieve the same goal, please see:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/5f44a0b5-144b-4e6e-b81e-d9b025427748/how-to-get-the-difference-between-two-columns-in-a-column-group?forum=sqlreportingservices
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • Delete Variance data from COSB table for version 1

    Hi,
    We are trying to change the Valuation of version 1 from Legal to Profit center in OKEQ.
    While doing so, we are trying to remove variance indicator due to error message KT337.
    When trying to uncheck variance indicator for this version there is error message KV853.
    SAP per SAP note 337183, if there are any dependent entries in COSB table (CO Object: Total Variances/Results Analyses) we get this message.
    Now the question is how can i delete the variance data with version 1 from the table COSB.
    Message no. KT337 :
    Valuation variance from version "000"
    Diagnosis
    You are maintaining version 1 in controlling area 1000. The actual indicator is not active and at least one of the two indicators WIP and Variance are active. In this case, the valuation in version 1 must match the valuation of version '000'. This is not the case: 2 <> 0.
    Procedure
    Activating the indicators WIP and Variance with the actual indicator being inactive at the same time requires valuation 0.
    Message no. KV853
    Variance calculation cannot be reset - there are dependent entries
    Regards
    Raghu
    Edited by: Raghu Ram Thatavarthy on Nov 16, 2011 3:35 PM
    Edited by: Raghu Ram Thatavarthy on Nov 16, 2011 3:36 PM

    You may need to contact the SAP SLO (System landscape optimization) team

  • Grand total on table with variance

    !http://img17.imageshack.us/img17/4070/resulta.jpg!
    hi, I set the column formula of variance to be: ("Current Value" - "Last Value) / "Last Value" * 100
    when I enabled the "grand total" of the table, it gives the grand total of variance = 0%.
    but actually it should be 3.3%
    how to achieve my goal.
    thank you very much!

    ("Current Value" - "Last Value) / "Last Value" * 100.00
    Change "100" to "100.00"

  • Tables related to Product costing variance

    Hi Friends,
    Can any one send me the tables related to product costing variances.
    Specifically i am looking at tables in which variances related to product costing group valuation variance values are stored.
    Valuble inputs will be rewarded points and highly appreciated.
    Thanks in advance.
    Regards
    Ravi

    KEKO Product-costing header
    KEPH Cost components for cost of goods manuf.

  • Tables for variance calclation

    Hi Experts,
    My Client has a different requirement for variance calculation.
    Client want the Production order variance to be calculated based on their budgeted cost and not with reference to Target cost which is again based on Standard cost. Client requires to valuate the cost of Fert and Halb items based on their budgeted cost for the variance calculation ONLY.They want a seperate report for Management information and mainly concerned with Material related variance.
    Now to start with, I entered prices of Raw material (as said to be the budgeted price)  in planned price 1 in Costing Tab 2 of material master for all items defined in BOM. Made a seperate Costing variant and valuation variant to consider the Planned price 1 for valuation.
    With CK40N, calculated the cost of Fert and HALB items in Planned price1. Now I want to use this new cost i.e. Planned price 1 to calculate Target cost in production order calculation of  variances i.e. price, Quantity, Mix,Usage etc.
    My queries are as follows...
    1) Am I moving in a right direction and whether the approach is correct? If No, then request you to guide me any other method to calculate the cost as per client's requirement.
    2) If the answer to obove is yes, then requesting you to guide what should be the next step?
    3) I want to know the table names where the values of this new cost is stored so that  I can capture the values as per cost component structure and can be used for variance calculation. I have already checked the Tables KEEO and KEPH but the figures are not matching.
    4) Also let me know the Table names for actual cost of production order.
    Regards,
    makrand

    HI,
    Ur Approch is correct and The tables KEKO and KEPH are absolutely correct. It must match.
    AUFM is the table for fetching the values of production order.
    once these things are ready, you can get the abaper to write the report to find the variance between KEKO and AUFM
    Hope my answer helps!~
    Vijay

  • Variance between 2 columns in a Pivot Table

    Hello,
    We have an analysis that is a Union of 2 analysis. It has two result columns in the Union, each column have a value of one month. We have to create a third column with the variance between the second and first column.
    We are using a Pivot Table and creating a New Calculated Item in the month column with difference between the columns ($2 - $1). But this results in four different columns - The 2 original ones and the difference repeated (for each month).
    Pls. is there a way to build the pivot table the way we need it ? with just the 3rd column as a variance result.
    Txs for any help.
    Antonio

    You may get the logical query as below
    SELECT saw_0, saw_1, FROM (
    (SELECT A saw_0, B saw_1 FROM "SA" )
    UNION
    (SELECT C saw_0, D saw_1 FROM "SA" )
    ) t1 ORDER BY saw_0
    I would suggest to create another column at first line of SELECT so that you can use those saw_0, saw_1 columns to get another column something like
    SELECT saw_0, saw_1, saw_0+saw_1 FROM (
    (SELECT A saw_0, B saw_1 FROM "SA" )
    UNION
    (SELECT C saw_0, D saw_1 FROM "SA" )
    ) t1 ORDER BY saw_0
    This is just a hint you need to put in your requirements
    if make sense mark :)
    Edited by: Srini VEERAVALLI on May 14, 2013 10:35 AM

  • Table MBEW  Field HKMAT - Impact on variances

    Can anyone tell me the impact of having the box called "Material Origin" checked or unchecked when variances are calculated?  The check box appears to update the value in Table MBEW  Field HKMAT. 
    We have already set standard costs for the year, but I am seeing large differences between the amounts/quantities for the 261 entries versus what the cost estimates show.  We are using backflush. 
    There is no difference between the costing BOM and the production BOM for the parent item (which is the item that did NOT have the box checked when we created standards).  The variances are showing for its component items (which are all ROH's).  The user ID in the 261 transactions is the "system ID" user, so I know the entries were created by the backflush operation.
    Would this check box cause the variances I am seeing, or would the effects of that check box be something different, like maybe an incorrect cost element?

    Hello Micheal,
    The Material Origin flag simply means that after the variance is run you will be able to see the material related information in the analysis reports. If you do not check this box you will simply see the consumption account and the variance, no reference to the actual material. This flag will not cause variances.
    Unfortunately, there are many possibilities why you are seeing variances. Here are some options:
    1.) Are your raw materials valued at moving average i.e. Price Control V in the material master? If so this will cause variances in the amounts because the materials are issued to the order at moving average price.
    2.) Do your operators have the ability to adjust the quantities during the backflush? In the standard SAP backflush transaction it is possible to change the quantities consumed during the backflush regardless of what is actually on the BOM. If your production department is using this, this could account for your quantities differences.
    3.) What about scrap factors? There are many places where scrap factors can be maintained i.e. the MRP 4 view of the material master, the routing, and the BOM. These scrap factors will increase the amount of materials consumed during the backflush. If these were added after your costing was completed this could account for your variance.
    4.) Posting of scrap. Is scrap posted directly to the production orders? If so this can cause quantity variance.
    It is a painful process but the best way to analyze variances is to take one part and try to follow it all the way back through the production process.
    I hope that these options help point you in the right direction.
    John.

  • Can I 'explain' data in a pivot table?

    Hi All.
    I have a request that has baffled me.
    I need a way to use 'text' to describe the results of a report. If I were doing a simple report,
    this would be a non-issue. Here are my hurdles:
    I have a report that uses a Union via Set Operations (so I'm combining two result sets).
    The results are then shown in a pivot table.
    Within the pivot table, variances were created using 'New Calculated Item' under measures.
    I want to be able to display in a narrative, or some other magical technique, the results of theses calculated items.
    Data Example:
    <pre>
    Date1 Date2 Variance Variance%
    Total Sales 10 20 10 50.00
    Sales have increased 50% compared with last quarter. (<- desired result)
    Today, I can show @1, @2 etc, but it only shows the columns under 'Date 1'.
    Any help is greatly appreciated!!
    Cindy

    First, if you design a report correctly (e.g., accurate and descriptive headers, etc.), you greatly reduce the need for an "explanation of data." It should be intuitive. If it is confusing to understand, the design of the report should be looked at. (Is this report illustrating what the user needs to see? Should I use a graph instead of a table or vice-versa? Am I reporting on the right metrics?)
    That being said, it may be helpful at times to have a narrative to give an overall view of what the report displays. For this, you have the Narrative View to explain whatever might make the report more useful to the end-user. For example, you may have them note certain conditions and what that would mean, etc. (Conditional formatting would be great for this, unless you are considering cross-column conditioning in which case conditional formatting doesn't work.*)
    But if you are looking for row-by-row explanations where you use the data in the row as part of the "explanation" (as inferred by your inclusion of @1 and @2, etc. in your question), then I think you may be trying to please your end-users a bit too much. Perhaps I have misunderstood you, so I shall end here and wait for your response.
    *Until 11g, that is. There are also workarounds...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Data source for Open Sales Order Variances.

    Hi Friends,
               I would like to know if there is any content avaible to report on Open sales order variances at a Customer PO level , it would be really appreciated if someone can send ur feed back , I need this info quite urgent.
    Thanks alot to all ,

    Hi Rakesh,
    You have to check the tables in R3 and then compare with the Datasources in BW.
    For Examples
    VBAK table in R3 for Sales Order on BW-2LIS_11_VAITM
    VBRK table in R3 for Billing iin BW-2LS_13*
    Check for that day how many sales order were there in VBAK table and there in BW.
    Rgds
    SVU123
    Edited by: svu123 on Jun 21, 2011 8:19 PM

  • Standard report for leading prod. order with variance  value  & qty.

    Hi Gurus,
    I am searching for  a standard Tcode to get the variance value/Qty against all the leading production orders which are settled in a particular period.
    Note: If a leading production order contains more than one sub orders then the qunatity of sub orders should merge with the leaing order and all the variance from individual sub orders should also merge with the leading production order.
    Please suggest the tables and fileds are used for storing the leading and non leading production order and its corresponding Planned/Actual and Variance values.
    Please guide me.
    Regards,
    Ramakant.

    Hi,
    Thanks for your early response.
    Actually i am unable to use tcode: KKBC_ORD rather able to use KKBC only.
    Using KKBC (Target/actual/production variance) and activating collective order from setting option only able to see the details for a particular leading production order only relating toa  particular period .
    My requirement is to display all the production orders settled in a particular period along with (Material code /order number/ Qty/Actual value and variance value).
    Note: If any leading order exists then that should be collective order i.e.(value and Qty should come against the leading order number).
    If there is any standard tcode exists please let me know else provide the tables and logic to bui;d up such a report.
    Regards,
    Ramakanta

  • Sorting a variance column in Webi report

    I have the need to sort a report by a variance that I have calculated in the report.
    For example, a report has inventory for end of prior month and current day. I am calculating the variance between the two columns. (how much inventory has changed by product)
    I need to be able to sort this table descending so that I can see the big inventory movers first.
    When I select the variance column, the sort options are disabled.
    I have also tried to save my function as a variable and that does not seem to help.
    I am using WEBI XI 3.1.
    Any ideas?
    Thanks in advance.

    Rodney,
    The "column" parameter is used as such:  ;col which is added to the end of your formula like this:
    ([Stock Quantity] Where([Calendar Day]=Max([Calendar Day]) In Report) - [Stock Quantity] Where([Calendar Day]=Min([Calendar Day]) In Report);col )
    When you add the ";col" portion it tells WebI to calculate by column (the alternative keyword to this parameter is "row").
    You mention that you'll lose your calculated column, however, instead of building a formula with a cell, you can also construct a local variable to the report executing the same formula.  This method is handy when you'll have the same computation to do in perhaps several tabs, and you just want to code once and reuse in multiple places within your report.  So, if you can somehow work on establishing a local variable with the same formula, then demote the table to a horizontal or vertical table, put your objects in that grid configuration, apply sorts, then reposition as crosstab, you might be able to achieve your desired results.
    Thanks,
    John

Maybe you are looking for