Lookup total value in logic script

hi experts,
is it possible to lookup with same criteria that returns many row and fetch the total of all returning rows ? if it is possible, how ?
you can see at attached picture, i try to lookup with same criteria (row 3 & row 5), the different only at column 3. what i want is fetch the total value of row 3 & row 5 = 1000 + 10000 = 11000
but what i get is 1000 which means only fetch the first row (row 3).
the code that i using in my logic script:
*XDIM_MEMBERSET ACCOUNT = 551010
*XDIM_MEMBERSET METRIC = PERCENTAGE
*XDIM_MEMBERSET RPTCURRENCY = LC
*XDIM_MEMBERSET SUBITEM1 = NO_SUB1
*XDIM_MEMBERSET MEASURES = PERIODIC
*XDIM_MEMBERSET SUBITEM3 = NO_SUB3
*XDIM_MEMBERSET BUAREA = NO_BUAREA
*XDIM_MEMBERSET ENTITY = %ENTITY_SET%
*XDIM_MEMBERSET CATEGORY = 2014Q3
*XDIM_MEMBERSET AUDITTRAIL = Input, OFFSET
*XDIM_MEMBERSET INTERCO <> NO_INTERCO
*XDIM_MEMBERSET TIME = 2014.07
*LOOKUP Finance
*DIM EXP_Input:AUDITTRAIL = Input
*DIM EXP_Input:METRIC = AMOUNT
*ENDLOOKUP
thank you.

Hi Yoki,
Please, read How To: Ask questions about Script Logic issues
Point 9! and other...
In general it's possible to use LOOKUP to get a value of the parent node, but it's not clear what total do you want to get.
Vadim

Similar Messages

  • Compound boolean logic scripting

    Greetings!  I would like to pick everyone's brains for how one might implement compound boolean logic scripting in LabVIEW ... specifically LabVIEW-RT.
    My application is an in-vehicle data acquistion and logging setup.  The app is setup so that the user provides a configuration file which is the list of channels (GPS, DAQ, CAN) that they wish to record...so this means there isn't any hard coded variable but an array of clusters built from the configuration file.
    A mode of operation is a 'trigger' mode, which means the logger doesn't record anything until a trigger has occured.  Currently the user provides a simple comparator (0=lessthan, 1=equalto, 2=greaterthan, else=none), and the trigger value.
    The users want to be able do compound conditions like PARAMETER <= x OR Parameter >= y ... possiblly even between 2 different data points like PARAMETER_A <= x AND PARAMETER_B >=y.
    Any comment, hints, tips, suggestions ?
    Thanks!
    Jason Stallard

    Jason,
    It's interesting how often the problem of text-based scripting to drive LV pops up.
    I had a problem with similar properties: given a set of data and an
    arbitrary set of rules, substitute data into each rule and see if it
    evaluates to true or false.  This is used to provide directions
    from engineers to operators on how to perform failure analysis and
    recovery, without the engineer needing to be present.
    The problem that I ran into turns out to not be in evaluating the data
    and rules, but in parsing the arbitrary input equation.  There
    just isn't any general way inherent to LV to parse an arbitrary text
    language into an intermediate form (like a postfix expression or an
    abstract syntax tree).  A relative lack of recursion makes it a
    little more painful as well.
    I can't release my code, but it essentially had three parts:
    1.  In a given rule in infix form (variableA<7, for instance),
    perform macro replacement.  Essentially, substitute values for
    variable names, perform file lookups, etc.
    2.  Transform the substituted infix equation into a much easier to
    deal with postfix equation.  (Thanks to Mike Porter for this
    suggestion as well).  This step can be non-trivial.  I'm
    currently building an editor that will build equations more easily,
    sparing my engineers much pain.
    3.  Evaluate the postfix equation for a single true/false
    result.  This algorithm should be available in many books, but I
    adapted the one from an earlier version of this book:
    http://www.amazon.com/gp/product/0201702975/qid=11​37608429/sr=2-3/ref=pd_bbs_b_2_3/103-3337903-13870​46?s=books&v=glance&n=283155
    It also contains a short description of a stack-based parser that's fairly easy to implement for step 2.
    Anyway, there's my 2 cents.  Maybe someday I'll find time to write
    that LV based parser generator to "simplify" all of this   Good
    luck!
    Joe Z.

  • Logic script invalid function mid()

    Hi Expert
    Can i use mid() function in the logic script like:
    *Rec(FACTOR=1,Location=mid(ENTITY.Loc,3,20))
    I do try, but it store  "mid(ENTITY.Loc,3,20)" to my database.
    any idea how to achieve this.
    Thanks.

    Hi Guik,
    I think the best way to achieve this would be by following these steps:
    1. Add an additional property to your Entity dimension which would contain the value of the MID function. This would be there for all ID's
    2. In your script logic you would need to use the Lookup function that would be able to lookup this property using the actual ID
    Hope this helps!
    Santosh

  • How to get total value from checkbox list?

    I have a list of checkbox items - all number values. I want to then get the total value from all of the check items and add that value to the database. Can this be done?
    Also, anyone know of one source where I can get detailed information on how to best use Web Apps and all of it's possibilities and limitations? Most of the tutorials that I have seen so far say that you can do most anything with Web Apps; however, the tutorial examples leave a lot of questions unanswered. I saw that Adobe has an article that shows how to build a basic web app and that it is "part 1" in a series. Anyone know where to find parts 2, 3, etc?
    Thanks,

    Hi there,
    Good day, i hope this will give you some ideas
    for example this is your html
    <input type="checkbox" name="test" value="1">1
    <input type="checkbox" name="test" value="2">2
    <input type="checkbox" name="test" value="3">3
    <input type="checkbox" name="test" value="4">4
    and this is your jquery script
    <script type="text/javascript">
    jQuery("input@[name='test']").click(function() {
        var istrue = jQuery(this).is(":checked");
        if(istrue == true) {
            var urvalue = jQuery(this).val();
            alert(urvalue);
    </script>
    hope this helps you

  • Line item pricing based on total value of the order

    Hi,
    We need to charge as a separate line item (material) 'Insurance' as a % based on the total value of the order less one line item. Our orders are created on the web and posted via a BAPI.
    (a) depending on where the customer is located, we charge a certain added shipping cost.
    (b)  the customer has the choice to ask for insurance or not.
    The actual order may be 10 lines totaling $1,000 and due to location, the BAPI slaps on an added line item of $100. If the customer chose the insurance option, the BAPI needs to slap on another line item whose value would be, say 2% of the total order, i.e. 2% of 1000 (instead of on 1000+100). Of course, if the customer doesn't choose this option he is not charges this extra line and further if the customer is not in the particular region, the 100 charge may also not be there.
    The 2% can vary time to time so needs to be driven by a condition record based on %.
    How can we achieve this in the pricing procedure? The logic of how the BAPI will function is clear to us, we are stuck on the pricing procedure configuration.
    Glad to answer any further questions you may need for clarifications.
    Many thanks!

    Ideally insurance would be levied on end customer based on Inco Terms like CIF, DDU etc.,
    So you can have an access sequence for which you can make use of tables like 033 & 034 in V/07.  In VK11, for this combination, maintain the required insurance percent.
    In condition type V/06, for this condition type, maintain "C" for Manual entries, since you have indicated that customer has the choice.  Otherwise, this can be populated automatically in sale order.
    Similarly, for shipment cost also, you can have the Inco2 as one of the combination so that based on region, this condition type will be populated in sale order.  If you have shipment cost configured, then this can be achieved.
    In your pricing procedure, you have to assign the shipment cost condition type next to insurance and assign the From-To step accordingly.
    thanks
    G. Lakshmipathi

  • FM returns wrong total value for Limit type PO's

    Hi all,
    I am working on SRM 5.0 (SP13) ECS.
    I have implemented the BADI "BBP_WFL_APPROVAL_BADI" for determining the Approvers for PO whenevr a PO is changed.If the diference between the Old PO value and new PO value is > 1000 and the approval text field(custom text under "Documents" link) is set to "YES",then the WF approval is required and the approvers are determined.
    The above logic works fine for the Standard type PO's where the difference between the old value and new value is determined using FM "BBP_PD_PO_GETDETAIL"  by passing the GUID (for the change version and the active vesion) obtained at runtime in the BADI.
    However for the limit type PO's,whenevr I change the total value for the Limit item,I see that the FM "BBP_PD_PO_GETDETAIL" doesnt return the changed value but  always returns blank!
    Bcause I need to check bth the values i.e. Custom text set to "YES" as well as Total value diff ,I cant use the start conditions in tcode SWB_COND.ALso I need to fetch the approvers based on the price diff so I need this value at runtime in the BADI using the FM "BBP_PD_PO_GETDETAIL".
    Please advise why the FM is not returning the changed values for the Limit type PO and is there any other way(other table/FM) to get the changed value at runtime for the LIMIT type PO.
    Thanks for your time.
    Edited by: Rads1234 on Nov 18, 2010 4:39 AM

    Thanks for the rpely.
    Yes.I am using the GUID available at runtime in the  BADI "BBP_WFL_APPROV_BADI" which is the current change version GUID.I tried using that GUID to get the data from both FM as well as CDHDR and CDPOS tables.
    I think this is something related to LImit type PO because for Standard type PO's the FM returns the corretc changed value (as in the screen) for the change version GUID.I fail to understand why the changed values are shwon on the screen but are not stored anywhere in the system before actually ordering the PO!

  • Passing variables from DM to logic script problem (REPLACEPARAM)

    Dear All,
    I would like to send variables from data manager to a logic script. The script copies values from an account to an other. If I hardcode two accounts in the script, it works fine, but I want to pass these two accounts dynamically from data manager to the script.
    My advanced script in DM looks as follows:
    PROMPT(SELECTINPUT,%ENTITY_M%,,"Select entity:","ENTITY_DIM")
    PROMPT(SELECTINPUT,%SOURCE%,,"Select source account:","ACCOUNT_DIM")
    PROMPT(SELECTINPUT,%TARGET%,,"Select target account:","ACCOUNT_DIM")
    INFO(%EQU%,=)
    INFO(%TAB%,;)
    TASK(PROCESS_CHAIN_RUNL,TAB,%TAB%)
    TASK(PROCESS_CHAIN_RUNL,EQU,%EQU%)
    TASK(PROCESS_CHAIN_RUNL,SUSER,%USER%)
    TASK(PROCESS_CHAIN_RUNL,SAPPSET,%APPSET%)
    TASK(PROCESS_CHAIN_RUNL,SAPP,%APP%)
    TASK(PROCESS_CHAIN_RUNL,SELECTION,%ENTITY_M%)
    TASK(PROCESS_CHAIN_RUNL,LOGICFILENAME,ACCOUNT_COPY_LOGIC.LGF)
    TASK(PROCESS_CHAIN_RUNL,MEMBERSELECTION,SOURCE%EQU%%SOURCE%%TAB% TARGET%EQU%%TARGET%)
    In the logic script, I'm using $SOURCE$ and $TARGET$ as variables, but it seems that only the first of them gets the value from DM, the other one not, and I always get an error message:
        Member "$TARGET$" not exist
    The second variable doesn't seem to get the value. If I use only one variable, either SOURCE or TARGET, it works fine...
    ...and I also tried to replace the MEMBERSELECTION statement with a REPLACEPARAM statement:
    TASK(PROCESS_CHAIN_RUNL,REPLACEPARAM,SOURCE%EQU%%SOURCE%%TAB% TARGET%EQU%%TARGET%)
    This way I got an other error message, saying: "Member .../PrivatePublications/user not exist"
    Do you have any idea? How to pass two user selected parameters to a logic script?
    Thanks for your help,
    A.

    Hi CsernusAttila
    You cannot use ACCOUNT_DIM with promp SELECT  and variable $SOURCE$ because it only works with variable ACCOUNT_SET in your script logic.
    instead of you can use TEXT
    PROMPT(TEXT,%,ENTITY_M%%,"Select Entity",)
    PROMPT(TEXT,%,SOURCE%%,"Select Source",)
    PROMPT(TEXT,%,TARGET%%,"Select Target",)
    INFO(%EQU%,=)
    INFO(%TAB%,;)
    TASK(PROCESS_CHAIN_RUNL,TAB,%TAB%)
    TASK(PROCESS_CHAIN_RUNL,EQU,%EQU%)
    TASK(PROCESS_CHAIN_RUNL,SUSER,%USER%)
    TASK(PROCESS_CHAIN_RUNL,SAPPSET,%APPSET%)
    TASK(PROCESS_CHAIN_RUNL,SAPP,%APP%)
    TASK(PROCESS_CHAIN_RUNL,SELECTION,%SELECTION%)
    TASK(PROCESS_CHAIN_RUNL,LOGICFILENAME,ACCOUNT_COPY_LOGIC.LGF)
    TASK(PROCESS_CHAIN_RUNL,REPLACEPARAM,SOURCE%EQU%%SOURCE%%TAB% TARGET%EQU%%TARGET%)
    or you can modify your script like this
    *XDIM_MEMBERSET ACCOUNT=%ACCOUNT_SET%
    *XDIM_MEMBERSET ENTITY=%ENTITY_SET%
    And your Prompt like this
    PROMPT(SELECTINPUT,,,,"%ACCOUNT_DIM%,%ENTITY_DIM%,")
    TASK(PROCESS_CHAIN_RUNL,TAB,%TAB%)
    TASK(PROCESS_CHAIN_RUNL,EQU,%EQU%)
    TASK(PROCESS_CHAIN_RUNL,SUSER,%USER%)
    TASK(PROCESS_CHAIN_RUNL,SAPPSET,%APPSET%)
    TASK(PROCESS_CHAIN_RUNL,SAPP,%APP%)
    TASK(PROCESS_CHAIN_RUNL,SELECTION,%SELECTION%)
    TASK(PROCESS_CHAIN_RUNL,LOGICFILENAME,ACCOUNT_COPY_LOGIC.LGF
    I hope it helps
    Regards!!

  • Grand Total value displaying in all rows

    Hi All,
    I am facing issue with report data in one of my environment (OBIEE 11.1.1.6.2) ,
    Let's say I have env1 and env1 with report A (Union Report)
    In env1 the report is working fine.
    Col1--------- Msr1---------Msr2
    A---------------1-------------2
    B---------------2-------------4
    Subtotal-----3-------------6
    D--------------10------------1
    E--------------10------------2
    Subtotal ----20-----------3
    Grand Total-23-----------9
    the same report in env2,
    Col1--------- Msr1---------Msr2
    A----------------23------------9
    B----------------23------------9
    Subtotal------23------------9
    D---------------23------------9
    E---------------23------------9
    Subtotal -----23-----------9
    Grand Total--23-----------9
    The grand total value is repeated instead of row value in env2.
    I tried moving the reports around the environments but no use, I believe some enviornment level setting is the reason for this issue. (I have few more environments everywhere it is working fine like env1, the only problem is with env2).
    Could anyone give some suggestions.
    Thanks,
    Vino

    It is happening because of RPD corruption.
    Copied physical, bmm and presentation layer from env2 to env1 then same issue started occuring in env1.
    the following things worked,
    1) Created a new bmm and SA in env1 from env2 physical model, this worked fine.
    2) Copy the BMM from env2 to env1 - Let say BMM1
    Now recopied the BMM1 in the logical layer of env1 and rename it as BMM2 this also worked fine.
    Looks like the BMM layer was corrupted, don't know the reason why it happened..
    Thanks,
    Vino

  • Logic Script Error - 42

    Hello Friends,
    I am facing the logic script error when validating the script. "the script is apparently invalid, as you cannot have member "". The logic is run for grouped cost center.
    Logic Script:
    //***********************START OF HEADER*****************
    //SUB QUERY:
    //PURPOSE:      Copy high Level forecast data from Actuals, Budget, commitments to base level cost centres defined for forecat
    //CALLED FROM:  Data Manager Package
    //WHO:          Matt Penston (itelligence)
    //VERSION:      1
    //DATE:         26-11-2012
    //CHANGE LOG:
    //***********************END OF HEADER********************
    //********************** Need to first of all clear down the BW data in the base member costcentres ***************
    // Set XDIM_MEMBERSET
    *XDIM_MEMBERSET CATEGORY = Actual,Budget,COMMITMENTS
    *XDIM_MEMBERSET AUDITTRAIL = BW
    *XDIM_MEMBERSET ACCOUNT = <ALL>
    *XDIM_MEMBERSET RPTCURRENCY = LC
    *XDIM_MEMBERSET ACCDETAIL = F_None
    //Select Current Month Time Member to copy from
    //*SELECT(%TIME_CURRMTH_FYA%,"[ID]","TIME","[FCST_PROFILES] = 'A'")
    //*XDIM_MEMBERSET TIME = %TIME_CURRMTH_FYA%
    *XDIM_MEMBERSET TIME = BAS(201314.TOTAL)//CHANGE ONCE PER YEAR
    //Select CostCentres for high level Forecast entry
    //*SELECT(%HL_FCST_ENT%,"[ID]",COSTCENTRE,"[HL_FCST_ENT] = 'Y'")
    // Use For Loop to run through the Cost Centres
    //*FOR %HL_FCST_FOR% = %COSTCENTRE_SET%
    *XDIM_MEMBERSET COSTCENTRE  = BAS(%COSTCENTRE_SET%)
    //*SELECT(%HL_FCST_BASE%, "[ID]", COSTCENTRE, "[HL_FCST_PRNT] = %COSTCENTRE_SET%")
    *SELECT(%HL_FCST_BASE%, "[HL_FCST_BM]", COSTCENTRE, "[ID]= %COSTCENTRE_SET%")
    // Set the Ref Data to Transaction, is the default but defined anyway.
    *WHEN_REF_DATA=TRANSACTION_DATA
    *WHEN CATEGORY
    *IS *
    *REC(FACTOR=-1, AUDITTRAIL = BW_HL, COSTCENTRE = %HL_FCST_BASE%)
    *REC(FACTOR=1, AUDITTRAIL = BW, COSTCENTRE = %HL_FCST_BASE%)
    *ENDWHEN
    //*NEXT
    *COMMIT
    The Error Came once validate above script:
    Can anyone please guide the same.
    Regards,
    Dev.

    Hello Vadim,
    As you guided above mail yes, I have put the Data Region: "COSTCENTRE=YPROG" and the below script is copied in Script File Location:
    *XDIM_MEMBERSET CATEGORY = Actual,Budget,COMMITMENTS
    *XDIM_MEMBERSET AUDITTRAIL = BW
    *XDIM_MEMBERSET ACCOUNT = <ALL>
    *XDIM_MEMBERSET RPTCURRENCY = LC
    *XDIM_MEMBERSET ACCDETAIL = F_None
    //Select Current Month Time Member to copy from
    *XDIM_MEMBERSET TIME = BAS(201314.TOTAL)//CHANGE ONCE PER YEAR
    *XDIM_MEMBERSET COSTCENTRE  = BAS(%COSTCENTRE_SET%)
    *SELECT(%HL_FCST_BASE%, "[HL_FCST_BM]", COSTCENTRE, "[ID]= %COSTCENTRE_SET%")
    // Set the Ref Data to Transaction, is the default but defined anyway.
    *WHEN_REF_DATA=TRANSACTION_DATA
    *WHEN CATEGORY
    *IS *
    *REC(FACTOR=-1, AUDITTRAIL = BW_HL, COSTCENTRE = %HL_FCST_BASE%)
    *REC(FACTOR=1, AUDITTRAIL = BW, COSTCENTRE = %HL_FCST_BASE%)
    *ENDWHEN
    //*NEXT
    *COMMIT
    and the Log is given : UJK_VALIDATION_EXCEPTION:Member "" not exist
    Please let me know were is the problem.
    My findings:
    After checking the Category Dimension come to know that the member dimension is maintained with 201213.TOTAL and in script logic we are using the 201314.TOTAL.
    Can you please let me know what is the issue in the script logic.
    Regards,
    Rajesh. K

  • Inventory movement using logic script - BPC NW 10

    Hello BPC experts,
    I'm working on inventory movement using logic script. The idea is that the initial stock of the first period equals the final stock of the previous period.
    Here is an example of my inventory report : (Dimension INVT in function of dimension TIME)
                                                  2014.01       2014.02      2014.03        2014.04
    F01 Stock first period                  12            
    F02 Initial Stock                          12                 11              10                 9
    F03 Inventory Inputs                    2                   4                6                   8
    F04 Inventory Outputs                 3                   5                7                   9
    F05 Final Stock                          11                 10               9                   8
    The Stock of the first period is entered
    The initial Stock = Stock first period (12 in our case)
    Inventory inputs and Outputs are entered
    Final Stock = Initial Stock + Inventory Inputs - Inventory Outputs
    I tried the following script but it does not work :
    *XDIM_MEMBERSET TIME = 2014.01 //we should then retrieve the first period of each year which is not necessary the first month of the year
    *WHEN TIME
    *IS 2014.01
    *REC(EXPRESSION = [INVT].[F01], INVT = F02)
    *ENDWHEN
    *SELECT(%TIME_LIST%,"[ID]","TIME","[PREVMEMBER]"<>"") // PREVMEMBER is a property of TIME
    *XDIM_MEMBERSET TIME = %TIME_LIST%
    *XDIM_MEMBERSET INV = F05
    *WHEN TIME
    *IS %TIME_LIST%
    //Something is missing here.. How to retrieve F05 values related to all periods and copy them in F02
    *REC(EXPRESSION =[INVT].[F05],INVT = F02)
    *ENDWHEN
    Please how can I achieve this ?
    Thanks
    Maha

    Hi Vadim,
    Thank you for your reply
    I'm working with BPC NW 10 SP 05 (CPMBPC 801 SP 05), Engine ABAP
    My model contains the following dimensions ACCOUNT (A), TIME (T), CATEGORY (C), ENTITY (E), CURRENCY (R), INVT (User Def)
    In the INVT dimension we have members like (Stock first period, Initial Stock, Inventory Inputs, Inventory Outputs, Final Stock)
    - [INVT].[Stock first period] is entered
    - [INVT].[Initial Stock] = [INV].[Stock first period]
    - [INVT].[Inventory input] and [INVT].[Outputs] are entered
    - [INVT].[Final Stock] = [INVT].[Initial Stock] + [INVT].[Inventory Inputs] - [INVT].[Inventory Outputs]
    We want to calculate Initial Stock in DEFAULT.lgf :
    [INVT].[Initial Stock] when (TIME=2014.01) = [INVT].[Stock First Period] when (TIME= 2014.01)
    [INVT].[Initial Stock] when (TIME=2014.02) = [INVT].[Final Stock] when (TIME= 2014.01)
    [INVT].[Initial Stock] when (TIME=2014.03) = [INVT].[Final Stock]  when (TIME=2014.02)
    [INVT].[Initial Stock] when (TIME=2014.04) = [INVT].[Final Stock]  when (TIME=2014.03)
    When a user enters the values of "Stock first period", "Inventory Inputs" and "Inventory Outputs", Initial Stock and Final stock should be calculated via logic script
    Regards
    Maha

  • Logic script considering comments

    Hi everybody,
    I would like to know wether is it possible to generate a logic script which is able to obtain a comment associated to a dimensional point of the cube. Then it should use the comment to look for a member of a different dimension with the ID equals to the comment. Then, I want to copy a transactional value associated to this ID in the previous dimensional point from which we got the comment.
    Firstly, I would like to know if it is feasible to do? Then, in case it is, I would start thinking how to really implement it.
    Any help will be appreciated,
    Regards,
    Antonio

    Many Thanks Sheldon,
    I discart using comments to develop the logic. However, do you know if is possible to get in a variable the value of a property of a dimension member? it would be very usefull since it would solve the problem we have in the new solution we have proposed for the logic script.
    Regards,
    Antonio

  • Logic script average

    hi experts,
    how to use syntax "avg" in logic script? or is there any way to implement the average calculation?
    as example of data in 1 model:
    emp01     entity01     interco01     percent     0.1
    emp02     entity01     interco01     percent     0.2
    emp03     entity01     interco01     percent     0.3
    emp01     entity01     interco01     amount     1
    emp02     enitty01     interco01     amount     1
    emp03     entity01     interco01     amount     1
    calculate average:
    avg = sum(percent) / sum(amount)
    avg = 0.6 / 3
    avg = 0.2
    thank you.

    hi Vadim,
    this average result will be stored and using as basis of other calculation. this average will show in input template with the standard calculation at backend, but user can overwrite it in input template.
    percent means proportion to be allocated
    amount means amount of headcount to related employee (this value always 1 for every employee)
    after i get this average, this value will be used as driver to calculate cost.
    additional example from above:
    emp01     entity01     interco01     cost     1000
    emp02     enitty01     interco01     cost     1000
    emp03     entity01     interco01     cost     1000
    expected average result:
    no_emp     entity01     interco01     avg     0.2
    record another row:
    no_emp     entity01     interco01     avgcost     0.2 * 3000
    i just give a simple example and want to know how to do average in logic script. is it possible to calculate average using logic script?
    thank you.

  • Logic Script (Copying records while save from input screen)

    Hi Gurus,
    How to handle below requirement in script logic:
    Input screen column = Time (5 years)
    User want to input forecast data in current year and same data should be copied over to rest of the 4 years.
    I am new to Logic Script!
    Thanks.

    Another option is to add 4 properties to TIME dimension: SHIFT1,SHIFT2,SHIFT3 and SHIFT4 and fill them with members:
    2014.01 -> 2015.01 2016.01 2017.01 2018.01
    2014.02 -> 2015.02 2016.02 2017.02 2018.02
    ... etc
    Some maintenance work...
    The code will be simple and without FOR/NEXT loop:
    *WHEN CATEGORY
    *IS FORECAST
    *REC(EXPRESSION=%VALUE%,TIME=TIME.SHIFT1)
    *REC(EXPRESSION=%VALUE%,TIME=TIME.SHIFT2)
    *REC(EXPRESSION=%VALUE%,TIME=TIME.SHIFT3)
    *REC(EXPRESSION=%VALUE%,TIME=TIME.SHIFT4)
    *ENDWHEN
    Vadim

  • Testing values in logic

    I have used logic to post values to accounts based on the account number. Now I need to post values based on account values. Logically what I want to do is this;
    if account-1 value = account-2 value post account-1 value to account-3
    If Excel this would be a simple formula. In script logic I am struggling to find examples that reference the account values rather than the account ids.
    Thanks
    Cliff

    You can also use GET's in a *WHEN statement to get the value as follows:
    *WHEN ACCOUNT
    *IS REVENUE
         *WHEN GET(ACCOUNT="PRICE")
         *IS 0
              *REC(ACCOUNT=#PAYMENTS0,TIME=NEXT(0))
         *IS 1
              *REC(ACCOUNT=#PAYMENTS1,TIME=NEXT(1))
         *IS 2
              *REC(ACCOUNT=#PAYMENTS2,TIME=NEXT(2))
         *IS 3
              *REC(ACCOUNT=#PAYMENTS3,TIME=NEXT(3))
         *ENDWHEN
    *ENDWHEN
    Thanks,
    John

  • How to get totals at top in script????

    Hello Experts,
    I am developing Account Statement script .
    There are many text elements exist in script like 510, 511, ..............580.
    I want totals of debit, credit, opening and closing balance in first text element i.e 510 and in std it is calculated in 540.
    Can you plz tell me how to get this values in 510?
    Plz help me!!
    Thanks & Regards,
    Manisha
    Edited by: PATIL MANISHA on Jul 19, 2010 12:09 PM

    hi ,
    you can collect the final total value into anthore variable in the driver program ,print that into your text element 510 . if you don't want print actuval text element just you can use condition fo aviod that , try this may be it help you.
    Regards ,
    Nagu

Maybe you are looking for

  • File isnt opening in photoshop 6

    files aren't opening in photoshop 6, but different palettes, like layers, characters, for a file do open. Tried reinstalling photoshop software from original disk. Still doesnt work. Anyone know how to fix what's wrong

  • How to restore iPad that has been disabeled by wireless keyboard?

    My bluetooth keyboard seemed to have tried to put in the PIN to my iPad too many times and now it is completely disabeled. Restarting it does not work either. And I do not use iTunes at all. Just iCloud. Any ideas?

  • Clone tool broken for large images

    The clone tool from the retouch brick hangs Aperture 3 every time when applied to large images. By large I mean .tiff files that exceed a 100MB or so. When adding strokes with the clone brush, at some point the thumbnail processing hangs and the brow

  • Oracle 10g - lock statistics

    What are the different situations in which Oracle will lock existing table/index statistics automatically? As per my undrstanding to lock the statistics we must use "dbms_stats" package with lock_table_stats/lock_schema_stats procedures. I dont see a

  • TS1253 I am connected to internet through  modem. How can I use Time Capsule as a wreless harddrive and connection to USB printer

    Can I use a Time Capsule as a part of my network> I am connected to internet through modem and want to use Time capsule as  a wireless harddrive and wireless connection to usb printer. How can I do that? Please help