Using .lgx Script logic in package

Hello,
I am using SAP BPC 801 patch 04.
As shown in below screenshot, I want to use .lgx script file into organize package instead of .lgf. I have already validated and run .lgf file.
After validation .lgf file this will create .lgf file in backend. So I want to use this .lgx file into organize package under Advance tab.
Could anyone please help me in this how it is possible..
Best Regards,
Deepak Palsaniya

Hello Vadim,
Thanks for your reply.
You are right, lgf file depends on number of variable parameters and will generate accordingly.
But the same thing is possible in MS 7.0 as shown below if I pass full path of lgx file and that is working fine still.
%APPPATH%\..\AdminApp\%APP%\BU_For_LA_Expense.lgx
If I want to use this lgx for fixed variable parameter then is it possible to write lgx extension instead of lgf ?
Best Regards,
Deepak Palsaniya

Similar Messages

  • Hierarchy to use in Script Logic

    Hello Experts
    I am trying to transfer the Profit/(Loss) from P&L to Reserve Account in the Balance Sheet by running a script logic.
    I am using BPC 10 NW 7.4
    The hierarchy of  P&L, is designed to calculate the Profit of Loss for the period. I wrote the script by selecting node in the hierarchy and transfer to reserve account. However it is not working.
    To test my logic, instead of hierarchy, I tried with a base level account member, it is working.
    Following is the body of my logic.
    WHEN ACCOUNT.PARENTH1
    IS <P&L AFTER TAX> // The node which aggregate the value
    REC (EXPRESSION = %VALUE%, ACCOUNT = <RESERVE ACCOUNT>)
    How could I resolve it?
    Your expert ideas are much appreciated
    Kind Regards
    Abraham

    Hi Abraham,
    Nodes are not looped in WHEN/ENDWHEN, only base members.
    If you want to copy the node value to some target the best way is:
    *XDIM_MEMBERSET ACCOUNT=BAS(SOURCENODE)
    *WHEN ACCOUNT
    *IS * //scoped as base members of node
    *REC(EXPRESSION=%VALUE%,ACCOUNT=TARGETBASE)
    *ENDWHEN
    B.R. Vadim

  • CSA: Use with Script Logic

    Has anybody used CSA to protect a Script logic server. With so many remote applications attempting access to the script logic server and files, what method do you find is best to keep this server protected without opening up too many holes?
    Thanks!
    -Wyley

    I would make a group of servers that are allowed to talk to the Script login server and either turn off alerts for them or just make them informational.
    Also create another protection policy if you want even more protection on that server.

  • Script Logic (with Package) passing fixed parameter

    Hi!!!!
    I am creating a dynamic script that will be executed by a package.
    To create my dynamic script, I copied the "FX Restatemente.dtsx" and I will alter the code.
    I want to promp the %TIME_DIM% parameter, but the %CATEGORY_DIM% I want to set a fixed value, like "BUDGET".
    How can I do that???
    Bellow, the "FX Restatemente.dtsx":
    'DEBUG(ON)
    PROMPT(RADIOBUTTON,%CHECKLCK%,"Select whether to check work status settings when running logic.",1,{"Yes, check for work status settings before running logic","No, do not check work status settings"},{"1","0"})
    PROMPT(SELECTINPUT,,,"Please select category, entity and time for restatement",%TIME_DIM%)
    TASK(Execute formulas,USER,%USER%)
    TASK(Execute formulas,APPSET,%APPSET%)
    TASK(Execute formulas,APP,%APP%)
    TASK(Execute formulas,SELECTION,%SELECTIONFILE%)
    TASK(Execute formulas,LOGICFILE,%APPPATH%\..\AdminApp\%APP%\CalculaMetricas.LGX)
    TASK(Execute formulas,RUNMODE,1)
    TASK(Execute formulas,LOGICMODE,1)
    TASK(Execute formulas,CHECKLCK,%CHECKLCK%)
    Where and how I can set the %CATEGORY_DIM% with the fixed value of "Budget"??

    Hi,
    Some changes you need to make for that to work.
    You need to have the below statement in the script.
    *XDIM_MEMBERSET TIME= %TIME_SET%
    *XDIM_MEMBERSET CATEGORY= BUDGET
    And your DTSX file will look like
    'DEBUG(ON)
    PROMPT(RADIOBUTTON,%CHECKLCK%,"Select whether to check work status settings when running logic.",1,{"Yes, check for work status settings before running logic","No, do not check work status settings"},{"1","0"})
    PROMPT(SELECTINPUT,,,"Please select the time for restatement",%TIME_DIM%)
    TASK(Execute formulas,USER,%USER%)
    TASK(Execute formulas,APPSET,%APPSET%)
    TASK(Execute formulas,APP,%APP%)
    TASK(Execute formulas,SELECTION,%SELECTIONFILE%)
    TASK(Execute formulas,LOGICFILE,%APPPATH%\..\AdminApp\%APP%\CalculaMetricas.LGX)
    TASK(Execute formulas,RUNMODE,1)
    TASK(Execute formulas,LOGICMODE,1)
    TASK(Execute formulas,CHECKLCK,%CHECKLCK%)
    Hope it helps
    Raman

  • How to copy applications using script logic with conditions

    Hi,
    I have two copy data between application A to application B, but only i want to copy the March's Data of Application A. Dimensions are the same in both applications
    I'm going to use this script logic, ¿this script will work?
    *WHEN TIME
    *IS "2009.MAR"
    *DESTINATION_APP=B
    Thanks in advance
    Regards,
    Juan

    Hi all,
    Finally I solved the issue, the problem was that i haven't add this line in the script logic:
    TASK(Execute formulas,USER,%USER%)
    But now i need to pass in the script logic as an input: entity and time. Below is the code I prepare, it has no error but it doesn't work. ¿any idea?
    Thanks in advance
    Regards,
    Juan
    *SSIS PACKAGE *
    'DEBUG(ON)
    PROMPT(RADIOBUTTON,%CHECKLCK%,"Select whether to check work status settings when running logic.",1,{"Yes, check for work status settings before running logic","No, do not check work status settings"},{"1","0"})
    PROMPT(SELECTINPUT,,,"Please select entity and time to copy data from LegalAppNceu to LegalApp",%ENTITY_DIM%%TIME_DIM%)
    TASK(Execute formulas,USER,%USER%)
    TASK(Execute formulas,APPSET,%APPSET%)
    TASK(Execute formulas,APP,%APP%)
    TASK(Execute formulas,LOGICFILE,%APPPATH%..AdminApp%APP%CopyApplication.lgx)TASKTASK(Execute formulas,RUNMODE,1)
    TASK(Execute formulas,LOGICMODE,1)
    TASK(Execute formulas,CHECKLCK,%CHEKCLCK%)
    SCRIPTLOGIC
    *DESTINATION_APP=LEGALAPP
    *SKIP_DIM= COSTCENTER
    *WHEN ENTITY
    *IS "%ENTITY_DIM%"
    *WHEN TIME_DIM
    *IS "%TIME_DIM%"
    *REC(FACTOR=1)
    *ENDWHEN
    *ENDWHEN
    *COMMIT

  • BPC 7.0 MS Script-Logic problem: New values used, old values written?

    I am trying to using BPC Script logic to update my Sales cube, specifically Revenue=Units*Price and Price=Revenue/Units using the "Price" stored in a seperate Price cube.
    Inside default.lgl, I am *INCLUDE-ing my own script:
    *LOOKUP PRICES
    *DIM PREIS:ACCOUNT="Price"
    *ENDLOOKUP
    *WHEN ACCOUNT
    *IS "Units"
    *REC(FACTOR=LOOKUP(PREIS),ACCOUNT="Revenue")
    *IS "Revenue"
    *REC(EXPRESSION=%VALUE%/LOOKUP(PREIS),ACCOUNT="Units")
    *ENDWHEN
    *COMMIT
    Now, when I insert new "Units" values using the std. Excel template, strange things happen:
    - The Revenues seems to be computed and updated correctly in the cube (if I check them using excel templates, they show up).
    - The Units seem to have the values they had before... seems they get old values ?!
    E.g. if I have several write operations say, I write units=2,3,4 and price is constant 10,
    the values in the cube seem to be (table):
    value written, units in cube, revenue
    3 , 2 , 30
    4,  3 , 40
    The new value is somewhere in the MS Analysis cube, otherwise, how could later be the new value be shown, although the excel templates seem to show old values?
    Any explanation for that strange behaviour?

    I simplified and wrote the prices in the same cube as I send the data from with the excel template.
    I tried using:
    *WHEN ACCOUNT
    *IS "Units"
    [Account].[#Revenue]=[Account].[Units]*[Account].[Price]
    *ENDWHEN
    *COMMIT
    *WHEN ACCOUNT
    *IS "Revenue"
    [Account].[#Units]=[Account].[Revenue]/[Account].[Price]
    *ENDWHEN
    *COMMIT
    Now, if units are send from the excel template, revenue is calculated correctly.
    If I enter revenue instead, seems that the 1st block is executed as well (why????!!!/how to avoid - I use *WHEN - what else should I do? )  which would explain the behaviour I get the old values for Units and Account again...
    Related: How can I use "*WRITE_TO_FILE"? I tried both
    *WRITE_TO_FILE Mylog.txt
    *WRITE_TO_FILE "Mylog.txt"
    But I can't find these file after sending data through the excel template... Do I have to create the files manually first or give full Path Names?
    Thanks!

  • Script Logic like a function

    Hi all,
    I want to execute a load of data from a year and actual version to year + 1 and budget version based in some assumptions filled in another input schedule. I thought that is possible using a script logic, so i create the script and i don´t know how to call it, Just from de the DEFAULT.LGF but is not my idea for this, cause every change in the data will execute this calculation....  Thats is the scenario:
    Input Schedule
    Time 2011.JAN
    ========== Budget
    Account%        5%
    Real data Query
    Time 2010.JAN
    ==========Actual
    Account1____100
    What i want
    Time 2011.JAN
    ============BUDGET
    ACCOUNT1        105
    There is another way to do that? I
    Thanks

    Hi,
    For executing a script logic, you need to follow few steps.
    1. Create an SSIS package to call your script logic in business intelligence development studio (BIDS) - (please refer to the SSIS package for currency conversion)
    2. Create a DM package to call the above SSIS package (please refer to the DM package for currency conversion)
    You can run the above DM package to execute your script.
    Hope this helps.

  • Script logic : determine the content of a variable according to a IF test

    Hello experts,
    I have the following need in a script logic
    determine the content of a variable according to a IF test
    For example I tried :
    *WHEN %ENTITY%
    *IS "CH20","CH30","ES10"
    *SELECT(%ENTITYPBPD%, "[ID]", "ENTITYCC", "[ID] = '%ENTITYCC_SET%_PBPD'")
    *ENDWHEN
    Syntax is correct but I get a query execution error (Error in WHEN/ENDWHEN structure)
    I guess it's because this when don't have any REC instructions.
    In other words, if the user selection at the package prompt step are CH20, CH30 or ES10
    the variable has to be selection_PBPD
    if another member is selected
    the variable has to take other value
    Hope I've made my need clear, and thanks in advance.
    G.

    Hi G,
    Will the *TEST_WHEN() statement work for this case?
    The way that it works is that if the condition evaluates to TRUE, then the subsequent WHEN...ENDWHEN is processed, else it is not.
    Have a look at Page 66 of "How To Use BPC Scripting Logic, Version 1.00, April 21, 2006" (It's a bit old but I use it a lot on our MS7.0 SP9 installation).
    Hope this helps.
    Regards
    Nick

  • Regarding RunAllocation Script logic.......................................

    Hi SAP BPC Guys,
                        How to  write code for plan data using Previous data using "runallocation" Script logic?
                       i am also wrote code  for one month. but i don't know how write 12 months?
    //FOLLOWING ADDED TO FIND MONTHS ALREADY PAST
    *SELECT(%MONTHS_GONE%, ID, Time, INPUT=2009.Y)
    *SELECT(%MONTHS_TO_ALLOCATE%, ID, Time, INPUT=2009.Y)
    //*XDIM_MEMBERSET TIME=2009.JAN,2010.JAN
    *XDIM_MEMBERSET A_ACCOUNT=BAS(OperatingExpense)
    *XDIM_MEMBERSET CATEGORY=ACTUAL,PLAN
    *XDIM_MEMBERSET ENTITY=ASA,BAS(RASA)
    //FOLLOWING TO REDUCE INPUT AMOUNT, BY PAST MONTH AMTS
    *XDIM_MEMBERSET Time=2010.INPUT
    *FOR %MT%=%MONTHS_GONE%
    OperatingExpense=OperatingExpense-(OperatingExpense,Time.%MT%)
    *NEXT
    *COMMIT
    //Create total operating Expenses to be allocated.
    *WHEN ENTITY
    *IS "ASA"
    *REC (EXPRESSION=50000,TIME=2010.JAN,CATEGORY=PLAN)
    *ENDWHEN
    *COMMIT
    //Allocate to base countries.
    *RUNALLOCATION
    *FACTOR=USING/TOTAL
    *DIM A_ACCOUNT WHAT=BAS(OperatingExpense); WHERE=<<<; USING=<<<; TOTAL=<<<
    *DIM ENTITY WHAT=ASA; WHERE=BAS(RASA); USING=<<<; TOTAL=<<<
    //*DIM TIME WHAT=>>>; WHERE=2010.JAN; USING=2009.JAN; TOTAL=<<<
    //CHANGED ???? TO 2010.INPUT
    *DIM TIME WHAT=2010.INPUT; WHERE=%MONTHS_TO_ALLOCATE%; USING=2009.JAN; TOTAL=<<<
    *DIM CATEGORY WHAT=>>>; WHERE=PLAN; USING=ACTUAL; TOTAL=<<<
    *ENDALLOCATION
    //Clear the total operating Expenses account
    *WHEN ENTITY
    *IS "ASA"
    *REC (EXPRESSION=0,TIME=2010.JAN,CATEGORY=PLAN)
    *ENDWHEN
    Can u  replay me.
    Thanks.
    Edited by: devi on Oct 5, 2010 10:46 AM

    I can  validate DM Package
    Then i got this Error Msg
    /CPMB/MODIFY : Completed in 0 seconds
    /CPMB/ALLOCATION_LOGIC : Completed in 0 seconds
    /CPMB/CLEAR : Completed in 0 seconds
    [Selection]
    ASARENT=200000
    SOURCE=ASA
    TARGET=RASA
    $SRC_TIME$=2009.INP
    $DST_TIME$=2009.TOTAL
    (Member Selection)
    CATEGORY: ACTUAL,PLAN
    RPTCURRENCY: LC
    TIME: 2008.TOTAL,2009.TOTAL
    [Messages]
    RUN_LOGIC:Member "%DST_TIME%" not exist
    Failed
    Application : PLANNING. Package status: ERROR
    My data manager script is:
    PROMPT(SELECTINPUT,,,,"%CATEGORY_DIM%,%CURRENCY_DIM%,%TIME_DIM%")
    PROMPT(TEXT,%ASARENT%,"How much do you want to allocate?",)
    PROMPT(TEXT,%SOURCE%,"Enter Source Entity",)
    PROMPT(TEXT,%TARGET%,"Enter Target Entities",)
    PROMPT(TEXT,%$SRC_TIME$%,"Enter source .INP time period (i.e. 2009.INP)",)
    PROMPT(TEXT,%$DST_TIME$%,"Enter destination .TOTAL time period (i.e. 2009.TOTAL)",)
    INFO(%EQU%,=)
    INFO(%TAB%,;)
    TASK(/CPMB/ALLOCATION_LOGIC,TAB,%TAB%)
    TASK(/CPMB/ALLOCATION_LOGIC,EQU,%EQU%)
    TASK(/CPMB/ALLOCATION_LOGIC,SUSER,%USER%)
    TASK(/CPMB/ALLOCATION_LOGIC,SAPPSET,%APPSET%)
    TASK(/CPMB/ALLOCATION_LOGIC,SAPP,%APP%)
    TASK(/CPMB/ALLOCATION_LOGIC,SELECTION,%SELECTION%)
    TASK(/CPMB/ALLOCATION_LOGIC,LOGICFILENAME,ALLOCATEHISTORICAL.LGF)
    TASK(/CPMB/ALLOCATION_LOGIC,REPLACEPARAM,ASARENT%EQU%%ASARENT%%TAB%SOURCE%EQU%%SOURCE%%TAB%TARGET%EQU%%TARGET%%TAB%SRC_TIME%EQU%%SRC_TIME%%TAB%DST_TIME%EQU%%DST_TIME%%TAB%)
    My script logic:
    *XDIM_MEMBERSET TIME=2008.TOTAL,$SRC_TIME$,$DST_TIME$
    *XDIM_MEMBERSET P_ACCT=RENT
    *XDIM_MEMBERSET CATEGORY=PLAN,ACTUAL
    *XDIM_MEMBERSET ENTITY=$SOURCE$,$TARGET$
    *WHEN ENTITY
    *IS "ASA"
    *REC (EXPRESSION=$ASARENT$,TIME=2009.TOTAL,CATEGORY=PLAN)
    *ENDWHEN
    *COMMIT
    *RUNALLOCATION
    *FACTOR=USING/TOTAL
    *DIM P_ACCT WHAT=RENT; WHERE=<<<; USING=<<<; TOTAL=<<<
    *DIM ENTITY WHAT=$SOURCE$; WHERE=BAS($TARGET$); USING=<<<; TOTAL=<<<
    //*DIM TIME WHAT=>>>; WHERE=2009.JAN; USING=2008.JAN; TOTAL=<<<
    *DIM TIME WHAT=$SRC_TIME$; WHERE=BAS($DST_TIME$); USING=BAS(2008.TOTAL); TOTAL=<<<
    *DIM CATEGORY WHAT=>>>; WHERE=PLAN; USING=ACTUAL; TOTAL=<<<
    *ENDALLOCATION
    *WHEN ENTITY
    *IS "ASA"
    *REC (EXPRESSION=0,TIME=2009.TOTAL,CATEGORY=PLAN)
    *ENDWHEN

  • Handling Ranges in Script Logic

    Hi Experts
    Is it possible to put logic to check a range of values in Script Logic.
    For example, if I need to check if the value in Quantity Account is between 200 and 800, then only some Quantity Discount is calculated against this.
    What command should one use for this
    Any input would be very helpful.
    Regards
    Krishnendu

    Hi Krishnendu,
    I believe that you can use MDX or a BADI to do this. Using MDX, for example, the following should write 100 to the QUANT_DISC account in the event that QUANTITY is greater than 200 and less than 800:
    [ACCOUNT].[QUANT_DISC] = IFF(([ACCOUNT].[QUANTITY]) > 200,IIF(([ACCOUNT].[QUANTITY])<800,100,0),0)
    This is just example MDX code - you'll have to adapt and test yourself. I suggest using the script logic tester to speed the process. Performance may be less than ideal, and you can certainly implement this in a BADI in that event.
    It would be nice if it were possible to do this using WHEN/IS statements in script logic, but at present conditional logic based on measure values is not supported in that context.
    Ethan

  • Help in script logic

    Hi Experts,
    We are using SAP BPC 7.5 NW Version SP08. We are using a script logic that calculates the opening value of inventory(ASSTCAINVAMO) for each month except the 1st month of financial year for which the value is entered from an input schedule. The opening value of inventory of each subsequent months are calculated when the parameters for production(e.g. OSDA) are entered from a separate input schedule. The following script logic is written for the calculation:
    *FOR %TIM_MEM%=%TIME_SET%
    *XDIM_MEMBERSET TIME =%TIM_MEM%
    *WHEN P_ACCT2
    *IS "OSDA",
    REC(EXPRESSION=[P_ACCT2].[ASSTCAINVAMO]+[P_ACCT2].[RDPA][P_ACCT2].[EFFA][P_ACCT2].[OSDA]-[P_ACCT2].[CONVAMUR][P_ACCT2].[RDPU][P_ACCT2].[EFFU][P_ACCT2].[OSDU]-([P_ACCT2].[SALQAMBC]+[P_ACCT2].[SALQAMM]),P_ACCT2="ASSTCAINVAMO",TIME=TIME.NEXT)
    *ENDWHEN
    *COMMIT
    *NEXT
    The loop works fine, but it seems the list of time values are not coming in proper sequence. For example, the loop is running for 2011.NOV before it iterates for 2011.OCT. So when it iterates for 2011.NOV, it is not getting the opening value for the month and consequently 2011.DEC's opening value is calculated assuming 2011.NOV's opening value to be 0. In the input schedule the months are in proper sequence.
    Is there any way out so that the months come in proper sequence in the logic as well?
    Thanks in advance for any help.

    We had similar issue . we changed TIME members from Monthnames to numbers . i.e  changed 2011.JAN to 2011.01 . Then you get correct result  as you are expecting . Issue when using month names in combination of TMVL is that  , instead of getting 2011. MAY for TMVL(1,2011.APR) , it gets 2011.FEB . TMVL function some how takes alphabetical order instead of taking month order . Not sure if this behavior is with service pack . But never saw any thread reporting this issue .
    Anyways ,you can wait for other responses  as i am too curious to know if any one faced this issue and how did they resolve.

  • Script logic from BPC 5 in BPC 7.5

    Hi,
    I am trying to use some script logic from an appset in BPC 5 in BPC 7.5. When I validate the logic in 5 it works fine but in 7.5 I get validation errors.
    They relate to properties of dimension elements that are not currently used (neither in 5 nor in 7.5) but could well be used in the future. As an example, this bit generates an error
    *WHEN ACCOUNTL.RATETYPE
    *IS END,ENDFLOW
    I currently do not have an account defined with ratetype END but it is quite possible that there will be one in the future. And END is defined as an element in the RATE dimension.
    So, why did BPC 5 accept this and BPC 7.5 does not? And, is there a way around other than defining a dummy element in ACCOUNTL that used ratetype END?
    Thanks
    Edited by: ArnoldWarhonowicz on Aug 5, 2010 4:06 PM

    What I havenoticed is that with the new7.5 Script logic, there are more checks and balances performed during the validation.  So, if you have only AVG, ENDRATE on RATETYPE property and no END for any member, yet your logic is calling a set of members with this parameter, the logic fails to validate. I assume the process is checking for a set of END members based on the request. Since they don't exist, the error occurs.  But I would request that BPC Support verify the behavior as well.
    If you remove END, does the logic validate?
    Hope this helps.

  • Script Logic examples

    Are any script logic examples available anywhere which I can refer to? (like Fox Formula examples in BPS).
    Is there any book that I can refer to?
    Please let me know.
    Thanks.

    The central notes for each of the BPCNW Support Pack releases contain helpful information on a variety of topics, as well as information on specific script logic functionality. Please review notes: 1306898, 1349538, 1349538, and 1366582.
    http://help.sap.com/saphelp_bpc70sp02/helpdata/en/a1/532226947C49A5B2E2BD32450CB2D1/frameset.htm
    Business Planning and Consolidations (BPC) Tips -3 u2013 Sheldon Edelstein
    /people/sheldon.edelstein/blog/2008/04/21/business-planning-and-consolidations-bpc-tips-3
    /people/sheldon.edelstein/blog
    /people/sheldon.edelstein/blog/2008/04/23/business-planning-and-consolidations-bpc-tips-4
    SAP Library BPC Administration Guide
    https://websmp108.sap-ag.de/~form/sapnet?_SHORTKEY=01200252310000085368&_SCENARIO=01100035870000000112&_OBJECT=011000358700001123512008E
    ****How to Use BPC Scripting Logic
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80ffae4b-99d5-2a10-4e9f-96149969aabb?quicklink=index&overridelayout=true
    SAP BUSINESS PLANNING AND CONSOLIDATION SCRIPT LOGIC, PART 2
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a066c75e-3077-2b10-c6a6-b8af14b91775
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a066c75e-3077-2b10-c6a6-b8af14b91775?quicklink=index&overridelayout=true
    SAP BUSINESS PLANNING AND CONSOLIDATION SCRIPT LOGIC, PART 3
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50c75047-3077-2b10-61b2-9a1b9373b0ee
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50c75047-3077-2b10-61b2-9a1b9373b0ee?quicklink=index&overridelayout=true
    HOW TO... PASS DYNAMIC PARAMETERS TO SCRIPT LOGIC
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/d01ce779-f1b2-2b10-07ba-da3734013245
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d01ce779-f1b2-2b10-07ba-da3734013245?quicklink=index&overridelayout=true
    You can go to and check under "article library"
    http://www.sdn.sap.com/irj/scn/advancedsearch?query=bpc+nw

  • Script Logic taking a lot of time to execute

    Hi,
       I have a script logic which does the currency translation
    But it takes a lot of time to execute the same. can anyone suggest me to write a effective script logic to reduce the
    performance .
    I am using the input schedule that uses the script logic to execute with 6000 records.
    below is the script logic
    *LOOKUP RATE
       *DIM R_ACCT=[ACCOUNT].RATETYPE
       *DIM FX_LC1:R_CURRENCY ="LC1"
       *DIM FX_LC2:R_CURRENCY ="LC2"
       *DIM FX_LC3:R_CURRENCY ="LC3"
       *DIM FX_LC4:R_CURRENCY ="LC4"
       *DIM FX_LRC:R_CURRENCY ="LRC"
       *DIM R_ENTITY                     =GLOBAL
       *DIM SCENARIO                   =[SCENARIO]
       *DIM TIME                            =[TIME]
    *ENDLOOKUP
    *WHEN ACCOUNT.RATETYPE
    *IS "AVG","END"
       //TRANSLATE
       *WHEN CURRENCY
       *IS LC1
           *WHEN COMPANY.LC1
           *IS <> "NUL"
                *REC(FACTOR=LOOKUP(FX_LC1),CURRENCY=USD)
                *REC(FACTOR=LOOKUP(FX_LC1)/LOOKUP(FX_LRC),CURRENCY=LRC)
           *ENDWHEN
       *IS LC2
           *WHEN COMPANY.LC2
           *IS <> "NUL"
                *REC(FACTOR=LOOKUP(FX_LC2),CURRENCY=USD)
                *REC(FACTOR=LOOKUP(FX_LC2)/LOOKUP(FX_LRC),CURRENCY=LRC)
           *ENDWHEN
       *IS LC3
            *WHEN COMPANY.LC3
            *IS <> "NUL"
                *REC(FACTOR=LOOKUP(FX_LC3),CURRENCY=USD)
                *REC(FACTOR=LOOKUP(FX_LC3)/LOOKUP(FX_LRC),CURRENCY=LRC)
            *ENDWHEN
       *IS LC4
            *WHEN COMPANY.LC4
            *IS <> "NUL"
                 *REC(FACTOR=LOOKUP(FX_LC4),CURRENCY=USD)
                 *REC(FACTOR=LOOKUP(FX_LC4)/LOOKUP(FX_LRC),CURRENCY=LRC)
            *ENDWHEN
       *IS LC_USD
          *REC(FACTOR=1,CURRENCY=USD)
          *REC(FACTOR=1/LOOKUP(FX_LRC),CURRENCY=LRC)
       *ENDWHEN
    *ENDWHEN
    *COMMIT
    Kindly help as soon as possbile
    Edited by: Deepak_Hegde on Feb 2, 2012 4:58 PM

    Why wouldn't you use standard functionality with *RUN_PROGRAM CURR_CONVERSION?
    You'll have to call it multiple times since you want to translate into different currencies, but I think it will still be faster than this script.

  • Script logic not working for GL account with Zero balance

    Dear Experts,
    I have a scenario where the GL account balance in ECC is 0  and when a script logic runs in BPC the same should capture a closing balance as "1".
    Though I have written the below logic, this is not getting executed and writing back the value as "1".
    Kindly help me on the same.
    *WHEN ENTITY
    *IS "ABC"
    *WHEN ACCOUNT
    *IS "20300000"
    *REC(EXPRESSION = 11, ACCOUNT = 20300000,FLOW = F99, ENTITY = ABC, PROFITCENTER  = 130010 ,  INTERCO = I_NONE , CONSOSCOPE = G_NONE, CURRENCY = LC ,CATEGORY = ACTUAL, AUDITID = INPUT)
    *ENDWHEN
    *ENDWHEN
    *COMMIT
    Regards,
    Shilpa

    Hello Vadim Kalinin,
    Thanks for the very swift help.
    Merger of the client happened in 2007. ECC is using the " 20300000- change in fair value " account to record both pre-acquisition and post-acquisition values.
    Since the treatment of pre-consolidation and post consolidation reserves is different the split of the amount between pre and post-acquisition values has to be done. For the same post acquisition value is reduced from this account using a script logic as below.
    WHEN FLOW
    *IS "F99"
    *WHEN ENTITY
    *IS "ABC"
    *REC(EXPRESSION = ([ACCOUNT].[20300000] -3258603),ACCOUNT = 20300000,FLOW = F99,  INTERCO = I_NONE , CONSOSCOPE = G_NONE ,CURRENCY = LC ,CATEGORY = ACTUAL )
    This logic worked when the account has a figure, but in July 2014 in ECC the account had a transaction and the balance has become Zero. Until this account has a figure this pre acquisition logic is not working.
    For making this work, I am trying to write a new logic to make the balance of this account as "1" in BPC through the script logic.
    Kindly suggest me on the same.
    Regards,
    Shilpa

Maybe you are looking for

  • ORA-01843 error

    Hi, I have an invalid month error (ORA-01843 error) with the following usage of to_date(). I have checked the Oracle documentation several times and the mask I use is accurate. Any ideas? DROP TABLE TEST_DATE_1; CREATE TABLE TEST_DATE_1 (      ID    

  • How to add attribute in a formula ?

    Hi gurus, I am creating a query and face this problem. I need to use an attribute in the formula builder to create a new formula. Is there anyway we can bring attribute to the formula operands...Any help is greatly appreciated. Thanks uan

  • Dynamic screen size

    Hi! Is there any method to adjust screen size according to the resolution of the screen. Thanks! Lluís i Montse

  • Function Module/Class to Update HRP1005

    I have a request to create new HRP1005 records for every job that uses a particular T710-SLGRP field whenever a new T710 entry is created with new amounts or dates.  I have an old program that does this via a BDC, but I was looking for a Function Mod

  • Values to be displayed as a drop down at runtime

    Hi Experts, I have ArrayList at runtime which contains list of countries, I have to assign these values to inputFiled I am using the following code but it is displaying only one country. can u pleast help to get all the countries as a drop down. IWDA