Creating Rules in HFM.

While writing a business rule for HFM, in the sub calculate(), if I do not mention the entire intersection does the calcultaion run for the current POV or does it run for all intersections?
Ex,
If I write a script HS.Clear"A#11110"
will the A#11110 be cleared for current POV or for all entities and scenarios and oter dimensions?

Lijoy,
If you don't use Select Case or IF/Then or some similar mechanism to control the execution of the clear statement, then the statement will execute for whichever Scenario, Entity, Year, Time Period and Value dimension member is in the user's POV. We will often use if/then statement to control where a formula executes. For example, say you wanted to clear the input-level data for a particular account for only base-level entities in your Budget scenario for years after 2007. You could do that by doing something like this:
=========================================
pov_entity = HS.Entity.Member
pov_value = HS.Value.Member
pov_scenario = HS.Scenario.Member
pov_year = HS.Year.Member
vIs_Base = HS.Entity.IsBase ("","")
If pov_scenario = "Budget" and pov_year > "2007" and pov_value = "<Entity Currency>" and vIs_Base = True Then
HS.Clear("A#1010")
End If
============================================
The variable declarations before the IF statement are just some standard items we put at the top of our rules file so that we don't have to write HS.Entity.Member every time we want to know what the current entity is - you can just pov_entity instead (this is supposed to be faster as well). Hope this helps!
Best Regards,
Bobby

Similar Messages

  • I Need help for creating rules - very high values !!

    Hi,
    i have some troubleshooting by creating rules at HFM 11.1.1.3. I have declarate an array where some Data from an Account is stored. Then there should be stored one of the numerical data in another HFM account (f.e. "EB_MITTEL"). The stored data is much higher than the value in the log file ("write2File") showed. If i divide this value by 100000000000000 then the right value will be reported.
    Example: Value in log-file: 16492,8691588785 ("," = decimal-delimiter)
    Value in the Data-Grid: 164.928.691.588.785 ("." = thousands-separator)
    Part of the rule-file:
    Sub
         Dim lMittelWert, lMaxWert, lMinWert
         lMittelWert = 0
         lMaxWert = 0
         lMinWert = 0
         a = 0
         For x = 1 To 13
              If arListe(x) <> 0 then
              lMittelWert = lMittelWert + arListe(x)
              a=a+1
              End if
              If lMaxWert < arListe(x) Then
                   lMaxWert = arListe(x)
              End If
              if x = 1 then
                   lMinWert = arListe(x)
              End if
         Next
         lMinWert = lMaxWert
         For x = 1 To 13
              If lMinWert > arListe(x) and arListe(x) <> 0 Then
                   lMinWert = arListe(x)
              End If
              write2file arListe(x)
         Next
         if a <> 0 Then
              lMittelWert = lMittelWert / a
         End if     
         HS.Exp "A#EB_MITTEL.C1#" & C1Item & " = " & lMittelWert
         HS.Exp "A#EB_MIN.C1#" & C1Item & " = " & lMinWert
         HS.Exp "A#EB_MAX.C1#" & C1Item & " = " & lMaxWert
    End Sub
    I hope someone can help me, many thanks in advance. (and i am so sorry about my bad english)
    Juergen

    VB Scripts using String to number conversions in some languages require special consideration when handling numbers. (e.g. French, German and others that use commas as decimal delimiter).
    Internally, HFM VB Scripts use periods (.) as the decimal delimiter. One workaround is to force the use of decimals and force the Scripting engine to use decimals by declaring the local to be English US with:
    b = setLocale("en-us")

  • Error while creating rules for Event generator

    Hi,
    I followed the PO samples in dev2dev site to create an EventGenerator(both file and JMS) from a jython script. While creating rules for the eventgenerator, am getting the following exception.
    "AttributeError: 'None' object has no attribute 'newFileEventGenConfigurationMBean'"
    here is the PO sample code,
    egCfgMBean = getMBean("FileEventGenerators/FileEventGenerators")
    egMBean = egCfgMBean.newFileEventGenConfigurationMBean(egName)
    I used getMBean() instead of wlst.getTarget() to retrieve the MBean info.
    The server is weblogic 9.2 and domain is Integration domain. Looks like the getMBean() wasnt able to locate the Eventgenerator MBean for some reason and hence the variable 'egCfgMBean ' is always null. Anyone had this issue before.
    Thanks.

    It looks like getMBean("FileEventGenerators/FileEventGenerators") is not
    returning an MBean. "None" is returned if no MBean is found. Check the path
    parameter to getMBean() and make sure it is correct. If you know the object
    name of the MBean you are interested in, you may be able to use the
    getPath() command to get its path.
    wls:/mydomain/serverConfig>path=getPath('com.bea:Name=myserver,Type=Server')
    wls:/mydomain/serverConfig> print path
    <Ramesh R> wrote in message news:[email protected]..
    Hi,
    I followed the PO samples in dev2dev site to create an EventGenerator(both
    file and JMS) from a jython script. While creating rules for the
    eventgenerator, am getting the following exception.
    "AttributeError: 'None' object has no attribute
    'newFileEventGenConfigurationMBean'"
    here is the PO sample code,
    egCfgMBean = getMBean("FileEventGenerators/FileEventGenerators")
    egMBean = egCfgMBean.newFileEventGenConfigurationMBean(egName)
    I used getMBean() instead of wlst.getTarget() to retrieve the MBean info.
    The server is weblogic 9.2 and domain is Integration domain. Looks like the
    getMBean() wasnt able to locate the Eventgenerator MBean for some reason and
    hence the variable 'egCfgMBean ' is always null. Anyone had this issue
    before.
    Thanks.

  • Error creating a classic HFM application in Hyperion 11.1.2.2

    I am trying to create a classic hfm application in Hyperion 11.1.2.2. When i enter application name and other information and press submit it shows message 'Creating new application' but then gives an error
    The following exception has occurred in .(): oracle.epm.fm.common.exception.HFMException with message: Error occurred while creating the application.
    All of HFM related services are running fine. But I have stopped EPMA related services assuming they are not needed for Classic HFM application creation.
    Any ideas. Thanks in advance.

    Need to increase database (where HFM Schemas are created) processes and sessions. once after increase you should be able to open the application without any issues.
    Looks like newly redesigned hfm v11.1.2.2 need more db sessions & processes.

  • How to create Rules with Flex Field mapping in the bpm worklist

    I Have created a flex field label and was able to map to the flex field attributes .
    But when i try to create a rules , I don't see the label or the flex attributes in the task payload .
    Can someone please help is understanding how to create Rules with Flex Field mapping in the bpm worklist .
    Even I am also searching for any scripts which will take the flex fields prompts and can directly create a label in the bpm worklist .
    Any pointers or suggestion is highly appreciated .

    Hi,
    SE38 -> Enter program
    Select Variants button and display. In the next screen, enter a variant name, (If not existing , press Create to create new one), else click on Change.
    Now the selection screen will display with a button "Variant Attributes" at the top.
    Click on that button.
    In the next screen, go to the selection variable column of the date field. Press F4 or drop down and select 'D' for date maintenance.
    In the column "Name of Variable (Input Only Using F4)" press F4 or drop down, select whichever kind of date calculation you want and save the variant.
    Now whenever you run the prgrm with this variant, date will be displayed by default.
    Regards,
    Subramanian

  • How to create rule groups strp by step-urgent

    Hi All,
    Can you please provide me the step by step procedure for creating rule groups.
    I have four date fields ina DSO which have to be mapped to a date field in cube.\
    Thanks in adavnce

    Hi
    Check this link with library with steps to create rule groups
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60e63c88-960b-2a10-9fac-a409a24476c2

  • How to create ICPReport in HFM

    I am trying to create ICPReport in HFM. Is there any documentation on how to create ICP reports because there are quite a few different options in the reporting section of workspace.

    Hi
    Yes, U can create ICP Reports in HFM, using ICP Transaction Reports, In workspace, Administration-->Manage Documents-->Reports--> ICP Transaction Reports, there you can select the Etity, ICP Entity, Or, Accounts, Or Tolerace Amt, so based on these contents you can generate the reports.

  • Job Chain. How to create Rule based on Time also?

    Hi ,
    I need to check at 9:30 AM that one of the previous step in the existing chain has been completed.
    If not I'd like to do some 'send_notification' Step.
    So, I need to create rule based on Time and 'step_n succeeded'.
    Could you please tell me how to do that?
    Thanks for your help,
    LSY.

    Hi,
    Alberto is right in his approach. You can't say to evaluate the chains rules at 9:30am but you can set an evaluation context of 10 minutes so that the chains rules are reevaluated every 10 minutes.
    Then you can create a rule that says
    if the time is between 9:30am and 9:40am and step_to_check is running or not_started
    then start send_notification_step
    Hope this helps,
    Ravi.

  • HOW TO CREATE RULE IN PAYSLIP(PE51)

    Hi, I want to create rule in payslip for the fallowing requirment
    if rt table lgart eq '5m01' then amount means
    rt table betrg value will show in payslip.
    only by using rule
    Edited by: srinivas rao on May 7, 2008 12:28 PM
    Edited by: srinivas rao on May 8, 2008 1:50 PM

    Hi;
    Please check below note which could be helpful for your issue:
    Setup Checklist for the Interface Data Transformer - Global Consolidations System [ID 277875.1]
    Regard
    Helios

  • How to Create Rule in Interface Data Transformer.

    Hi,
    If any one know how to Create Rule in Interface Data Transformer(IDT) Super user by using Lookup(Oracle R12 Version) Please help me on this.
    I have one value in GL Interface table, while loding data into base tables (GL_JE_BATCHES, GL_JE_HEADERS, GL_JE_LINES) that values replace with another value.
    For that purpose we have to use Interface Data Transformer.
    If any one how to create rule in IDT, Please give me a example how to create rule by using Lookup.
    Thanks in Advance.
    Regards
    Varma.

    Hi;
    Please check below note which could be helpful for your issue:
    Setup Checklist for the Interface Data Transformer - Global Consolidations System [ID 277875.1]
    Regard
    Helios

  • How do I create rules files in Sap Data Services

    Hello Guys,
    I'm new with Bo Sap Development Data Services, and am migrating SSIS packages 2008 for the bods.
    I am studying the process of cleanup and word processing via bods.
    But I noticed that my installation does not have Rules Files.
    My question is:
    How do I create rules files in Sap Data Services library with support for Portuguese?

    Hello Ramana,
    So with version 4.2 of Sap Data Services do not currently have the rules files?
    How to mount files for text comparison Cleanse facing Addresses, Names, Clients, Companies? If you can give me some help link?
    Thanks again ...

  • How to make or create rule matrix?

    HI,
    How to create rule matrix...do we first consider the business process.I mean do we have to craete rule matrix as per the different SAP Modules(BASIS,HR,PAYROLL etc.).
    Also if somebody have any document or link for role simulation demonstration please share the same with me.!!

    Dear Pranjal,
    you have to start to analyze your business and then based on your processes you have to define what is a risk. In the end a risk must be declared by your management. I would recommend to start with the pre-delivered rule set from SAP to see what has been defined as a risk. Basically that is a good start to develop your own rule set.
    Personally I am using a risk matrix to identify SOD conflicts we have in our organization. Based on that we have identified critical risks and those are defined in the rule set. Please see the following matrix of general tasks:
    As mentioned above in the end the risks must be declared by your management. Some SOD might not be critical in my organization but in yours they are. Hence you have to analyze your business, your processes and based on that defining what is critical and what not.
    Please let me know if you need further details.
    Regards,
    Alessandro

  • Creating rules like Outlook in Mail running in Lion

    Hi,
       I am on Mac OS X Lion and have configured the new "Mail". I use Outlook in office and find the rules that we can create in Outlook very handy. So was wondering if the same could be achieved in "Mail". The basic requirement is to guide emails from specific email ids into specific folders just to get that neat look for the inbox. Pointers will be very much appreciated.

    Thanks for your reply. Now i can create rules but the followup question is how do I get them applied as soon as they are created. Although I say "Apply" once the rule is created, it does not seem to pull anything into the desired folder and just doesn't seem to get applied .

  • A simple problem? - cannot grant create rule set

    Hi,
    Can anyone spot the stupid mistake i'm obviously making when trying to grant create rule set to my streams admin user? The script was working last week?!
    BEGIN
    DBMS_RULE_ADM.GRANT_SYSTEM_PRIVILEGE(
    privilege => DBMS_RULE_ADM.CREATE_RULE_SET_OBJ,
    grantee => 'strmadmin',
    grant_option => FALSE);
    END;
    ERROR at line 1:
    ORA-00931: missing identifier
    ORA-24000: invalid value , USER/ROLE should be of the form [SCHEMA.]NAME
    ORA-06512: at "SYS.DBMS_RULE_ADM", line 167
    ORA-06512: at line 2
    Many thanks,
    Warren

    Yes, catpatch.sql is necessary only for existing 9.2.0.1 databases upgraded to 9.2.0.2.
    I am assuming that when you created the database under 9.2.0.2 that catalog.sql and
    catproc.sql were run. The next step, I guess, is to turn on sql tracing to see
    which sql statement actually fails when you run the command. Turn on sql tracing
    with the following command, and then execute the procedure again.
    alter session set sql_trace=true;

  • Creating rules for Mail - yet visible on iPhone

    I fully understand how to create rules for email so that when receiving them, they automatically go into folders.  The problem is, if I receive an email that automatically gets sorted into a folder, I can not tell on my iPhone I have actually received a new email.
    However, I need to know how to have rules to automatically sort/file emails into a folder, but still know I have received a new email on my iPhone mail. 
    Anyone got ideas?
    Thanks

    I can understand not wanting to put out money to gain a feature that you think should be standard.
    Here is a link to some Applescripts that I had downloaded in the past. I actually forgot about these. There is a script which will allow you to apply some rules to outgoing messages, but the author of the scripts notes that it is not a perfect solution. Maybe it can help.
    If all else fails, maybe you can use smart folders as a sort of go between. Instead of scanning through the sent mail folder and hand picking individual messages to drag to folders, why not set up a smart folder to aggregate all like mail. Then you could just drag the messages from a smart folder to a regular one. It might help speed things up.
    I am just about out of ideas. I hope you can come up with a good solution.

Maybe you are looking for