How to calculate the variance in PO price history?

hi
i hav standard report ME1P, since i need to do some modifications in this program i copied to Y prgrm,,,'
im getting all the values properly...
but my prblm is im not getting how to calculate the variance? im not getting the logic behid it...
can anybody expln me in breif plz....
Regards
Smitha

Hi Venu,
there is another way as well, however, you won't be able to see Variance and Variance% as a saperate keyfigure which is not under the period. Thats the reason I didn't mention it earlier.
What you can do is, Drag the period to the columns, Now create a structure that has the two keyfigures std price, moving price. Here if you add Variance and Variance%, Then these CKF's would come under period as well, which you don't need. And the system won't allow you to add these CKF's outside this structure. The reason being because the interpretation of the data then wouldn't make any sense here. You can create a new structure as well with these CKF's but they would become a subpart of your previous structure.
choose the required characteristics in the Rows section. Save it.
Let us know, Sorry man, can't help u much at this problem.
regards,
Sree.

Similar Messages

  • How to calculate the variance

    good day.. i am an end-user using oracle desktop discoverer 4, how will i calculate the variance in a crosstab as follows:
    ......... total cost total cost ........
    project draft Original variance
    project1 1000 400 500
    project2 5000 1000 4000
    thanks and regards

    Hi Venu,
    there is another way as well, however, you won't be able to see Variance and Variance% as a saperate keyfigure which is not under the period. Thats the reason I didn't mention it earlier.
    What you can do is, Drag the period to the columns, Now create a structure that has the two keyfigures std price, moving price. Here if you add Variance and Variance%, Then these CKF's would come under period as well, which you don't need. And the system won't allow you to add these CKF's outside this structure. The reason being because the interpretation of the data then wouldn't make any sense here. You can create a new structure as well with these CKF's but they would become a subpart of your previous structure.
    choose the required characteristics in the Rows section. Save it.
    Let us know, Sorry man, can't help u much at this problem.
    regards,
    Sree.

  • How to calculate the monthly variances in the query

    Hi Gurus;
    I need to design a query which calculates the variance of costs with respect to the previous month. I want to select a fiscal period range and only show the variances for these selected periods. However when I enter a range the calculations for the first period dont work. Also If I add the fiscal period characteristic over the structure the formulas are not calculated for the previous period.
    Need help?
    How can I calculate the variance of costs with respect to previous months and display them monthly?
    Thanx a lot in advance,
    Duygu Sile

    Hello Duygu,
    restrict the original cost keyfigure with a variable which is based on fiscal period (this will be actual cost). And then create a new keyfigure(copy of original keyfigure) and use same variable but in detail of restriction use -1 for offset( this will be previous). And then define a new formula and subtract actual from previous or opposite)
    Sarhan.

  • Hi frinds ,how to calculate the  totals in smartforms

    1)how to calculate the  totals in smartforms .

    Hi,
        To calculate totals and sub totals in sap scripts you can use subroutines.
    Say if you have to add the unit price (KOMVD-KBERT) then in the main window whereever tat value is picked write this routine
    /: DEFINE &TOT_PRICE&
    /: PERFORM F_GET_PRICE IN PROGRAM /:USING &KOMVD-KBERT& /:CHANGING &TOT_PRICE& /:ENDPERFORM
    Then write the variable where ever you want it to be printed (mostly it will be in footer window)
    Then create subroutine pool program and you have to write the code.
    FORM F_GET_PRICE tables int_cond structure itcsy
    outt_cond structure itcsy. data : value type kbert.
    statics value1 type kbert.
    Read int_cond table index 1.
    value = int_cond-value.
    value1 = value1 + value.
    Read outt_cond table index 1.
    outt_cond-value = value1.
    Modify outt_cond index 1.
    ENDFORM.
    regards..

  • Calculate the variance between quarters and store it in a scenario

    Hi,
    Can anyone suggets how I can write a rule to calculate the variances between quarters, Qtr1 vs Qtr2, Qtr2 vs Qtr3 etc, and store them in a scenario so that I dont calculatethem on a report ?
    Thanks,
    IK

    Hi. Why don't you want to do this on the report - it's much easier and you can get favorable/unfavorable comparisons? But, if you want to do the rule, here's the approach.
    Create the scenario with QTD as the frequency so you don't have monthly periods
    Limit the rule to run just for the scenario and don't run any other rules for the scenario
    Use a select case to determine which period (Q1, etc.) is being calc'd to populate variables that contain the source period and year (for going back a year to Q4).
    Write the rule to compare data from current quarter in the real scenario to the prior quarter in the real scenario. Something like HS.Exp "A#ALL = A#ALL.S#Actual.P#Jun.W#QTD - A#ALL.S#Actual.P#Mar.W#QTD. But, you may want to adjust this to calculate a favorable/unfavorable variance on the revenue/expense accounts, so you'd need to loop through the accounts and look at the account type.
    You'd want to rerun the rule at all value members for both base entities and parent entities. May need to clear all existing data (HS.Clear "A#ALL") in the scenario/year/period/entity/value first.
    Do a consolidate all on the scenario to pull the data across and do the math
    Have fun, but you really should still with doing the comparison in the reports.
    Eric

  • KKS2 can't calculate the variance in the production order

    We have some simi-finished product orders.  All these simi-finished products  were produced in previous period and got receipted into the warehouse. However, for some reason we don't know, there are still some cost balance remain in the orders themselves, although they had been settled in previous period. 
    So far I only found these simi-finished products were not maintained with Variance Keys.
    So I maintained the variance keys for the orders. however, it doesn't work, when I run KKS2 to calculate the variance in the order, the order's Target Costs, Actual Cost and Allocated Actl Costs are all zero. So the variance are zero. In fact, that order's variance are -123.8, for example. Since the variance calculated by KKS2 is zero, there is no reference for KO88 to settle this order. The variance -123.8 will always remain in the order.
    I can't close these orders for the cost balances are not zero.
    Anyone could give me some suggestions to settle the variance?
    Thanks,
    Jim
    best regards.

    Hi
    Because the var keys were not existing on the order, it did not calculate the variance... However, once you maintain them in the order, KKS2 should prove successful... Did you calculate the variance in the correct period after maintaining the variance keys?
    How many such orders are there and whats the balance on these orders?
    Note that, to settle variance to FI, it is not necessary to calculate variance in KKS1/2... KKS1/2 only helps you to settle variance to COPA.... Your FI will still be updated with variance, even if you do not caluclate KKS1/2
    So, if the no of cases and the amount involved is not much, you can think of executing KO88 for them and then manually update values in COPA for these orders for record type C... However, keep this as a last option.... Ideally, once you maintain variance keys, variance should get calculated
    Regards
    Ajay M

  • To calculate the variance percentage

    In below given query , i want to calculate the variance between Forecast and sale.
    Here
    FRCST - Forecast
    SALE - Sale
    FRCST-sale - Difference between forecast and sale
    Now i want to display one more column i.e Variance
    I need a statement to caluclate the DIFF / FRCST. The result should be displayed according the conditions :
    1) If Forecast is Zero, and Sale is Zero - then result should be No Forecast and Sale for the item
    2) If Forecast is Zero, and sale is not Zero, then Sale against Nil Forecast
    3) If Sale is Zero and Forecast is not Zero then No sale against Forecast
    4) If difference between Forecast and Sale is zero (Both are non zero numbers) then No Variance
    5) If Forecat and Sale difference is not Zero then DIFF / FRCST
    The problem arise when the FRCST is Zero and Sale is non zero then divide by zero occurs
    Kindly guide me on this..
    SELECT ITEM_NAME, NVL(FRCST,0) FRCST, NVL(SALE,0) SALE, NVL((FRCST-SALE),0) DIFF
    FROM
    SELECT DISTINCT ITEM_NAME
    FROM OM_ITEM
    WHERE ITEM_CODE LIKE 'F%'
    AND ITEM_FRZ_FLAG_NUM<>1
    SELECT FYEAR, FMNTH, FITEM_NAME,FRCST
    FROM FORECAST
    WHERE FYEAR||'-'||FMNTH = :YM
    SELECT SYEAR, SMNTH, SITEM_NAME, SALE
    FROM SALE
    WHERE SYEAR||'-'||SMNTH = :YM
    WHERE ITEM_NAME = FITEM_NAME(+)
    AND ITEM_NAME = SITEM_NAME(+)
    ORDER BY 1

    I had changed the query as given below . Its giving me result, but how could i convert the case statement into decode. Is there any simple way for this:
    SELECT
    ITEM_NAME, FRCST, SALE, DIFF,
    (CASE
    WHEN FRCST = 0 AND SALE = 0 THEN 'No transaction '
    WHEN FRCST = 0 AND SALE <>0 THEN 'Sale against Nil Forecast'
    WHEN FRCST<> 0 AND SALE = 0 THEN 'No Sale against Forecast'
    WHEN FRCST<>0 AND SALE<>0 AND DIFF=0 THEN 'No Variance'
    ELSE TO_CHAR(ROUND((DIFF/FRCST),2))||'%'
    END)VARIANCE
    FROM
    SELECT ITEM_NAME, NVL(FRCST,0) FRCST, NVL(SALE,0) SALE, NVL((FRCST-SALE),0) DIFF
    FROM
    ( SELECT DISTINCT ITEM_NAME FROM OM_ITEM
    WHERE ITEM_CODE LIKE 'F%'
    AND ITEM_FRZ_FLAG_NUM<>1
    ( SELECT FYEAR, FMNTH, FITEM_NAME, FRCST
    FROM FORECAST
    WHERE FYEAR||'-'||FMNTH = :YM
    ( SELECT SYEAR, SMNTH, SITEM_NAME, SALE FROM SALE
    WHERE SYEAR||'-'||SMNTH = :YM
    WHERE ITEM_NAME = FITEM_NAME(+) AND ITEM_NAME = SITEM_NAME(+)
    ORDER BY 1
    )

  • How to read the Variance Analysis report S_ALR_87013139,  Pdt cost by Order

    Hi,
    Could someone tell me how to read the variance analysis report, S_ALR_87013139 - Cumulative for product cost by order. The report has the following fields, Target (Debits),     Actual (Debits),     Scrap,     Var. Without Scrap,     Work in Process(WIP),     Control Costs.
    I am looking to find how the numbers add up.
    Thanks for your help.
    Ram
    Message was edited by:
            Ram R

    Thanks Sridhar,
    When I analyse the report S_ALR_87013139 - Cumulative , for a product for a period (with no scrap), I get the following
    Target (Deb) -   46,855.55
    Act (Deb) - 58,315.87
    Scrap - 0.00
    Var W/O- Scrap -  11,269
    WIP- 0
    Control Cost - 0
    Here Actual - Target is not equal to Variance. What could be the issue?
    Could you please tell me how SAP would update this report  with target & actual costs with respect to open production orders, carried over from previous periods.
    Thanks,
    Ram

  • How to calculate the unit for RATE?

    Hey All,
    I am not sure if there is something standard for this or not.
    I am calculating the 'Rate' by using 'Value/Amount' and 'Quantity' as follows -
    Rate == Value /  Quantity
    I need to calculate the unit for the rate as below -
    Rate unit == Value unit (Currency) /  Quantity unit (Base_uom) 
    (for example -
    if value is 1000 USD and quantity is 10 TO then Rate should come out as 100 USD / TO)
    Could anyone please suggest how to calculate the unit in this case?
    Many Thanks!
    Tanu

    Hi,
    Go through the below link it may give some idea
    http://help.sap.com/saphelp_nw04/Helpdata/EN/19/1d7abc80ca4817a72009998cdeebe0/content.htm
    Regards,
    Marasa.

  • How to calculate the Current APC (Acquisition and Production Cost)

    Hi,
    Please help me how to calculate the Current APC.
    The Current APC (Acquisition and Production Cost) is a calculated value based on Previous Year Acquisition balance plus any value changes up to the time of the report.
    The Asset History Report (RAGITT_ALV01) calculates the Current APC value &
    The Current APC can also be found in the Asset Explorer (transaction code AW01N) under Country Book 10/ Posted Values tab then the line “Acquisition Value” and column “Posted values”.
    I suppose that the calculation of Current APC (Acquisition and Production Cost) is getting done in the GET statements in the report RAGITT_ALV01, but unable to find the actual logic.
    Please help me.
    Thanks in advance,
    Satish

    Hi,
    you'll find the logic in fm FI_AA_VALUES_CALCULATE
    A.

  • How to calculate the Current APC

    Hi,
    Please help me how to calculate the Current APC.
    The Current APC (Acquisition and Production Cost) is a calculated value based on Previous Year Acquisition balance plus any value changes up to the time of the report.
    The Asset History Report (RAGITT_ALV01) calculates the Current APC value &
    The Current APC can also be found in the Asset Explorer (transaction code AW01N) under Country Book 10/ Posted Values tab then the line “Acquisition Value” and column “Posted values”. 
    Thanks in advance,
    Satish

    Hi,
    I suppose that the calculation of Current APC (Acquisition and Production Cost) is getting done in the GET statements in the report RAGITT_ALV01, but unable to find the actual logic where it is being done.
    Please help me.
    Thanks in advance,
    Satish

  • How to calculate the Daily Call Volume

    Hello,
    Can anyone please advise how to calculate the daily call volume in a contact center - the counts of the calls terminated in ICM ?
    Is there any webview report or a SQL query which provides the count ?
    Many thanks in advance for the help!
    Thanks & Regards,
    Naresh

    The ICM software generates a Termination_Call_Detail record for each call that arrives at the peripheral. From This report you can get the number of calls to ICM as well as the call details.
    To get the report run this sql query
    select * from dbo.t_Termination_Call_Detail where convert (varchar(10), DateTime, 101) = '12/03/2010'

  • How to calculate the quota base quantity in quota arrangement?

    Hi all,
    As we all know, when a new supplier is added in the quota arrangment, we take the help of quota base qunatity so that the new supplier does not get any unfair advantage over the existing suppliers. Would you please help me on how to calculate the quota base quantity or on what basis the quota base quantity is calculated?*
    Regards,
    Ranjan

    Dear,
    Quota arrangement divides the total requirements generated over a period of time among the sources of supplied by assigning a quota.
    Quota u2013 quota is equal to a number and its represents the proportionate of requirements. Total quota of all the vendors is equal to 100% of requirements.
    This quota arrangement is also specific to material and plant level.
    Quota rating = quota allocate quantity + quota base quantity / quota.
    Quota based quantity used only when a new vendor introduced.
    In the as on date situation, the minimum quota ratings will considered as preferred vendor.
    The 2 vendors has 2 same quota rating, the vendor who is having the highest quota will considered first.
    In the running quota, a new source of supply is included. (In situation of short supply) including a new source not means to reduce the quota for existing.
    Regards,
    Syed Hussain.

  • How to calculate the individual sums of multiple columns in a single query

    Hello,
    Using Oracle 11gR2 on windows 7 client. I have a question on calculating sum() on multiple columns on different columns and store the results in a view. Unfortunately I could not post the problem here as it keeps on giving error "Sorry, this content is not allowed", without telling where or what it is! So I had to post it in the stack-overflow forum, here is the link: http://stackoverflow.com/questions/16529721/how-to-calculate-the-individual-sums-of-multiple-columns-in-a-single-query-ora
    Will appreciate any help or suggestion.
    Thanks

    user13667036 wrote:
    Hello,
    Using Oracle 11gR2 on windows 7 client. I have a question on calculating sum() on multiple columns on different columns and store the results in a view. Unfortunately I could not post the problem here as it keeps on giving error "Sorry, this content is not allowed", without telling where or what it is! So I had to post it in the stack-overflow forum, here is the link: http://stackoverflow.com/questions/16529721/how-to-calculate-the-individual-sums-of-multiple-columns-in-a-single-query-ora
    Will appreciate any help or suggestion.
    ThanksLooks like you want a simple group by.
    select
              yr
         ,      mnth
         ,      region
         ,     sum(handled_package)
         ,     sum(expected_missing_package)
         ,     sum(actual_missing_package)
    from test
    group by
         yr, mnth, region
    order by      
         yr, mnth, region;I wouldn't recommend storing your data for year / month in 2 columns like that unless you have a really good reason. I would store it as a date column and add a check constraint to ensure that the date is always the first of the month, then format it out as you wish to the client.
    CREATE TABLE test
         year_month                              date,
        Region                     VARCHAR2(50),
        CITY                       VARCHAR2(50),             
        Handled_Package            NUMBER,       
        Expected_Missing_Package   NUMBER,   
        Actual_Missing_Package     NUMBER
    alter table test add constraint firs_of_month check (year_month = trunc(year_month, 'mm'));
    ME_XE?Insert into TEST (year_month, REGION, CITY, HANDLED_PACKAGE, EXPECTED_MISSING_PACKAGE, ACTUAL_MISSING_PACKAGE)
      2  Values (to_date('2012-nov-12', 'yyyy-mon-dd'), 'Western', 'San Fransisco', 200, 10, 5);
    Insert into TEST (year_month, REGION, CITY, HANDLED_PACKAGE, EXPECTED_MISSING_PACKAGE, ACTUAL_MISSING_PACKAGE)
    ERROR at line 1:
    ORA-02290: check constraint (TUBBY.FIRS_OF_MONTH) violated
    Elapsed: 00:00:00.03
    ME_XE?Insert into TEST (year_month, REGION, CITY, HANDLED_PACKAGE, EXPECTED_MISSING_PACKAGE, ACTUAL_MISSING_PACKAGE)
      2  Values (to_date('2012-nov-01', 'yyyy-mon-dd'), 'Western', 'San Fransisco', 200, 10, 5);
    1 row created.
    Elapsed: 00:00:00.01
    ME_XE?select
      2        to_char(year_month, 'fmYYYY')    as year
      3     ,  to_char(year_month, 'fmMonth')   as month
      4     ,  Region
      5     ,  CITY
      6     ,  Handled_Package
      7     ,  Expected_Missing_Package
      8     ,  Actual_Missing_Package
      9  from test;
    YEAR         MONTH                REGION                         CITY                    HANDLED_PACKAGE EXPECTED_MISSING_PACKAGE ACTUAL_MISSING_PACKAGE
    2012         November             Western                        San Fransisco                       200                       10                      5
    1 row selected.
    Elapsed: 00:00:00.01
    ME_XE?Then you have nice a nice and easy validation that ensures you data integrity.
    Cheers,

  • How to calculate the average inventory in ABAP

    Dear All,
    Please find the below formula and this formula how to calculate the Average inventory at value.Please let me know the abap base tables and the corresponding fields.
    Formula
    Inventory Turnover = Cost of Goods Sold (COGS) / Average Inventory at value.
    Thanks
    Regards,
    Sai

    Hi Arivazhagan,
    Thanks for your quick response .
    The field MBEWH from the table is fulfill the average inventory at value.
    For Eg :I want to calculate Inventory Turnover = Cost of Goods Sold (COGS)/
    Average Inventory at value.
    so shall i take Inventory Turnover = Cost of Goods Sold (COGS)/MBEWH
    The above formula will meet my requirement to find the average inventory Turnover.
    Thanks
    Regards,
    Sai

Maybe you are looking for

  • Macbook pro wont open

    I downloaded Lion, but after successfully installing it and restarting the my MacBook Pro, it wont open anymore. What will I do? Please help.

  • Purchase order - Freight vendor

    Hello guys, In PO, when we go in price condition details (Freight conditions), we have a field called 'Vendor' in case Freight Vendor is not the Vendor of the PO. Is this field can only be filled manually or is this a way to fill this field automatic

  • Compose Applicatio​n Icon brings up call options instead of texting options

    From the home screen on my BlackBerry Curve 8330, I open the "Compose" icon and select the contact (from my address book) that I want to text message.  Sometimes, a message box will come up asking "SMS text which number?", sometimes it will ask "Call

  • Function to generate navigation path

    if someosy has a solution to the belowsaid problem, please help: Input string = "/kronos/TKC4.x/TimeKeeper Central" should produce: <SPAN class=emoxsha3> eDiagnostics > TKC4.x > TimeKeeper Central</SPAN> I've used String tokenizer but not getting the

  • Filter by Dual Slider ?

    Hi all , I want to filter by Dual Slider Value   when i changed range of slider value then  Column Chart  value would be  change  in range of Slider Value .How it possible in Xcelsius2008  please help me and give me a suggestion  step by step . Thank