Calculating NPV

Dear all,
I get some large amount of data through a batch process from mainframe. I need to calculate NPV (Net Present Value), once per day. When I was searching through sites and posted in some other forums, I could get two replies
1) Use OLAP DML to calculate npv.
How should I do this? I understand that I cannot use an OLAP function just like a select clause. And another point, how will I trigger this every day certain time (like a unix cron)? Please give some links.
2) The spreadsheet technique:-
http://download.oracle.com/docs/cd/B19306_01/server.102/b14223/sqlmodel.htm#sthref1943
Which one I should adopt considering efficiency ? Is there any other way such as Pro*C could be used for the same purpose?
Please help with the best architectural decision to go about it, thanks
Warmest regards,
Ravion

Not sure what you are really asking?
NPV is a function provided within OLAP DML. You can use it directly within a custom measure or embed it within an OLAP DML program that can also be called directly from an custom measure. AWM with the Excel calculation builder utility (on the OLAP OTN Home Page) will allow you to quickly and easily add a custom measure to your AW.
I would look at the worked examples in the OLAP DML Help Guide. This will explain how to use the NPV function. Obviously you will need to create a new cube that contains all your main dimensions except time since the result returned by the NPV function is dimensioned by all the dimensions of your cashflow model except its time dimension. If your cashflows model is dimensioned only by the time dimension then NPV will return just a single value.
The following example explains using DML statements how to use the NPV function by creating a dimension called project, add values to it, and create a variable called cflow, which is dimensioned by year and project.
DEFINE project DIMENSION TEXT
MAINTAIN project ADD 'a' 'b' 'c' 'd' 'e'
DEFINE cflow VARIABLE DECIMAL <project year>When you assign the following values to CFLOW,
------------------------CFLOW----------------------
             -----------------------PROJECT---------------------
YEAR             a          b          c          d          e
Yr95           -200.00    -200.00    -300.00    -100.00  -200.00
Yr96            100.00     150.00     200.00      25.00    25.00
Yr97            100.00     400.00     200.00     100.00   200.00Using AWM these values would need to be stored in a relational table and then mapped to your cashflow cube. To view the results of an NPV calculaltion you could use the following statement:
REPORT NPV(cflow, .08, year)uses a discount rate of 8 percent to create the following report of the net present value of the cflow data.
NPV(CFLOW,
PROJECT        .08, YEAR)
a                  -21.67
b                  281.82
c                   56.65
d                    8.88
e                   -5.38within AWM this would be used to drive a custom formula where the formula itself would simply be the statement NPV(cflow, .08, year). You could even parameterise the middle value from a dimension to provide a series of NPV scenarios.
Hope this helps
Keith Laker
Oracle EMEA Consulting
BI Blog: http://oraclebi.blogspot.com/
DM Blog: http://oracledmt.blogspot.com/
BI on Oracle: http://www.oracle.com/bi/
BI on OTN: http://www.oracle.com/technology/products/bi/
BI Samples: http://www.oracle.com/technology/products/bi/samples/

Similar Messages

  • FI Settings before calculating Pre-investment analysis

    Dear Experts,
    In my project , we are going to implement Pre Investment Analysis. I have done the settings required for pre-investment analysis calculation in IM, can anyone throw some light on FI/CO settings related to preinvestment analysis calculation in IM.
    and can anyone give me the requred data for pre investment calculation.
    Error I m getting is :
    "Internal rate of return cannot be calculated due to the order of data"
    Pls. guide.
    Thanks,
    Sanju.

    Hi sanju,
    have u done the following steps?
    1- Define interst rate for the specific currency
    2- define the value date for NPV and IRR
    3- Define evaluation type (in market risk management)
    4- Define reference interst rate and asign the proper calculation method
    5- Define yield curve type
    then check in the variant in IM.
    Regards
    ashis

  • Valuation of foreign exchange forward with NPV split for interest vs FX impact?

    Hello,
    I have the following business requirement regarding the accounting treatment of the valuation of a foreign exchange forward deal :
    1. during the lifetime of the deal
    step1. valuation
              the deal should valued at its NPV using the swap points curve (table AT15) => that gives the "VALUE"
         BUT
    step 2. the posting of the deal's value should be SPLIT into TWO components
                   a) component 1 = linearly amortized swap points since deal date +2   until valuation date     => to be classified to interest result
                   b) component 2 =  VALUE - component 1                                                                                => to be classified to unrealized fx result
    Comment.
    So, in fact it is some hybrid combination of the two SAP standard valuation methods
                   a) spot/spot + swap accrual + swap valuation (but NO NPV calculation) 
                   b) NPV calculation (without any split in components)
    2. at maturity
         realized fx result :     calculation based on deal spot rate versus spot rate at maturity
         interest result :          calculation based on deal spot rate vs deal forward rate
    Don't see how this "mixted behavior" can be achieved by customizing the valuation process.
    Please help.
    Best regards,
    Carl

    Hi Carl,
    In order to use the 2step valuation during the lifetime of forex contracts, you need to combine 2 valuation steps in your Position Management Procedure:
    1. step 6 Rate valuation for forward exchange transactions: spot-spot
    2. step 4 Security valuation
    Additonally, if the NPV should be calculated based on swap points from AT15, you need to apply BAdI JBA_SFGDT that is able to adjust TPM60 or/and reports in MRA if needed. See SAP note 0000940562 for details (and also 1941874 for extrapolation issues).
    As far as i know, at maturity you can only have 1flow of gain/loss by using standard SAP Solution.
    Best regards,
    Piotr

  • NPV of FX Forward Contracts

    Hi coleagues
    We currently have forward contracts 60A and forward hedge accounting transactions (60B). With the current configuration we are able to execute NPVs for 60Bs (hedge accounting transactions) but on 60As NPVs are  not generated. I would like to find out why are NPs are not generated on 60As, what configure can i change to allow NPVs to be calculated on 60As as well. Secondly From a business poiint of view is NPV calculation of forward contracts(60As) different from hedge accounting forwards transactions (60B)
    Thank you in advance
    Victor
    Edited by: Victor Nkomo on Jul 9, 2011 10:26 AM

    Hi Victor,
    This is really surprising. NPV for FX forward doesn't involve huge calculation routines and hence should be very easily configurable in the system. Though, it is difficult to find the reason without having a look at the configuration, I would give you some pointers to verify.
    1) Check the detailed log to find if the cashflows are even getting selected.
    2) If the cashflows are not selected, check the cashflow indicator with these cashflow types in the IMG setting for Market Risk Analyzer.
    3) Check if you are executing NPV calculator on the value date of the deal. If that is the case, then you have to check the include horizon flow flag in the evaluation type which you may view using CFMEVAL transaction.
    Regards,
    Jitesh

  • BI + SEM 6.0 Financial functions IRR, NPV

    Hi everybody!,
    I'm looking for the older financial functions like IRR, NPV calculations. Somebody told me that they are not longuer in BI unless you install SEM 6.0.
    We've just install it this morning but the functions doesn't appear when I try to create a planning function of type formula (in financial functions).
    does it needs any customizing after SEM 6.0 install? are these funcions in another location?
    thanks for your help!

    Hi Lars,
    It seems not all the planning function from SEM BPS are available in BW BPS. Please check the links below: -
    what is the difference between BW 3.5 BPS and SEM BPS 4.0
    BW- BPS and SEM- BPS
    SEM-BPS VS BW-BPS
    BCS Doc
    Regards,
    SK

  • Planning functions IRR, NPV in BI + SEM 6.0

    Hi everybody!,
    I'm looking for the older financial functions like IRR, NPV calculations. Somebody told me that they are not longuer in BI unless you install SEM 6.0.
    We've just install it this morning but the functions doesn't appear when I try to create a planning function of type formula (in financial functions).
    does it needs any customizing after SEM 6.0 install? are these funcions in another location?
    thanks for your help!

    Dear Thomas,
    A customer asked for the upgrade of SEM from 3.5 to 6.0. Do you have any documents especially on testing for CPM.

  • Portfolio Analyzer - Calculation of TWRR

    Hi,
    I have a Commercial paper for USD 2Million with a interest rate of 9% invested on Jan 1, 2010 and maturing on Feb 7, 2010.. I ran PAEP1 PAEP2 transactions which calculated all the key figures (including Time weighted Rate of Return - TWRR). When I run the AIS_STDREP report, it shows that the TWRR is                 -59.98667.
    My question is:
    1. The TWRR should be in the viscinity of 9%, why is the system showing such a huge figure of -59.98667?
    2. Why is this figure negative?
    3. In the Results database table RDBPA_NSUM_GEN the TWRR calculated is -5.998667, but in the AIS_STDREP report is showing it as 10 times that value.
    I would appreciate if anyone can explain how the TWRR is calculated and if there is any OSS note which explains this.
    I know the formula for calcualtion of TWRR as given in SAP documentation in Help.sap.com, but I want to know how it is actually calculated. In the above example, there are only two cash flows. The initial discounted amount 1,981,669.56, when the investment is made and the final repayment of 2,000,000 at the end of the period. Typically the formula is Nominal value at the end of the period divided by Nominal value at the beginning of the period, in which case it should return 9% as the TWRR. Is my understanding correct? Or is the system using the LIBOR rate (attached to the yield curve given in the Evaluation type) to calculate the TWRR?
    In the Evalaution type p Portflio analyzer TAB, I have selected 'Nominal Value' out of the three choices given in that (Nominal value, Nominal value plus interest receivable and NPV(default). Is this correct?
    I saw in another thread, Vinodh mentioned that we should use 'Calculate Theoretical price' in the 'Evaluation Control' TAB. . But since I am not using the Valuation Rule, this option is not available in the General Information' of the Evaluation type.
    I would appreciate any help in this matter.
    Thanks
    Kalyan.

    Hi Kaylan,
    perhaps documentation giving formula under the following link can help you check how TWRR calculates: http://help.sap.com/erp2005_ehp_04/helpdata/EN/01/84a642fafec611e10000000a1550b0/content.htm.
    Hence, simplified, the calculation for TWRR should look like (( PAPOSCC(i) - 2,000,000 ) / PAPOSCC(i-1) - 1) * 100.
    The result is probably shown in scientific notation, i.e. like -5.998667E+01, so this should correspond to-59.98667.
    BR,
    Tomislav

  • Yield Curve Type Assignment in NPV run (TPM60)

    Hi All,
    Is the YCT type used in calculation bases of NPV based on the evaluation type I have used in TPM60 parameter? As seen in the file I have attached here, my evaluation type only contains YCT 9000 but there's one month-end wherein YCT 9050 was used & then in succeeding month-end it's gone.
    Appreciate receiving explanation as to when the YCT gets assigned/used in NPV computation.
    Thanks!
    Chaikaru

    Hello Chaikaru,
    Not able to open your attachment. Can attach a screenshot.
    Also to answer to your question, Yes Yield Curve is the main parameter in the Evaluation type in the calculation of NPV.
    Can give more details if you could provide the screenshot of NPV log.
    Regards,
    Nikhil

  • Tax Calculation of free goods

    Hi
    We have a requirement where the client wants only VAT to be posted in GL accounts and not the price.For this I tried free goods condition type R100 with AltCBV 28.But the VAT value is also coming zero. I want the VAT to be calculated on Pricing condition and then give 100% discount.
    Apart from this I also tried to make pricing condition statistical and calculate VAT on it but then also system gives zero value for VAT.
    Also wondering if the scenario can be addressed with Free of Change Dellivery.

    Hi
    Normally in scenario where you are dealing with samples , there are cases you have to charge only TAXES / EXCISE part.
    Here my SUGGESTION is you can handle this through a simple sales order process, where you have to configure a new pricing procedure.
    1. Create a new document type to handle samples.
    2. Create a New pricing procedure where you can keep the basic price condtion as Statistical and rest all same as wht is is there your main pricing procedure. Just juggle with the TO-FROM to capture the TAX part in the total.
    3. Doc pricing procedure will help you to pick the new Pricing procedure
    4. Now Process this as a normal sales order
    5. This new document type will help you to have a proper reporting.
    The only constraint here is USER has to punch a fresh order seperately for such scenario. He cannot give a free good in the same sales order which is used as standard.
    The other way is you can configure a FREE GOOD Determination procedure as suggested  where you need to then have your Single pricing procedure accomodating the same scenario.
    Thanks
    RB

  • IF statement in Calculated Field for Share point, doesnt calculate sum in my Excel Pivot table.

    Hi Everyone
    I used this in SP calculated column field.
    =IF([Shift Sched]="1pm to 10pm","0",IF([Shift Sched]="2pm to 11pm","1",IF([Shift Sched]="3pm to 12am","2",IF([Shift Sched]="4pm to 1am","3",IF([Shift Sched]="5pm to 2am","4",IF([Shift
    Sched]="6pm to 3am","5",IF([Shift Sched]="7pm to 4am","6",IF([Shift Sched]="8pm to 5am","7",IF([Shift Sched]="9pm to 6am","8",IF([Shift Sched]="10pm to 7am","8",IF([Shift
    Sched]="11pm to 8am","7",IF([Shift Sched]="12pm to 9am","6",IF([Shift Sched]="1am to 10am","5",IF([Shift Sched]="2am to 11am","4",IF([Shift Sched]="3am to 12pm","3",IF([Shift
    Sched]="4am to 1pm","2",IF([Shift Sched]="5am to 2pm","1",IF([Shift Sched]="6am to 3pm","0",IF([Shift Sched]="7am to 4pm","0",IF([Shift Sched]="8am to 5pm","0",IF([Shift
    Sched]="9am to 6pm","0",IF([Shift Sched]="10am to 7pm","0",IF([Shift Sched]="11am to 8pm","0",IF([Shift Sched]="12pm to 9pm","0"))))))))))))))))))))))))    
    it was able to work fine however my issue is when i extract the information to excel and use a pivot table the table is not able to calulate the sum of the value for this field. Can you please help me with this. this is for an Attendance traker for Night
    Differential pay for employees. they create a daily log of their shift schedule and if i summarize this in pivot the value in the calculated field for this is not getting the sum.
    Thanks,
    Norman

    Hi Everyone
    I used this in SP calculated column field.
    =IF([Shift Sched]="1pm to 10pm","0",IF([Shift Sched]="2pm to 11pm","1",IF([Shift Sched]="3pm to 12am","2",IF([Shift Sched]="4pm to 1am","3",IF([Shift Sched]="5pm to 2am","4",IF([Shift
    Sched]="6pm to 3am","5",IF([Shift Sched]="7pm to 4am","6",IF([Shift Sched]="8pm to 5am","7",IF([Shift Sched]="9pm to 6am","8",IF([Shift Sched]="10pm to 7am","8",IF([Shift
    Sched]="11pm to 8am","7",IF([Shift Sched]="12pm to 9am","6",IF([Shift Sched]="1am to 10am","5",IF([Shift Sched]="2am to 11am","4",IF([Shift Sched]="3am to 12pm","3",IF([Shift
    Sched]="4am to 1pm","2",IF([Shift Sched]="5am to 2pm","1",IF([Shift Sched]="6am to 3pm","0",IF([Shift Sched]="7am to 4pm","0",IF([Shift Sched]="8am to 5pm","0",IF([Shift
    Sched]="9am to 6pm","0",IF([Shift Sched]="10am to 7pm","0",IF([Shift Sched]="11am to 8pm","0",IF([Shift Sched]="12pm to 9pm","0"))))))))))))))))))))))))    
    it was able to work fine however my issue is when i extract the information to excel and use a pivot table the table is not able to calulate the sum of the value for this field. Can you please help me with this. this is for an Attendance traker for Night
    Differential pay for employees. they create a daily log of their shift schedule and if i summarize this in pivot the value in the calculated field for this is not getting the sum.
    Thanks,
    Norman

  • If statement in Custom Calculation Script

    I have 16 fields and if even one of them ="1" I have to list it in another field.  I do not want to count or sum.  If one of those fields has a 1 in it I just want the other field to display Y and if none have a 1 I want that field to display N.
    Please help.
    Thank you in advance~mjc

    You need to write a compound logical statement to evaluate all of the values and that statement needs to evaluate to true or false.
    Do you know how to write JavaScript?
    Do you know how to enter JavaScript calculations into a form field?
    For custom calculation of the text field I could write something like:
    // define an array of the field names to check
    var aNames = new Array("Text1", "Text2", "Text3", "Text4",
    "Text5", "Text6", "Text7", "Text8",
    "Text9", "Text10", "Text11", "Text12",
    "Text13", "Text14", "Text15", "Text16");
    // define a logical variable that is true if any field has a value of 1 - default is false or no field has a value of 1
    var bMatch = false;
    // value for text field
    var TextValue = 0;
    // logical value of field being equal to 1 test
    var FieldIs1 = false;
    // loop through all the fields and test the fields value
    for(i = 0; i < aNames.length; i++) {
    // logically OR the result of field i value equal to true with bMatch
    // get the value of field
    TextValue = this.getField( aNames[i] ).value;
    // test the value of the field
    FieldIs1 = Number(TextValue) == 1
    // logically OR the 2 values
    bMatch = FieldIs1 | bMatch;
    } // end field processing
    // set the field value
    if(bMatch == true) {
    event.value = "Y";
    } else {
    event.value = "N";
    You will need to change the field names to match your fields. You can add more field name or remove field names as needed and the script will adjust for the number of field names.

  • If statement in calculated batch characteristic (dependencies)

    I have a little problem with calculating a certain batch characteristic.
    The situation is the following:
    I have batch char A, batch char B and batch char C. Batch char C is the result of the sommation of char A and B. The problem I have now is that batch char C only should be calculated when batch char A and B are different from 0.
    I have a custom build interface that imports QM data to the batch chars. Default, all my batch chars are set to 0 so if I just say $self.charC = $self.charA + $self.charB, I always get a value.
    Is it possible to some sort of IF statement to check if the value is different from 0?

    Dear,
    You need to try with variant table
    take all the combination and enter in a variant table and see the result...it works
    example
    A     B      C
    0      0      space
    0      1      sapce
    1      1      space
    I hope you got it

  • Pension not calculated when EE is hired mid-month

    Hi All
    Please suggest for the following....
    When an Employee is hired in the middle of the month, the system doesn't calculate Pension Contribution.
    Like if an EE is hired on 10th April. The system will calculate all payments & deductions, but it is not calculating the Pension Contributions.
    I am maintaining IT 169, 171 for Pension Contribution.
    The problem I found behind this is.....(WIth the help of an ABAPer)
    -: System checks the Payroll Period Start Date with the Org. Assignment start date. When it doesnu2019t match, the system does not calculate the Pension Contribution.
    For the time being I solved this through the following action -: In debugging, I canceled this condition (skipped this check). Then it calculated the Pension Contribution.
    But, this is not the right solution for achieving that as we are changing standard SAP coding.
    Please suggest any solution for the same.
    Thanks & Regards

    If your schema has p0169 with BEG that will happen, try put below Param1 which fits your requirement.
    BEG                                                                               
    Infotype records are evaluated on the payroll period begin date.        
    No changes within the current payroll period are taken into             
    consideration.                                                          
    No proration of contributions takes place, even if the record ends      
    within the current payroll period.                                                                               
    END                                                                               
    Infotype records are evaluated on the payroll period end date.          
    No changes within the current payroll period are taken into             
    consideration.                                                          
    No proration of contributions takes place, even if the record begins    
    within the current payroll period.                                                                               
    CHK                                                                               
    Infotype records are evaluated on the payroll check date (the pay date),
    regardless of whether the check date falls into the payroll period      
    itself.                                                                 
    A record whose validity starts after the end date of the current payroll
    period is still evaluated if the check date (which lies in the future)  
    falls within the validity period of the infotype.                                                                               
    FRST                                                                               
    Infotype records are evaluated if there is any intersection of plan     
    infotype and payroll period. The first intersection is taken to         
    determine the full period deduction amount which is stored without      
    proration.                                                                               
    LAST                                                                               
    Infotype records are evaluated if there is any intersection of plan     
    infotype and payroll period. The last intersection is taken to determine
    the full period deduction amount which is stored without proration.

  • Mid-Month Calculations

    I am bringing a fixed asset system online in SAP and during the legacy conversion it was realized that the test system is not calculating the depreciation using a mid month convention.  That being said looking at the configuration the company code was setup in 2005 and is in production and is productive (since 2005).  So it appears that this setting is global and SAP will not allow me to change these settings to allow mid month calculations.  Is this correct? anyone ran across the same issue.

    Hi
    please read the note 2993 and 39416!
    Best Regards,
    Blaz

  • Mid month action_Pension (/3f4) calculation wrong

    Hi All,
    I get one problem , when payroll run for employee, whose action run in the mid of the month. for ex. 15.05.2010(Transfer action)
    In that case the pension amount (/3f4) is calculating double or more than 541...which is wrong.
    Kindly provde the input to resolve the same....
    Regards,
    Mahesh
    Edited by: Mahesh Shewale on Sep 1, 2010 1:08 PM
    Edited by: Mahesh Shewale on Sep 2, 2010 7:18 AM

    Hi Mahesh,
    Please make changes in User exit provided as per your requirement and then check the results
    There are 2 user exit
    EXIT_HINCALC0_002 for pension basis.
    EXIT_HINCALC0_007

Maybe you are looking for

  • No excise duty for exports

    Just so that I don't violate forum rules. I searched this forum for the keywords "Exports Excise Invoice". Did not find a question in the first three pages. So, I am posting mine. Hello, I'm working on a export scenario, I want the excise invoice NOT

  • Moving from AP Graphite to Extreme (TC)

    I'm about to replace my AP graphite with a Time Capsule. Will I be able to simply integrate into (adopt) my existing network name, etc. Or, if I have to define a new network, can I set it up while the old one is running? Or, should I switch off the o

  • Whats slowing down my page loading times?

    So i've been plagued recently with a terrible connection that just won't seem to go away, and has been getting worse. At first we thought it was the router in our building (out of our control) but apon talking to the other residents (in a floor below

  • Pdf with text data input

    trying to create a pdf file and add text boxes so my agents can input info

  • Getting songs off ipod

    i know that there is a program you can use to get your songs off your ipod and onto your computer, but what is it and how do i get it?? thanks j