HFM Rule Help

Hello all,
I'm trying to write a rule in the Calc sub which would essentiall accomplish the following:
Entity(“Apple”).Account(“AR”).ICP(“Banana”) has data of 100
I would like to flip the ICP and Entity combination using the Calc subroutine and set the following:
Entity(“Banana”).Account(“AP”).ICP(“Apple”) to 100
I am a novice with HFM rules commands, but advanced in programming and vbscript. I've tried to use HS.EXP to accomplish, but I guess it can't be used with an entity member on the left side of the equation. HS.SETDATAWITHPOV is promising, but I can't find a sample piece of code that uses it effectively.
My last attempt was to populate an array with base entity and icp members for the account I wanted...then match that in my calc sub. Still having trouble. It doesn't look like it should be this difficult.
Any ideas?
Thanks!

hello
here is a sample of setdata...
If CurCustom1 = "INC"      Then HS.SetDataWithPOV "A#P487000.I#[ICP None].C1#MVT" & ".C2#" & CurCustom2 & ".C3#" & CurCustom3 &".C4#ARET11", Data , True
You shoul also have look to data unit
regards

Similar Messages

  • Calling HFM rule from FDM

    Hi Experts,
    I am working on version 11.1.13 and I am new to FDM. Just wanted to know if I can execute a HFM rule from within FDM before exporting the data to the target HFM application?
    I know this is a possibility with the Essbase adapter but just wanted to check about the HFM adapter and how to do it?
    Thanks!!

    The Data Protection feature built in to FDM will do this for you. It allows you to input a string value which will protect all intersections in HFM that have data which contain that string. You can also flip the comparison operator to do the converse i.e. protect all data in intersections that does not contain the string. What FDM actually does is extract all data that meets the data protection criteria specified and appends it to the dataset you are loading thus preventing data from being overwritten. All you really need to do is make sure that the string value you use in the criteria is unique and will not be found as a substring anywhere else in the intersection (as FDM treats the intersection as one long string).
    When I have implemeted it in the past we usually have discrete memebers on the C4 dimension that identify where data has been source from. Hope that helps.

  • HFM Rule - # of Months Revenue Included in AR Balance (URGENT)

    Hello Group,
    I am trying to come up with a simple HFM rule to pinpoint the # of months of periodic Revenue that is in a given month's AR Balance. I thought this would be a slam dunk....But I seem to be stuck....Conceptually....Very straigtforward. Can someone help me?
    For Example:
    December A/R Balance = 10,000
    December Revenue (MTD) = 3,000 = 1 Month Accum 3000
    November Revenue (MTD) = 4,000 = 1 Month Accum 7000
    Octover Revenue (MTD) = 500 = 1 Month Accum 7,500
    September Revenue (MTD) = 2,000 = 1 Month Accum 9,500
    August Revenue (MTD) = 3,000 = .16 Month (10,000 AR - 9,500 YTD = 500 remaining in AR Balance)....Then 500 / 3,000 = .16 Month Accum 10,000 (Accum MTD Rev to match AR)
    # Months of Reveune in AR Balance Calculated = *4.16* Months of Revenue in A/R Balance.

    This has now been resolved after we put the Time dependancy with the Call Routines

  • PCG 7: Flow Rules help

    E-Bus 11i Flow Rules Help
    Hi I need to create a flow rule that will notify an employee's supervisor when a user updates their own employee record.
    So I need to link the LAST_UPDATED_BY of the currently updated record to employee_id from FND_USER
    where the FND_USER.USER_ID = <current>.LAST_UPDATED_BY
    I'm looking at my Flow Rule Launch Criteria, but I cannot see how I can say....
    COLUMN=LAST_UPDATED_BY
    CONDITION=Equals
    VALUE= <result of my SQL> <==========
    It looks like I can only put specific hardcoded values in here ??
    Any ideas, or examples for this type of thing?
    Is my requirement clear?
    Thanx
    Russell Foster

    Hi Foster
    In the launch criteria you can specify under the table name FND_USER, Relationship keys would be (USER_NAME, USER_ID)
    please check the check box "UPdate" uncheck "Insert"
    coming to the columns enter value "LAST_UPDATE_BY" and condition "IS Update"
    the value part cannot be updated.
    The launch criteria created specifies that when ever the colum Last_update_by of FND_USER is updated the flow rule will get fired.
    Please try and let me know if u face any issues
    thanks

  • HFM Rule subtraction of 2 empty accounts equals -1,45519152283669E-11

    Hello all,
    it is curious and i don´t know why this occurs, so i hope someone can help me please.
    I have two accounts they stored no data, so they are empty.
    Another account will be calculated like
    Account3 = Account1 - Account2
    Account1 and Account2 are empty, but if i calculate account3 with these 2 empty accounts i get the value -1,45519152283669E-11.
    I checked the values from the other accounts with a write2file function to a logfile. And Account1 = 0, Account2 = 0 but Account3 returns this curious value.
    What is wrong? The HS.Round(0.1)-Function will not help in this problem.
    Many thanks in advance for your help.
    Martin

    Hi Martin
    Generally the HFM calculations are carried out with 15 significant decimal digits; this includes the digits to the left and right of the the decimal point. The round-off error noted is considered normal for floating point calculations. In fact, the relative error is 1.29 x 10^-15.
    That is 15 significant decimal digits is the maximum accuracy can expect with the product.
    HS.Round() functions can be used to narrow down numbers especially in dynamic account rules.
    You can verify the same in the below oracle knowledge base document.
    Accuracy of HFM in Floating Point Calculations (Doc ID 1437033.1)
    Hope this helps.
    thank you
    Regards,
    Mahe

  • How to get an account with an IsICP -"R" attribute calculated in the HFM Rule file

    Till recently everything was going fine with the calculations in our HFM setup ( Version 4.1)
    We have say around 8 Expense accounts which roll up into a Parent account say ALL446 which finally rolls up into Operating Expenses.
    Operating Expenses
      |__ parent account
          |_INVALO
           |_ALL446
              |__222446
              |__242446
    And we have a calculation in the rule file as below
    HS.EXP "A#BE FIXED COST = A#Operating Expenses +A#SGA - A#BE VC OP F10"
    This was calculating correctly till we did the below change
    Added IsICP attribute to couple of accounts say 222446 and 242446 ( in the above example) in the metadata which finally rolls up into Operating Expense.
    Note: we did not add any Plug account attribute to the accounts
    Now the problem what we have in hand is -> Fixed Cost is not calculating correctly.- It happens that the two accounts for which we added the IsICP are not showing up in the calculation and the data in those two accounts are not adding up in Fixed Cost.
    POV in GRID/Excel -> actual,2013,periodic,<Entity Currency>, ICP Top, AllCustom1, AllCustom2, AllCustom3, None( for custom4)
    But when we retrieve Operating Expenses in Excel - it is showing the correct amount, even in the grid - but looks like when the rule tries to calculate Fixed Expenses using the above rule - these accounts are not adding up in the Operating expenses.
    I tried the formula ( to check what number is coming into Fixed cost ) - the result is zero - But in the grid/excel I see amount for acct2. Same POV as above
    HS.EXP "A#BE FIXED COST = A#222446"
    and if I add & Tops to the account like below ( getting some weird number instead of what is there in acct2)
    HS.EXP "A#BE FIXED COST = A#222446" & Tops
    Questions:
    1) Where exactly I am going wrong ?
    2) Is it MANDATORY to have a Plugaccount attribute when we have IsICP turned to "R" ?
    3) What will happen if we do not have a Plugaccount for the IsICP account ?
    4) How to correct the formula to make sure I get the number in the acct2 into Fixed Cost??
    5) Do we need to have the IsICP turned on to the immediate parent of the account having IsICP and the Top parents of the account too??
    6) Is it possible to get the exact number what we have in 222446 into BE Fixed Cost account via Rule?- why I am not getting it
    Notes:
    BE Fixed Cost-> account type -"Expense", IsCalculated - yes, IsConsolidated - yes, IsICP- N, Custom1TopMember - AllFunctions, Custom3TopMember- AllCustom3, enabled allcustom1,2,3,4aggregations
    Operating Expenses->"Expense", IsCalculated - No, IsConsolidated - yes, IsICP- N, Custom1TopMember - AllFunctions, Custom3TopMember- AllCustom3, enabled allcustom1,2,3,4aggregations
    INVALO ->"Expense", IsCalculated - No, IsConsolidated - yes, IsICP- N, Custom1TopMember -none, Custom3TopMember- none,
    enabled allcustom1,2,3,4aggregations
    Problematic account 222446 -> "Expense", IsCalculated - No, IsConsolidated - yes, IsICP- R, Custom1TopMember - Operations, Custom3TopMember- AllCustom3, enabled allcustom1,2,3,4aggregations
    The Entity on which I am trying to get the data( mentioning wherever I have attributes for this entity)
    DefCurrency - DEM, Allowadjs- enabled, IsICP - enabled, Userdefined 2 - financial, - SecurityasPartner attribute - is not selected through out the applicaiton.
    Variable
    Tops = ".I#[ICP Top].C1#AllCustom1.C2#AllCustom2.C3#AllCustom3.C4#[None]"
    tried attaching the attachments ( but service is unavailable)
    Waiting for all of your valuable suggestions..

    1) why was I not getting the formula right when I use & Tops
    I'm assuming that BE Fixed Cost has N for IsICP, in that case you can not write to invalid intersections as it would attempt to use the same ICP information
    2) Is it MANDATORY to have a Plugaccount attribute when we have IsICP turned to "R" ?
    No
    3) What will happen if we do not have a Plugaccount for the IsICP account ?
    It will not run eliminations
    4) Do we need to have the IsICP turned on to the immediate parent of the account having IsICP and the Top parents of the account too??
    If you want it to rollup, yes you would need that.  We have all Parent accounts as isICP set to Y and top member to ICP Entities so that they roll up
    5) which will have priority the rule or the Grid where we have the calculated member like the BE Fixed Cost - because in the grid I had icptop, allcustom1,2 3 and when had & Tops to the account - I got some weird numbers...
    I'm not following the question here, grids are just really a display mechanism, rules will handle all of the calculations.

  • Applescript process message body from mail rule help please

    Would someone be kind enough to help me figure out how to do this?  I've been reading for hours on other posts and I can't get this to work.
    Here is an example:
    I would like to set up a mail rule to run an applescript that searches the body of the email for "-Front Door- Open".  I then want to parse the body and sets myDevice= "-Front Door-" and myState="Open".  After I have these variables set, I want to make an call to something like https://foo.me.com/api/token/${state.accessToken}/smartapps/installations/${app.id}/Notify?device=${myDevice}&type=ContactSensor&state=${myState}
    I understand how to do the mail rule, I just can't figure out the applescript part of it.

    The script works just fine - at least, as designed if not as expected.
    When the script runs, Mail and/or AppleScript looks for a perform mail action handler. If that is found, the commands within are executed.
    If there is no perform mail action handler then the script is run as-is (i.e. as if you clicked 'Run' in AppleScript Editor).
    And that's exactly what's happening here. In the first case (that works) the script is running because there's no (visible) perform mail action handler.
    In the second case where it apparently doesn't work, there is a handler, so that handler is being executed. Any code outside that handler is ignored (unless it's called from within the perform mail action handler.
    Since your 'say' command is outside the handler, it is ignored. However, if you move it inside the perform mail action handler you'll hear your speech.

  • Can we use Boolean or Validations in HFM Rules

    Hi Gurus
    Can we use Boolean or Validations for input cells in HFM?
    Example:
    1. I want to restrict the user to enter only single digit (0 or 1 are valid) in to a cell for a special purpose. (in smartview or webform)
    2. I want to restrict the user to enter only single Character (Y or N are valid) in to a cell for a special purpose.(in smartview or webform)
    After submitting the data, If the data does not matches to the given condition it has to through an Error message or validation message to the end user.
    Can we write these kind of rules in HFM?
    Regards
    Smilee

    Hi Smilee,
    HFM's model of validation and error checking is not as you describe. Data cannot be validated at the form/data-entry level. Instead, HFM's validation model goes like this:
    1. You must provide with a validation account for each validation you need, with a common parent usually declared in the validation accounts in the ApplicationSettings. A zero (or within tolerance limits) in the validation account means correct, any other value means error.
    2. You must write a normal calculation rule, which checks the user's input for valid data entry and place a zero or other value to the validation account.
    3. The user inputs her values (via form, or data load, FDM, SmartView etc.), saves her data and calculates.
    4. As soon as all the validation calculations write zeros to the to validation account during calculations, the user can submit successfully (submission is part of process management). However, if any of the validations fail (meaning non zero value to the top validation account) the user cannot submit until she corrects the error value. Errors can be traced easily, judging by the exact validation account which fails.
    Another observation regarding your point 2 is that only numeric values can be written in HFM cells, no alphabetic characters are allowed. You should replace Y/N logic to 0/1.
    Regards,
    Kostas

  • Business rules help

    Hi da,
    I have few queries on business rules.
    1. what is the use of business rules ? and how can we use and where can we use it. is there any usefull guide?
    I can see BR outline tab in EAS console with some of functions. ( I just recently finished my essbase training and we never told about these business rules).
    2. In shared services when I try to open Business Rules under projects it is showing the error" Refer to essbase security guide" . ( I externalized all users to Shared services). So how can I access Business Rules in shared serives? or is there any other way to access.
    {OS: windows server 2003 sp2
    DB: Sql Server 2005
    Hyperion System 9( 9.3.1).}
    Help will be appreciated.
    Thanks and Regards,
    Sri-Oralce.

    Hi Sri,
    1. Basics of BR ( Business Rules ) can be found in planning document ( there are 2 planning docs 1. user guide and 2. Admin guide). Pls find that
    2. From Planning perspective , we create Business Rules ,which are nothing but another version of essbase calculatino scripts , thats why you do see in EAS.
    3. Essbase training does not include Business Rules ( planning does include).If you are comfortable with calculation scripts, then BR's should be comfortable to you.
    4. To see BR's in shared services , I have a question , did you install Planning and all.
    Sandeep Reddy Enti
    HCC
    http://hyperionconsultancy.com/

  • V11 Errors in Consolidations (HFM) - Please Help!

    Hi, I'm hoping someone will be able to help.
    We have a HFM v11 Application, that we have migrated from v9.2.
    We seem to be getting 2 errors when we run consolidations, within the system messages. The consolidations seem to complete OK.
    This is the 1st.
    Error Code:{657DECA8-A7C6-4EE9-BAD8-B68105744A8B}
    System Message Summary
    Error executing VBScript Microsoft VBScript runtime error, Line 1665:Type mismatch: '[string: ""]'.
    System Message Details
    Error Reference Number: {657DECA8-A7C6-4EE9-BAD8-B68105744A8B}
    Num: 0x80042fc2;Type: 1;DTime: 24/01/2012 09:08:53;Svr: EUROPEVUK301;File: CHsvScriptEngine.cpp;Line: 392;Ver: 11.1.2.1.000.3082;
    Num: 0x80042fc2;Type: 0;DTime: 24/01/2012 09:08:53;Svr: EUROPEVUK301;File: CHsvDSCalculate.cpp;Line: 640;Ver: 11.1.2.1.000.3082;DStr: Microsoft VBScript runtime error, Line 1665;
    This is the second.
    Error Code:{CC0E1DF2-9310-464D-A967-1B2048B91AEB}
    System Message Summary
    An Unknown error has occurred
    System Message Details
    Error Reference Number: {CC0E1DF2-9310-464D-A967-1B2048B91AEB}
    Num: 0x80020101;Type: 0;DTime: 24/01/2012 09:08:53;Svr: EUROPEVUK301;File: CHsvVBScriptImpl.cpp;Line: 597;Ver: 11.1.2.1.000.3082;DStr: Executing Sub NoInput(); DISPID=10;
    In our previous 9.2 appliction, these errors didnt appear.
    Any help in deciphering these would be appreciated.
    Thanks & Regards,
    Buster

    ' All entries for a scenario should be NoInput for all years before the first scenario year
    sScenarioList = Hs.Scenario.List("", "[Base]")
    For Each sScenario in sScenarioList
       If sScenario *=* "ACTUAL" And sScenario *=* "TEST_ACTUAL" Then   *I assume you manually typed this and forget the = signs?*
          If FIRST_YEAR < FirstYr_of_Scenario(sScenario) Then
             For iYear = FIRST_YEAR to FirstYr_of_Scenario(sScenario) - 1
                 Hs.NoInput "S#" & sScenario & ".Y#" & iYear
             Next
           End If
        End If
    next--> For iYear = FIRST_YEAR to FirstYr_of_Scenario(sScenario) - 1
    You are attempting a numerical operation (i.e. -1) on a variant/string. vbscript will attempt to automatically convert the result of the call to FirstYr_of_Scenario to a numeric value; however, if it cannot convert it, you will get an error as described previously.
    I would check the function out as it is probably returning "" for some reason. (Write the output of that call to a log file or something)

  • HFM config help! PLZ

    Hi friends
    I have installed HFM, shared services, Reporting and Analysis and -reporting and analysis UI IN xp I HAVE 2 GB RAM AND 2.4 GHZ PROCESSOR
    I need help for HFM configuration utility.
    i have hard time and don't understand where exactly i need to link the below sources
    APPLICATION SERVER
    1) C:\Hyperion\FinancialManagement\Server Working Folder
    WEBSERVER tab
    web directories
    1) webservice installation directory
    2) file transfer directory
    3) URL for      1) financial reporting,
              2) web analysis,
              3) planning,
              4) HAL translation manager URL and fianlly
              5) financial data management URL
    PLEASE DO HELP ME TO CONFIGURE THIS APPLICATION.

    APPLICATION SERVER
    1) C:\Hyperion\FinancialManagement\Server Working Folder
    This is the folder where all of your database files for each application will be stored.  You will need to specify a datalink file in the next field down entitled “Database link file.”  This will be a .UDL file if you are using Windows Servers.
    WEBSERVER tab
    web directories
    1) webservice installation directory
    2) file transfer directory
    These are the webroot directories that correspond to your IIS virtual directories (file location for your website)
    3) URL for 1) financial reporting,
    2) web analysis,
    3) planning,
    4) HAL translation manager URL and fianlly
    5) financial data management URL
    Depending on which application and web servers you chose, these URL’s and port numbers should already have been configured in the Configuration Utility after the installation, so unless you are using HAL or FDM, you shouldn’t have to supply a URL here.  If you haven’t configured them, you should do so in the Configuration Utility at Start | Programs | Hyperion | Foundation Services | Configuration Utility and not here.

  • Email spam filters - rules, help

    I have been getting hammered with spam to my .me / .icloud email address. I know this is an Apple mail problem as the email is also going to the .icloud account I have set up for my 9 year old daughter. The problem is I have setup rules to ignore these emails using the from domain (.tk) but the emails still make it to our inbox. All of them have attachments in them and I am scared my daughter will open one these attachments even though I have told her not to open any of the emails.
    What I have setup as the rule is as follows:
    1. if all > from > contains > .tk
    2. move message > to mailbox = junk
    Is there any other rule I need to setup to get these messages to skip both our inboxes. These are what these spam emails look like:
    I have been forwarding all these to spam@me but that doesn't seem to be doing much help.
    Thanks,
    Christoper

    There could be several reasons why they are still in the inbox. Make sure junk filtering is enabled in Mail's preferences and that you have it set to move junk messages to the junk mailbox and not to leave them in the inbox.
    Rules only apply to new incoming messages. If they are being read on another device first, the rule filtering will not be applied to those messages on the computer.
    The order of the rules in the rules list is very important. Make sure you have no other rules ahead of it that will cause this particular one not to be applied.
    You can test a rule manually by highlighting a message and right click on the message in the list. Choose apply rule. If the rule is good, it should perform the action you have set up.
    I assume both you and your daughter have seperate devices and seperate accounts and you can't get it to work on either. I have also been getting these spam messages to one of my iCloud aliases.

  • Should have said "I need Mail Rule help" .. sorry

    I know this has probably been solved many times and is old hat to a lot of you. I am trying to create an applescript that forwards only the body of an e-mail to my cell phone triggered from a Mail rule. It runs fine in the editor but not as a Mail rule. I may even want to restrict it to the first 200 characters. I've read that maybe I have to set up a sub routine but I don't know how to do that. I've spent way too much time trying to figure out why it won't work. I'm old and don't like wasting my precious time (lol) Any help would be appreciated. Here's the script. It's been put together with some I saw on the net. Thanking in advance.
    using terms from application "Mail"
    on perform mail action with messages theMsges
    tell application "Mail"
    repeat with AMessage in theMsges
    set theSelection to selection
    set theMessage to item 1 of theSelection
    set msgText to content of theMessage
    set newMsg to make new outgoing message with properties {subject:"test", content:msgText}
    tell newMsg
    make new to recipient at end of to recipients with properties {address:"my cell phome email address"}
    end tell
    end repeat
    send newMsg
    end tell
    end perform mail action with messages
    end using terms from
    using terms from application "Mail"
    on run
    tell application "Mail" to set sel to selection
    tell me to perform mail action with messages (sel)
    end run
    end using terms from

    bigredlions wrote:
    It runs fine in the editor but not as a Mail rule.
    I've seen posts on the Web that this ability was 'broken' with Leopard.
    You could just set up a Mail Rule to Forward incoming messages (however, the complete message will bb fwd, no way to limit to 200 characters.

  • HFM Rule Error

    Hi,
    My Account dimension is as follows -
    A#B - Parent
    --A#C - Child1 (Input)
    --A#D - Child2 (Input)
    --A#E - Child3 (Input)
    --A#F - Child4 (Shared parent member)
    --A#G - Child5
    --A#H - Child6
    Child5 and Child6 hold intermediate values
    Now I'm trying to calculate the following inside a data unit loop in the sub calculate
    (pseudo code)
    opendataunit ("")
    For i =0 to NUMitems
    Checks the UDA for every account
    If UDA is XYZ then HS.EXP A#G =A#G +Data (where Data contains the value returned in the data unit)
    elseif UDA is BQY then HS.EXP A#H = A#H +Data
    endif
    HS.EXP A#B = A#F - (A#C + A#D + A#E) -A#G +A#H (problem line)
    Next
    Now my problem is that the the rule file is on the second last line. After validation, returns an error saying A#B is an invalid destination. The dataunit loop runs fine and I have tested it by commenting out the second last line and run the calc.
    Could you please give me pointers as to why i could be getting this error ? I'm new to HFM so any pointers will be appreciated.
    Thanks in Advance!!

    Hi,
    In HFM, only a base member can be the destination of a calculation expression. A parent is always the sum of its children.
    Regards,
    --Kostas                                                                                                                                                                                                                                                                                                           

  • Defaulting Rule - Help Needed

    hi,
    I want to default the Order Line based on specific Item. I have created the Defaulting Condition Template specifying the item for Entity Order Line.
    At the Item Type : I have added a new defaulting condition with a precedence later than the Regular Line and have added a constant value as the order line type.
    But it doesnt seem to work out. I have compiled the defaulting rules. But it still does not seem to work out.
    Can any one help or atleast point out how to get this thing working ?
    The idea is to have separate line type created for manufactured shippable items and separate line type for service items. Service module is not being implemented.
    since, the number of service items are not large so I am planning to hard code with the service items.
    I am not sure how the PL/SQL process would work. But if somebody could point out the PL/SQL usage for this with pseudo code. I think it might help out.
    Thanks,
    Dhiraj

    Hi Dhiraj,
    I understand that you are looking for different line types for different item types. This can be easily set up in the transaction type definition form itself. You don't have to setup special defaulting rules for this.
    In the transaction type form , when you assign line flows, it lets you choose item type. So you can set different line types for each item_type.
    Regards,
    Swapna.

Maybe you are looking for

  • Security Stories - funny and not-so-funny

    Here we are on the last day of this event.  Lots of good questions and answers. I don't have anything useful to contribute, so I'll start this thread with a couple of stories illustrating how easy it is to get into trouble on the interwebs. You can h

  • ITunes does not see music files in folders in external drive after crash

    I put over 3000 music files on an external drive.  It was a laborious project to organize them so iTunes would recognize them and organize them. Unhappily, my laptop crashed this morning and I had to restore the whole hard drive to a backup of 3 week

  • Servlet filter in portal irj?

    Hi, I am trying to create and deploy a servlet filter in portal irj. Here is what I have done: 1. Created filter class(TestFilter.java). 2. Created a jar file for the above TestFilter.class. 3. Copied the jar file to C:\usr\sap\DW1\JC00\j2ee\cluster\

  • Selection Box Issues

    Hi folks, this is probably a dumb question but I've looked everywhere online without an answer: How can I draw a selection box over 1 or more objects without selecting objects that touch the selection box? - I.e. as an example: in Autocad when you dr

  • Tcodes that need to run in inbound

    hi ppl,         I have sent all the materials using bd10.after that i run we05/we02 and everything is in green signal ie no any error.So what all the things i need to do in the other end.i.e for inbound.Please provide me the  step by step tcodes with