How to Flip the Sign using Calculation script for historical data

I am currently using Essbase 9.3.1. Its required to flip sign for a specific set of accounts for that i am currently using UDA's to flip the sign.
But now i need to flip the sign for the historical data too. Is there any possible way to flip the sign using calculation scripts for historical data. Kindly let me know your suggestions.
Many thanks in Advance...
Edited by: [email protected] on Jul 30, 2009 9:37 PM
Edited by: [email protected] on Jul 30, 2009 10:58 PM
Edited by: [email protected] on Jul 30, 2009 11:01 PM

Of course there is. This is the kind of calc script that only gets run once, so make usre you test it well before doing it on production and make a backup of production before doing it.
It would be something like
Fix(time frame, accounts to be flipped, level zero other dimensions)
actual = actual * -1;
EndFix
Cal dim dimensions
Note, I chose actual, but you could do it for any dimension that has a single or only a couple of members. What ever dimension you choose to do the calculation on, it can't be included in the fix statement

Similar Messages

  • When I Flip the Sign using script, additional data appears

    I flipped the sign and it became a negative and that is correct. But it is adding some additional data to the flipped member. Both members are expenses. I am putting it in one bucket as a debit and another bucket as a credit, so that they will eliminate each other. Example below:
    /*** Clear any data in accounts 79400 and 79415 ***/
    FIX("Jan":"Dec",&BudYr,"System","Dollars","Budget","Input","7100")
              CLEARDATA "79400";
              CLEARDATA "79415";
    ENDFIX
    /*** This will debit by month 7100 to account "Interco. Alloc. In (79400)" ***/
    FIX("Jan",&BudYr,"System","Dollars","Budget","Input","7100","79400")                                   
    AMC = "000"->"TOT_SGA_EXP" * "ALLOCATION_PCT" ->"AMC"->"BegBalance";     
    ENDFIX
    /***This will credit by month 7100 to account "Intra. G/A Admin Alloc. Out (79415)" ***/      
    FIX("Jan",&BudYr,"System","Dollars","Budget","Input","7100","79415")                                   
    AMC = ("000"->"TOT_SGA_EXP" * "ALLOCATION_PCT" ->"AMC"->"BegBalance") * -1;     
    ENDFIX
    RESULTS:
    Interco. Alloc. In (79400)     Admin (000)     Compliance (7100)     American Managed Care     January     97,578
    Intra. G/A Admin Alloc. Out (79415)     Admin (000)     Compliance (7100)     American Managed Care     January     (146,367)
    DIFFERENCE (48,789)
    Any help would be appreciated.

    Of course there is. This is the kind of calc script that only gets run once, so make usre you test it well before doing it on production and make a backup of production before doing it.
    It would be something like
    Fix(time frame, accounts to be flipped, level zero other dimensions)
    actual = actual * -1;
    EndFix
    Cal dim dimensions
    Note, I chose actual, but you could do it for any dimension that has a single or only a couple of members. What ever dimension you choose to do the calculation on, it can't be included in the fix statement

  • How to get  the last used session id for a browser session

    In HTMLDB 2.0 it is not possible to start a page with authentication without a SESSION_ID and when you start a public page without a SESSION_ID, then every time a new SESSION_ID is generated when you don't use the SESSION_ID in the URL.
    In the same browser session I want to make a URL call to a HTMLDB page without a SESSION_ID and this page has to give back the last used SESSION_ID.
    How can I do that?

    Fred - You could record that session ID in a table. Each time your authenticated application runs, it would update that table with the "latest" session ID, perhaps using an application process. Then when you are formulating the URL to the public page from another application, you'd get the session ID from that table. Or you could use the page sentry component of your app's authentication scheme to send a cookie to the browser on every page view. The cookie would contain the session ID and the other application could access the cookie to complete the URL.
    Scott

  • How to cusotmize the attribute of being mandatory for master data and order

    Hi,everyone
    how to make the  un-mandatory field on the verdor master data mandatory?
    Also, How  to set to define my own mandatory fields on  purchase order?   I also need to remove the mandatory setting which is pre-set by the system on many docutments&master data.
    How to fullfil them.
    thank very much

    hi
    for vendor master
    spro>Logistics - General>Business Partner>Vendor>Control>Define Account Groups and Field Selection (Vendor)
    or code  OMSG
    material master 
    OMSR
    Purchase Order
    Go to SPRO > MM > Purchasing > Purchase Order > Define Document Types > here get the Field selection key for the PO Doc type
    Now go to SPRO > MM > Purchasing > Purchase Order > Define Screen Layout at Document Level > Here the field selection key, under selection group "GR/IR control", mark "GR-based invoice verification" field as mandatory
    hope it help
    try asking the questions one by one
    regards
    kunal

  • How to get the functionality of  FM 'RV_PRICE_PRINT_ITEM' for archived data

    Hi All,
    I am trying to print archived billing data using archiving object SD_VBRK. I am able to print all the related information except the pricing.
    Apart from reading all the tables archived under the archiving object SD_VBRK,  I also need to use the function module 'RV_PRICE_PRINT_ITEM' to print the pricing related information on the SAP form.
    However this function module reads the data from standard tables KONV etc., which are archived. Due to this I can not use this function module for printing the pricing related information for archived billing document.
    However I need to incorporate similar functionality for the archived data.
    Can anyone help me in replacing the FM 'RV_PRICE_PRINT_ITEM' for the archived data.
    Thanks and Regards,
    Santhoshi

    Please use this FM to read information from the Archived mode '/PBS/RV_PRICE_PRINT_ITEM'
    Thanks,
    Ranjith.

  • How to increase the number of processes taken for loading data?

    Hi,
    While loading data from R/3 to BW, we found that the particular load is taking 2 processes to load data into Cube.
    Is there anyway to increase the number to 4 ?
    Thanks in advance.
    Bobby.

    Bobby,
       to my knowledge we can't change that. Let me explain this, we have setting in the source system for DS default Data Transfer. there we will assign the processes. if you want to assign 4 you need to change the setting in the source system. For flat files we can change in BW System. We can maintain the setting in the Infopackage level(wht we are assigned in the Source System), but we can't change the process.
    in order to check the setting in source system  SBIW--> General Settings --> Control Parameters for Data Transfer.
    we need to change here, this will effect to all the Data Sources. Before making changes check with your basis.
    All the best.
    Regards,
    Nagesh Ganisetti.

  • ??? Sign flip on Attribute using report script ???

    We are using an Essbase report script to extract data that we then process with HAL. Since the system we are loading into uses natural balances, we need to flip the sign on a revenue accounts (have 'Revenue' attribute in Essbase).Is there a way to do the sign flip on data based on the value of an attribute? I could do it once the data is back in HAL, but it would be easier if we could do it on the data extract.Thanks,TomB

    I'm using example 4.
    This is what I have: 
    $UpdateUserAttributesArray = 'sn','givenName','initials','displayName','info','mail','departmentNumber','department','telephoneNumber','ipPhone','title','physicalDeliveryOfficeName','employeeType'
    Function StudentNameChange {
        $Attributes=BuildUserTable $UpdateUserAttributesArray
        Set-ADuser $User.sAMAccountName -Replace @{mail="$User.mail";targetAddress="$User.mail";proxyAddressess="SMTP:$User.mail";sn="$User.sn";cn="$User.sn + $User.givename"}
    $UpdateUserAttributesArray sets the value for the import file.
    StudentNameChange should set the updated value has needed.
    The script runs but no settings are changed.
    Set-AdUser $User.sAMAccountName  -mail $User.mail -surname $User.sn
    Like that.,
    Replace is only for optional attribute.
    Function does not specifi $user so that may also be missing.
    I think you need to spend some time learning the basics of PowerShell. It looks like you are just gluing things together thazt you have found with no understranding of how any of the bits work.
    Try just setting one user at a command prompt until you see how the CmdLet and PowerShell work.  Post single simple questions as you try each parameter.
    # build a test user object
    $user New-Object PsObject@{
    SamAccoutnName='somename'
    Mail='[email protected]'
    SN='lastname'
    GivenName='John'
    proxyAddresses='...<list of addresses>'
    #start like this and add items until you understand what is working.
    Get-AdUser $user.SamAccountName |
    Set-AdUser -Surname $user.sn -GivenName $user .GivenName -Replace @{Mail='$($user.Mail'}
    #use Rename-Object to change CN.
    You need to learn the simple bits before you try to do grand things.
    ¯\_(ツ)_/¯

  • How to run the job using DBMS_SCHEDULER

    How to run the job using DBMS_SCHEDULER
    pleas give some sample Iam very new to DBMS_SCHEDULER

    Hi
    DBMS_SCHEDULER
    In Oracle 10g the DBMS_JOB package is replaced by the DBMS_SCHEDULER package. The DBMS_JOB package is now depricated and in Oracle 10g it's only provided for backward compatibility. From Oracle 10g the DBMS_JOB package should not be used any more, because is could not exist in a future version of Oracle.
    With DBMS_SCHEDULER Oracle procedures and functions can be executed. Also binary and shell-scripts can be scheduled.
    Rights
    If you have DBA rights you can do all the scheduling. For administering job scheduling you need the privileges belonging to the SCHEDULER_ADMIN role. To create and run jobs in your own schedule you need the 'CREATE JOB' privilege.
    With DBMS_JOB you needed to set an initialization parameter to start a job coordinator background process. With Oracle 10g DBMS_SCHEDULER this is not needed any more.
    If you want to user resource plans and/or consumer groups you need to set a system parameter:
    ALTER SYSTEM SET RESOURCE_LIMIT = TRUE;
    Baisc Parts: Job
    A job instructs the scheduler to run a specific program at a specific time on a specific date.
    Programs
    A program contains the code (or reference to the code ) that needs to be run to accomplish a task. It also contains parameters that should be passed to the program at runtime. And it?s an independent object that can referenced by many jobs
    Schedules
    A schedule contains a start date, an optional end date, and repeat interval with these elements; an execution schedule can be calculated.
    Windows
    A window identifies a recurring block of time during which a specific resource plan should be enabled to govern resource allocation for the database.
    Job groups
    A job group is a logical method of classifying jobs with similar characteristics.
    Window groups
    A window groups is a logical method of grouping windows. They simplify the management of windows by allowing the members of the group to be manipulated as one object. Unlike job groups, window groups don?t set default characteristics for windows that belong to the group.
    Using Job Scheduler
    SQL> drop table emp;
    SQL> Create table emp (eno int, esal int);
    SQL > begin
    dbms_scheduler.create_job (
    job_name => 'test_abc',
    job_type => 'PLSQL_BLOCK',
    job_action => 'update emp set esal=esal*10 ;',
    start_date => SYSDATE,
    repeat_interval => 'FREQ=DAILY; INTERVAL=10',
    comments => 'Iam tesing scheduler');
    end;
    PL/SQL procedure successfully completed.
    Verification
    To verify that job was created, the DBA | ALL | USER_SCHEDULER_JOBS view can be queried.
    SQL> select job_name,enabled,run_count from user_scheduler_jobs;
    JOB_NAME ENABL RUN_COUNT
    TEST_abc FALSE 0
    Note :
    As you can see from the results, the job was indeed created, but is not enabled because the ENABLE attribute was not explicitly set in the CREATE_JOB procedure.
    Run your job
    SQL> begin
    2 dbms_scheduler.run_job('TEST_abc',TRUE);
    3* end;
    SQL> /
    PL/SQL procedure successfully completed.
    SQL> select job_name,enabled,run_count from user_scheduler_jobs;
    JOB_NAME ENABL RUN_COUNT
    TEST_ABC FALSE 0
    Copying Jobs
    SQL> begin
    2 dbms_scheduler.copy_job('TEST_ABC','NEW_TEST_ABC');
    3 END;
    4 /
    PL/SQL procedure successfully completed. Hope it will help you upto some level..!!
    Regards
    K

  • When we use calculation script and when we use business rule

    when we use calculation script and when we use business rule can anyone please tell me

    Re the OP's question, here is an excellent introduction to Calculation Manager and business rules. It was the first hit when I googled "calculation manager hyperion".
    http://ranzal.wordpress.com/2010/06/11/oracle-hyperion-calc-manager-%E2%80%93-part-1/
    You can also go to odtug.com -- the Tech Resources section has a series of presentations on Calculation Manager, from beginner to intermediate.
    The added benefit with business rules are that you can use variables and runtime prompts. You can also link planning with business rules and pass information from a web form into a business rules.^^^Only with Planning. There are no runtime prompts with Essbase in 11.1.2.2 but I hear it is coming back in 11.1.2.3
    We can use Business Rule for all applications and it is GUI.^^^Doesn't have to be GUI-based. You can (depending on version) flip back and forth between GUI and script. I have not tried writing (nor can I actually think why you would want to do this) a Calc Mgr rule for multiple apps. Maybe you are thinking of a script object that can be called multiple times?
    To check whether a calc script is executed or not you have to use the Essbase application database log file (Plan1.LOG)^^^As business rules are, sooner or later, translated to BSO (and hey, ASO too and HFM and Fusion and HPCM and they can differ, a lot, so this is not always true) calc script language, you can always check in the application log to see what is run if Planning or BSO Essbase.
    Regards,
    Cameron Lackpour

  • How to get the last page  SAP Script form

    How to get the last page  SAP Script form.
    I want to print a specific information in the last page of SAP form (Script). Please tell me how to get the last page number.
    Regards

    Hi
    You have to check the system variable &NEXTPAGE&, if it's 0 it means you're in the last page.
    From SAP Help:
    This symbol is used to print the number of the following page. The output format is the same as with &PAGE& .
    Note that on the last page of the output, in each window that is not of type MAIN, &NEXTPAGE& has the value 0.
    /: IF &NEXTPAGE& = '0'
       Last page
    /: ENDIF
    Max

  • How to save the output of sap script to pdf document in sap

    hi abapers
    how to save the output of sap script in sap so that can retrieve the saved document later.
    i have to save the rcia output from sap script in pdf document in sap so that it can be retrieved later
    how to use dms

    Hi deepika,
    This thread will solve ur problem OTF  -> PDF
    Regards,
    Pravin

  • How to save the output of sap script in sap so that can be retrieved later

    hi abapers
    how to save the output of sap script in sap so that can retrieve the saved document later.
    i have to save the rcia output from sap script in pdf document in sap so that it can be retrieved later
    how to use dms
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Dec 26, 2008 11:01 AM

    Hi Deepika,
    Look into this link https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/401cca81-b861-2910-ada2-f416dfb3b3fe
    Regards,
    Pravin

  • How to detect the sign of a number?

    I have output which gives either negative number or positive number. My problems is how to detect the sign of the number and output boolean value? For example if input number is negative like -23.11 I want to output false and if the number is positive like 17.99 I want to output true.
    T H A N K S!
    Solved!
    Go to Solution.

    Message Edited by Phillip Brooks on 07-16-2009 11:08 AM
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • Does anyone know how to calculate the impedance using waveforms

    does anyone know how to calculate the impedance using waveforms?

    studentproject wrote:
    the waveforms represent the voltage and current values across a capacitive load. I am trying to find out if there is a way to do automatic calculations using the inputs from the waveforms
    Hopefully a single sinusoid tone.  Otherwise things get really interesting.  Also know that impedance is based on the frequency.  I'll have to dig into this again.  I have not had to calculate an impedance in well over 10 years.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Formula flip the sign between child and parent account member

    I have created two accounts as below which is parent to the child (670122) and child (670122.01) account and my account dimension looks as below
    Account    PARENTH1     GROUP          ACCTYPE     RATETYPE
    670122        670120         Profit & Loss            EXP           AVG
    670122.01  670122         Profit & Loss            EXP          AVG     
    PRETAX        INCOME         Profit & Loss            INC          AVG     
    Now I have added the simple formula in the child account 670122.01 in the formulah1 column as [Account].[PRETAX] Which is Income account but when I retrieve the data  using EVDRE(), the Values are shown as below
    670122.01     670122
    3,398,006.86      (3,398,006.86)
    Why do the parent and child has different sign when both accounts are same account type as Expense. Instead of formula if I put hardcoded value, then both parent and child accounts has the same value (not flipping the sign)

    We are using BPC 5.0 and SQL Server 2005
    The hierarchy is like this
    670120 -> 670122 -> 670122.01
    The dimension formula is in 670122.01 as like this ( [Account].[PRETAX]-[Account].[665000] ), 665000 is a expense account and pretax is income account
    When I do the EVDRE on those above accounts
    670120     670122     670122.01
    (13,228,910.18)     (13,228,910.18)     13,228,910.18
    When 670122.01 is rolled up to next immediate level, the value in 670122 has negative value. 670122 is rolled up to 670120, but they both have same value - Is this a known issue in the BPC 5.0?

Maybe you are looking for

  • PO WISE TAX CODE REPORT

    Dear Experts,                      How can i get a PO wise tax code in a report form without any development.I tried using the SQI Viewer(TCode-SQVI). Kindly get me  a solution..

  • How many ipods do i have to go through with the red x?

    i have had 3 ipods in the past 6 months the recent one ive had for 3 weeks after getting it back ive sent in 3 ipods so far and getting tired of putting music and videos on it and having it end up with the red X. how many ipods do i have to go throug

  • Spotlight and Time Capsule

    Does spotlight work on Time capsule? If it does, can I turn it off so it doesn't index TC?

  • Cannot acces appstore on macbook version 10.6.8

    cannot acces appstore on macbook version 10.6.8, an unkown error has occured, tried to delete the temporary file it still didnt work, is there any solution?

  • Please explain steps for Time based reduction scenario

    Hi, I am done with the RFC connections. The scenario I am going to work with is 'Time Based Reduction'. Can somebody please explain the process step-by-step from here on. Thanks, Mohammed Tauseef Ahmed