Having issue using TMVL in script logic

Hello experts,
We need to replicate the behaviour of the copy opening Bal through script logic.
Below is my code:
where user selects only entity when he runs package,time is derived from property.
// Year from version property
*SELECT(%YEAR%,"[YEAR]","Z_VERSION","[ID]='BUD'")
// Months
*SELECT(%MONTHS%,"[ID]","Z_TIME","[YEAR]=%YEAR% AND LEVEL='MONTH'")
*XDIM_MEMBERSET Z_TIME=%MONTHS%   (for ex:My first month is 2009.jan(ope month)
   *WHEN ACCT
           *IS CHC          
        *REC(FACTOR=1, ACCT="CHC",Z_TIME=TMVL(1,%MONTHS%))  ( for ex:2009.feb,nxt month)
    *ENDWHEN
When i run the above logic in debugger TMVL doesn't show next month.
If i hardcode time in my xdimmemberset to (*XDIM_MEMBERSET Z_TIME=2009.JAN) and change my TMVL in my REC statement to TMVL(1,2009.JAN)).Logic works fine.
Please tell me how can we pass dynamic variables to TMVL.
*REC(FACTOR=1, ACCT="CHC",Z_TIME=TMVL(1,%MONTHS%))
Thanks

copying closing bal of prev month to nxt month.
for ex:
Account     jan 2009    Feb 2009    Mar 2009
HC_PLAN     10.00      11.00      21.00
CHC          10.00      11.00        11
TI                     1.00                      1.00
TO                      2.00      1.00          2.00
AP                      3.00                       3.00
RT                       4.00                        4.00
My logic needs to copy values from HC_PLAN (parent) to CHC. I have written ope_bal logic in MS version.
In NW i cannot use next (i am using TMVL),calc_dummy_org,calc_each_period.
Please tell me how can i get values from a parent (HC_PLAN).
Is Calculate_Difference is supported in BPC7.5NW?
Below is my updated code
*SELECT(%Year%,"[YEAR]","Z_Version","[ID]='ACTUAL'")
*SELECT(%Months%,"[ID]","Z_Time","[YEAR]=%Year% AND [LEVEL] = 'MONTH'")
*XDIM_MEMBERSET Z_TIME=%Months%
*XDIM_MEMBERSET EB_ACCT = CHC,TI,TO,AP,RT
*WHEN EB_ACCT
           *IS CHC,TI,TO,AP,RT         
                  *FOR %MonthCopy% = %Months%
                       *REC(FACTOR=1,EB_ACCT="CHC",Z_TIME=TMVL(1,%MonthCopy%))
                    *NEXT
             *ENDWHEN

Similar Messages

  • Anyone having issues using "iPhoneconfigutility?"  I downloaded it several times, but the program never opens.

    Anyone having problems using, "iPhoneconfigutility

    I've tried installing, reinstalling and removing and installing itunes 9.1 but the program will not start. I have clicked on the desktop shortcut, the itunes.exe in the program folder but all i get is a brief loading hourglass and then nothing. I have checked in task manager and the programs itunes.exe and ituneshelper.exe are in the processes window but the program is not visible on the desktop.
    Starting some basic-principles troubleshooting here, if you're game.
    The first thing to try isn't a cure in itself, but can rule out some possible causes of problems, and narrow in on others. We're going to check to see if this is a systemwide issue or if it is specific to one particular user account.
    From the Start menu, choose Control Panel.
    Open Add or remove user accounts (If using the Classic View in Windows Vista, open User Accounts. Then open Manage another account).
    Select Create a new account and follow the instructions to complete the account setup process. Give the new user account full administrative rights.
    Once the new account is created, choose Log Off from the Start menu. Log into the newly created user account. (Don't use fast user switching to move between accounts.)
    Launch itunes in the new account. The setup assistant will/should run. Do not add any files when prompted to do so (if things get that far). Just let it eventually open to an empty library.
    ... does it eventually open to an empty library? Or do you get the same sort of behavior as in the usual user account?

  • Use Counter in Script Logic

    Hi guys, I have code in default logic which starts its run if one of several accounts data has been sent. However, when I send data for 2 accounts from *WHEN/IS condition, this script logic runs 2 times and result doubles, while I need it to work only once. Here is a code:
    *WHEN P_ACCT
    *IS "PAC10064", "PAC10065", "PAC10066", "PAC10067"
    *REC(EXPRESSION=[P_ACCT].[PAC10064] + [P_ACCT].[PAC10065] + [P_ACCT].[PAC10066] + [P_ACCT].[PAC10067], P_ACCT="PAC10068")
    *ENDWHEN
    *COMMIT
    Is there any option to put Counter in BPC Logic, like in VBA where I can put code like this
    Y=0
    *WHEN P_ACCT
    *IS *
    IF Y=0
    *do calculation
    Y=Y+1
    END IF
    ENDWHEN
    Looking for help. Thank You.

    Nilanjan,
    1. Is there any option to generate intersection within %VALUE% with something else but not with so many *WHEN/ENDWHEN? The reason why I'm asking is that we have 300 calculations to develop and hadle in Script Logic and this will be quite a toughcode to maintain for client afterwards
    2. And another question: with 2 *SELECT statements we get 2 pools of Accounts, which we need divide ( SUM(Pool1)/SUM(Pool2) ). What I need to write in EXPRESSION and is there any chance to avoid FOR/NEXT in this case?
    *SELECT(%ACCOUNT1%, "[ID]", P_ACCT, "[SUBFUNC_ID]='SUB09'" AND "[TYPE]='u0417u0430u0442u0440u0430u0442u044B'" AND "[CALC]='N'")
    *SELECT(%ACCOUNT2%, "[ID]", P_ACCT, "[SUBFUNC_ID]='SUB07'" AND "[TYPE]='u0417u0430u0442u0440u0430u0442u044B'" AND "[CALC]='N'")
    *SELECT(%COSTCENTER%, "[ID]", COSTCENTER, "[TYPE_ID]<>'TP11'" AND "[CALC]='N'")
    *XDIM_MEMBERSET COSTCENTER=%COSTCENTER%
    *WHEN P_ACCT
    *IS *
    *DESTINATION_APP = KPI
    *SKIP_DIM = COSTCENTER_SEND
    *ADD_DIM AGGREGAT = AGR2, WORKSHOP_LINE = WSL2, STOCK_CATEGORY = STC2, PARTNER = PRN2, RESOURCE_TYPE = RTT2, SALE_PROJECT = SLP2
    *REC(EXPRESSION=................, COSTCENTER="CCN2", P_ACCT="PAC30318")
    *ENDWHEN

  • Using variables in script logic.

    Hi,
    I still haven't figured out how to assign a userdefined variable in a script.
    My case is that I in my script commits data several times, after every commit I need to do a new *XDIM_MEMBERSET. Every time the *xdim_memberset is exactly the same.
    Example - what I do now.
    *XDIM_MEMBERSET ACCOUNT="REVENUE"
    *XDIM_MEMBERSET VERSION="90"
    *rec
    *commit
    *XDIM_MEMBERSET ACCOUNT="REVENUE"
    *XDIM_MEMBERSET VERSION="90"
    *rec
    *commit
    Etc.
    It would be much easier, if I the beginning of each script for Account and Version defined a variable, and then having every *xdim_memberset use the variable. Then I only need to change the definition of the variable in the beginning of each script.
    Example - what I want to achieve.
    //Definition of constant variables.
    %ACCOUNT_VARIABLE%= "ACCOUNT = REVENUE"
    %VERSION__VARIABLE% = "VERSION=90"
    *XDIM_MEMBERSET %ACCOUNT_VARIABLE%
    *XDIM_MEMBERSET VERSION=%VERSION__VARIABLE%
    *rec
    *commit
    *XDIM_MEMBERSET %ACCOUNT_VARIABLE%
    +*XDIM_MEMBERSET VERSION=%VERSION__VARIABLE%
    *rec
    *commit
    I've looked at the *SELECT and *MEMBERSET - but can't really get the syntax to work.....
    Thank you,
    Joergen
    Edited by: Jørgen Dalby Andersen on Dec 30, 2011 7:58 AM

    Hi,
    when I use *XDIM_MEMBERSET ACCOUNT AS %TEST% = BAS(REVENUE) - it work fine.
    BUT ! after my first commit, it seems like the variable value is lost. And the *Xdim_memberset takes all.....
    Fortunately enough, *select still contains the variable value after *commit.
    Thanks,
    Joergen
    *Correction !
    It actually works, it still contains the variable value after commit !!
    Edited by: Jørgen Dalby Andersen on Dec 30, 2011 1:33 PM

  • Export issue using the shooting script fix

    I've followed the directions given at http://forums.adobe.com/message/4369249#4369249 for switching between formats (r.e. showing shooting info and not). The issue I have now is on export. When I export to pdf from a file saved under the film template it exports the shooting information--causing the lines in the pdf to be obscured by the camera directions.  This leaves me with a useless script as no actor/actress is able to read it.  I tried to export as txt as a work around but the formating comes out skewed.  I need a way to export which will leave the formatting correct and will leave off the shooting info, so it can be used as a readable script.   Any suggestions?

    Hi,
    We are aware of this issue and it will be fixed in our next update.
    Meanwhile workaround is:
    1. Export you script to astx format
    2. Import this astx file into story
    3. Export this script to pdf.
    Thanks
    Rohit
    Adobe Story Team

  • Has Firefox been optimzied for the new Mac OSX Lion? I've been having issues using the browser since upgrading to Lion. Issues include using some websites as well as google e-mail...icons do not appear etc.

    when checking mail in google I am not able to 'star' an e-mail or mark it etc. I don't get the option to do that, as I did before upgrading to Mac Osx Lion

    Try setting up another admin user account to see if the same problem continues. If Back-to-My Mac is selected in System Preferences, the Guest account will not work. The intent is to see if it is specific to one account or a system wide problem. This account can be deleted later.
    Isolating an issue by using another user account
    If the problem is still there, try booting into the Safe Mode using your normal account.  Disconnect all peripherals except those needed for the test. Shut down the computer and then power it back up. Immediately after hearing the startup chime, hold down the shift key and continue to hold it until the gray Apple icon and a progress bar appear. The boot up is significantly slower than normal. This will reset some caches, forces a directory check, and disables all startup and login items, among other things. When you reboot normally, the initial reboot may be slower than normal. If the system operates normally, there may be 3rd party applications which are causing a problem. Try deleting/disabling the third party applications after a restart by using the application un-installer. For each disable/delete, you will need to restart if you don't do them all at once.
    Safe Mode
    Safe Mode - About

  • Anyone having issues using autoplay to import photos from an iPhone 4S?

    I haven't been able to import photos for days using autoplay. Every time I connect my phone autoplay recognizes it but won't let me select an option. It's non-responsive. Anyone else?  Any solutions?

    It seems pretty easy, so maybe I am not understanding your question properly.  I just plug my iPhone into my computer with LR open, click on import, select the  iPhone, make sure it says "Move" at the top, select the folder I want them to go to (I have a folder named iPhone photos) and click on the second import button.  I do the same with my iPad.
    Are you having problems when you try to import from your iPhone?
    John

  • Has anyone been having issues using tags? Adding tags to PDF's from within Preview results in a delays

    When adding tags to documents from within the document using the menu, after typing a few letters and then selecting a tag it then resets and you have to go back to the beginning. This is especially annoying when trying to edit a large number of documents quickly.
    It seems you have to wait up to 5 secs after typing a tag before trying to add it again. The problem appears to be some system wide delay in editing the tag into the file.
    I checked the problem against my new MacBook Air and it occurs there as wel.
    Anyone else come across this?

    Hi VikingOSX,
    The method you described is the current way I am doing it, my apologies I probably wasn't clear enough.
    The tagging works, but the issue is that as I start to edit in the tag area, after choosing a tag(s) it resets to blank after a couple of seconds and I have to tag again. After the second time the tags stay there and I can save the document.
    The tags I am choosing are from existing tags and it doesn't matter whether I click on them from the list or start typing a few characters and they appear, the problem is the same. It might seem trivial, but I regularly scan in a large number of documents and then edit their name and tags from the Preview title bar.
    I would be interested if you can recreate the issue yourself, I have it on two different Mac computers so thought it was something that was a bug in Mavericks.

  • I am having issues using AirPrint. Won't recognize my printer.

    Hello. I am using an Epson 730 which is labled as "AirPrint Compatible." However, the only way I can print from my iPad is by using a go-around app sucn as print jinni. Any suggestions?
    When I try to print from Pages it begins a search and concludes "No AirPrint printer found." I can print wirelessly from my MacBook Pro, and it prints fine using the print jinni software. I just thought AirPrint was supposed to make those work arounds needless.
    Any help would be appreciated. Thanks.

    Hi Revkevin and IPAD gurus,  Yes, I am getting the same error message "No airprint printer found" when trying to print a Pages Document with the HP 4500, a wireless printer that will print ok for my Dell computer.
    For a backup, I have loaded the HP 4500 into the Print Central app, but how do I get a Pages Document to print using Print Central? This is not working either.
    Please help!  Goal is paperless in 2012!  Thanks very much for your help!

  • Created files in trail version now having issues using file in CS3

    Hi Everyone,
    Hopefully someone can answer my question.  I don't have much experience with Dreamweaver, so any help would be greatly appreciated.   I downloaded the free trail version of Dreamweaver CS5.5 and starting creating a new site with it.  My trial version has ran out so I would like to finish the files using the Dreamweaver CS3 that I currently own.  I'm able to open the files and move things around.  However, when I went to the draw an new AP Div, I draw the box and it just disappears.  The new div labeled #apDiv 7 shows up under CCS Styles panel but I can't get the actually box to show up on the screen even when changing the attributes on the #apDiv 7 under the CSS Rule Definition Box.  I can create a new document in CS3 and draw an AP Div just fine.  I'm just not sure why the files I created in the trail version are not allowing me to add this element to the layout.
    Thank you.

    First thing.When you post a question here it helps immensely if you post a link to the page or the code from it if it isn't online.
    Working strictly in APDivs is hardly the way to build a page/site anymore. As you have seen it isn't easy or functional.
    In the CSS panel there are attributes listed for the APDiv and should show the positioning X and Y as well as the width and height. If you go into your CS3 preferences, there is a tab for APDiv dimensions and location defaults.
    But as I said, APDivs are a pain because you constantly have to adjust margins and padding to make them work with the content inside and stay where you want them, and when you're dealing with monitors between 1024 and more than 2300 pixels across, a page full of APDivs can become scattered all over the place on a wide screen browser.

  • HT4889 Having issues using Migration Assistant taking 200+ hours for 60 gigs.

    I am transferring from my source which is running Lion to my target which is running Mountain Lion.  It is taking 200+ hours with the ethernet connection.  Is firewire faster? Help!

    Thanks for the reply,
    I didn't understand exactly what to put into AppleScript sorry (never used it before) - so I just ran the following from the Terminal:
    $ echo $UID
    $ sudo chown -R 503 ~
    And restarted - everything works now - thanks heaps.
    What had happened and is this something I did or did Migration Assistant just get confused?
    I have 3 new Mc Pros to setup on Monday so just want to ensure those are hassle free.
    Cheers
    Ben

  • Anyone having issues using their cam in MacBook pro Lion on Flash websites?

    When going on websites that try to turn on your webcam using Flash, the dialog box that pops up asking for permission is not "clickable."  The solution of going into Flash preferences and granting permission site-by-site to always allow access to your cam is great until you try to take permission away.  Then you can't click the dialog box again.  Is there going to be a real fix for this, or is it another salvo in the Apple vs. Adobe wars?

    Same problem here.  Solutions, anyone?

  • I'm having issues using labview to conduct a voltage sweep on the keithley 2400.

    I'm trying to pass sweeping voltage through a diode, and measure the resulting current in order to ensure its iv characterisitcs. I downloaded the instrument driver for the keitley, and then used the example sweep and acquire measurements vi, but i kep getting the following errors: 
    Instrument reports:
    -113,"Undefined header"
    -230,"Data corrupt or stale"
    -420,"Query UNTERMINATED"
    0,"No error"
    Complete call chain:
    Keithley 24XX.lvlib:Error Query.vi
    Keithley 24XX.lvlib:Read (Multiple Points).vi
    Keithley 24XX Output List and Acquire.vi
    Help!! thanks!

    Hi akam520,
    The 2400 Series SourceMeter User's Manual has more information on these errors. Please see page B-8: 
    http://research.physics.illinois.edu/bezryadin/labprotocol/Keithley2400Manual.pdf
    Error -113 "Undefined header" occurs when the command you sent to the instrument did not contain a recognizable command name. It's likely the syntax of one of your commands is wrong. It's possible that this command being incorrect is also propagating to cause the other errors you're seeing.
    Can you try stepping through your application to see when the error gets  thrown? If you can narrow down which call is throwing the error, it will be easier to compare this command against the user manual to ensure that you have the correct syntax.
    I hope this helps!
    Emily C
    Applications Engineer
    National Instruments

  • Is anyone having issues using the tap to post to Facebook on iphone 5?

    Help!!!!

    Not only does the tap button not always work but a lot of times even when it does, my post completely disappears. Seems to be a bug. I wonder if this will be fixed in the IOS7...?

  • Script Logic choice SQL or MDX in NW release?

    Hi experts,
    I have encountered some opposite arguments in forum. Please can you clarify NW release script logic choice should be as MS release?
    In [Script Logic BPC MS (SQL) vs. NW (ABAP); Tim Klem states
    - "Write the logic using BPC SQL script logic syntax (not MDX) for performance reasons" but this opinion based on MS version. How about NW release is it really smarter to select SQL Script rather than MDX.
    There is another statement in [Re: BPC 7 NW; Deppak mentions that:
    - "In BPC 5.1 the script formula approach suggests to use SQL based logic instead of MDX.
    Whereas in Teched,08, I learnt that MDX & ABAP (using BADIs) would be used for it. Thats why I am slightly confused...."
    But second statement is far beyond NW relase date and I am sure this is not true but I would like you to confirm that.
    If you were a project responsible and want that all scripts will be held in one language, what would you choose??
    Thanks in advance,
    ergin ozturk

    Hi Ergin,
    I can understand your approach not to use ABAP hence you miss the skills witin your project team.
    However, you (or you client) has chosen the NetWeaver version for whatever reason. I'm sure a thorough decisions process has lead to this decision. In choosing the NetWeaver version with SAP BI you will sooner or later come to the point that you will have to use ABAP if you like it or not. Especially when you start using further capabilities within NetWeaver and the BI solutions. So from my point of view ABAP knowledge is an essential skill you need in a project based on SAP NetWeaver anyway.
    Additionally I heared some statements that MDX is causing some performance issues on the NetWeaver version. This may have been fixed in the meantime with some SPs.
    As the SQL within the NetWeaver verison does not have the full functionality than it has in MS Version SQL is not an option for me.
    I do also not see the cost impact hence someone need to do the support anyway. In case of MDX you need an MDX developer, in case of ABAP and ABAP developer. Or a technical BPC consultant able to do the development (which I would recommend you should have in your project team anyway).
    So coming back to your original question, I would recommend to do as much as possible using ABAP BADIs.
    Cheers,
    Steffen

Maybe you are looking for