Time shift instructions & dummy variables

hello experts,
i am new to bpc & script logic.(sap nw 7.0 bpc). i am trying to do 'time shift' values of the account dim. i've tried the keywords
(next, prev, base etc) and i've tried the mdx format. (time = [time].currentmember.lag(n)) but i didn't get a result. do you have any other suggestions? what should i do?
thanks in advance.
petercan

Peter,
Unfortunately there isn't really currently a very good way to do this in script logic. Dzimitry's instructions are probably the easiest approach. A BADI might be your best bet if you need to get fancier than that.
There is another option, which is to use Account Transformation business rules. These let you copy an offset period using the "Period" field. You can specify whatever offset you want (-1, -2, 2, etc.). The only limitation is that it does not work across year-boundaries, at least not in the backwards direction.
If this functionality meets your requirements, I highly recommend using the business rules to do this. In general I recommend going to business rules first, and only then turning to script logic.
Ethan

Similar Messages

  • How can i use time shift instructions??

    Hi All,
    Can u pls tell me how to give scope for time dimension for using time shift instructions??
    suppose if i want to use 2012 year all months, how can i give scope??
    Thanks and Regards,
    Naidu

    Hi Naidu,
    in a script logic? Use a FOR/NEXT using PRIOR or NEXT, f.e. PRIOR(%MNTH%,%TIME_SET%) depending from the ,%TIME_SET% value, where %MNTH% is the variable of the FOR/NEXT containing the offset value.
    Kind regards
         Roberto

  • Input a variable for the time shift 'TIME=NEXT(var)'

    Hi experts,
                Is there any way to make the parameter on the time shift 'TIME=NEXT(%var%)'
    the idea is the user would input/send the value that will be place on the NEXT parameter..
    I've tried using the get statement but it doesn't retrieve the values.,..
    *REC(ACCOUNT="ACCT1",TIME=NEXT(GET(ACCOUNT="ACCT2")))
    it doesn't work..   i also tried the lookup.. it also doesnt work...
    Thanks,
    BennieJay

    Hi again nilanjan chatterjee,
            The process that we want to achieve is we want to make a sort of scheduling for the transactions.
    where the date of the lenght of the transaction is to be inputted in months. and for that we need to make use of the time shift NEXT. but the length should be variable because it is inputted.
    Thanks.
    Bennie Jay

  • Variable input for the time shift NEXT()

    Hi Sap support,
              Is there any way to make the parameter on the time shift 'TIME=NEXT(%var%)'
    the idea is the user would input/send the value that will be place on the NEXT parameter..
    I've tried using the get statement but it doesn't retrieve the values.,..
    *REC(ACCOUNT="ACCT1",TIME=NEXT(GET(ACCOUNT="ACCT2")))
    Thanks,
    Rey

    Hi Rey,
    First you have to create a DM dtsx file then go to modify -> view package file -> advance
    disable a standard prompt by using " ' " then replace it using script like this
    PROMPT(TEXT,%Dimension%,"Select Dimension",,"") << this prompt could only work on one selection only
    under the execute formula logic file place this
    TASK(Execute formulas,FORMULASCRIPT,"*FUNCTION LOGICPARAM=%Dimension%|")
    Done from here and then save the Dtsx
    open your script, and make this additional script 
    *SELECT (%DimensionID%,"ID","Dimension","[CALC]='N' and [ID]=substring('LOGICPARAM',1,charindex('|' , 'LOGICPARAM')-1)")
    and then place that %DimensionID% anywhere on the script. But remember while script run on input schedule can take CV as xdim will not work with this one, you have to make xdim to all dimension in application in your script each time after commit.
    hope helps.

  • How to create dummy variable in Webi report in BO 4.0 with Bex query.

    Dear All,
    We have a requirement where we need to overlap multiple tables and based on user selection any one of the table should display in report.
    We are on BO 4.0 and source is BW Bex report, we dont have any Universe.
    To achieve this we plan to have dummy variable with some fix value and use it as report filter & based on selected value in filter the related table should be display.
    We have not found any way to have dummy variable directly in Webi.
    Is their any way we can create dummy variable directly in Webi?
    Thanks v much in advance,
    Regards,

    lets say u want to display following picture:
    sept$-----august$
    City
    -chicago123$--
    44$
    so in Query designer go to Default values section.
    Bring in Calendar month
    right click calendar month
    and hit Restrict
    now select variable
    use standard sap variable Current Month.
    hit okey
    now select Variable and hit Red button
    Result u restricted current month.
    in columns bring in keyfigure $
    right click and hit edit
    bring in time field calendar month
    right click and hit restrict
    bring in Current month
    right click and select - SET OFFSET FOR VARIABLE
    select -1
    hit okey
    repeat the above process
    and this time select offset = -2
    this way u restricted current month
    but displayed last 2 months for keyfigure values.

  • Using a dummy variable in a  customer exit

    I currently have a report that uses 0calmonth = Current Month (SAP Exit)
    Now, this works fine when running for the month, but if a user wants to see the last completed month I'd need to setup a separate report that says
    0calmonth = last month.
    These reports are broadcasted automatically by e-mail, this is why I don't want to specify the actual requested month n the variable, I'd need to change my settings all the time.
    I have a whole bunch of reports setup that way and I don't want to duplicate them all, what I had in mind was to use a dummy variable in which the user enters a value CMTD or LMTD.  These values would then be used in a customer exit of the kind:
    IF CMTD set as current month
    else if LMTD set as last month
    I have no problem with that last part, but how do I create that dummy variable and is there anyway (without adding an infoobject in my cube) to have it include in the F4 menu the two option CMTD and LMTD (which are really meaningless abbreviations...)
    Thanks all for your help.
    Eric
    Message was edited by:
            Eric Blondin

    OK, this was actually easy, I used a text variable to feed in CMTD or LMTD.  Any way to have the two values available as options?  Text variables don't provide a selection box...

  • Time shift video issue

    The video taken in time shift video is too dark and is barely visible even on standby mode while not recording, even the exposure control doesn't seem to work its still the same from -2 to +2. Any advice?

    Hi aamir_kh,
    Welcome to the community.
    Just to make sure you understood the above instructions, I have supplied them below in simple format.
    Menu > Settings > Apps > All > Timeshift > Clear Data
    Now try using the app.
    let us know how you get on.
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • Recording time shift from a continuous signal

    Hello
    I am just starting learning LabVIEW and have to complete this vi.
    I need to output the data from continuous time shift, but I don't know what to do to translate it to acceptable one.
    The attachment 1 is the vi.
    The attachment 2 shows where the problem is.
    Thanks
    LPH
    Message Edited by Support on 04-21-2009 08:20 AM
    Solved!
    Go to Solution.
    Attachments:
    untitled.JPG ‏113 KB

    Sorry I don't understand "....fix this error, you HAVE to replace your local variables with wires......",
    Look at your diagram.
    You have one of the Tektronix VIs outputting a value called DELTA T.
    A couple of places you use the DELTA T control (local variables) as an INPUT.
    Which one do you think will execute first, and why?
    The answer is, you don't know.
    Since you didn't connect with wires, LabVIEW thinks you don't care about the order of things.  It might do the READ of local variables BEFORE doing the WRITE.
    Even if it does them in the order you want the first time, it might just do it differently the next time.  It's allowed.
    To avoid that uncertainty, run a wire from DELTA T coming out of FETCH WAVEFORM directly to where you want to use it.  Delete the local variables.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • How long is the life time of process scope variable ?

    Hi All,
    How long is the life time of process scope variable befoer it expires ?
    Is it the same with the life time of session scope ?
    How can we set the value in OAS when deployment ?
    Thank you,
    xtanto

    Hi,
    http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/devguide/communicatingBetweenPages.html
    " Finally, processScope never empties itself; the only way to clear processScope is to manually force it to clear:
    AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
    afContext.getProcessScope().clear();
    Otherwise the variable lives for the duration of the window process. The referenced document above also shows how to set a variable to process scope
    Frank

  • Time-shifting on NHL Gamecenter--grayed out for hours?

    So I bought my ATV2 and Gamecenter subscription with the hope of time-shifting games. I'm in Alaska, so games start at 3 and 4 in the afternoon.  I prefer to watch around 9 pm, or 1 am Eastern time.  However, on most nights, as soon as the live feed ends, the games are grayed-out--no longer available--and typically don't become available when I'm ready to watch.  I don't know exactly when they actually become available, but most nights they are NOT available by 12 am Alaska time, or 4 am Eastern time. I go to bed, and sometime during the next 7 hours they become available, since they are there when I wake up.  Well, 7 am is not a good time to watch a game, and trying to maintain a personal media blackout for the 12 hours so I don't find out the score is virtually impossible.  Result--frustrated customer with device not working the way I thought it would.
    Anyone else experiencing this "gray-out" period after the game sand any clue why iot is happening?

    I think it is normal. They seem to become watchable about 4 hours after the game ends.

  • Time shift

    Hi all,
    hope someone can help me with this problem, I'm supposed to perform a time shift for my signal however it does not work..
    I have an original signal which I need to do a time shift using DFT (Discrete Fourier Transform)
    I had used 1D fourier interpolation.vi  to do DFT but 'm not too sure whether this is the right .VI to use. If it is, is there any better .VIs which I can use?
    Can someone please help me with this problem, having a time shift by using DFT.
    Thanks a lot in advance!!
    Attachments:
    Fourier Properties Part 2.vi ‏41 KB

    Hi all,
    May I know how can I do a simple discrete time fourier transform first? Can amend the program which I had sent out earlier for me to compare at least I know what I had done wrong. I've tried writing a formula manually, used the Interpolate 1D fourier and FFT.vi(s) but it just seems that I'm wrong everytime.
    What I understand is, by applying fourier transform signal, I should be getting a frequency response graph. I did get a frequency response graph earlier, however when I calculate it with respect to the values I'd set to perform the operation, it's wrong again.
    Please find attached my revised program and your superb advises, a million thank you in advance.
    Attachments:
    Fourier Properties Part 3.vi ‏38 KB

  • Time-shift feature in camera ?

    Basically I can't find it. I tried using the camera the other night, in a well-lit room I hasten to add, and it seemed very reluctant to take a picture. Pressing the square thing just caused it to focus the image, and only occasionally would it decide to actually take the picture. Couldn't find an option anywhere in the settings to use the time-shift thing they've been showing off. Also, turning on the flash didn't appear to actually turn it on, just carried on as before using available light, so for some reason was unable to use the flash as well.
    Very weird ....

    mfarmilo wrote:
    I don't remember seeing a camera icon in the corner, only the usual 3-dot menu at the bottom.
    Look again. And remember if you have the front facing camera, neither timeshft nor flash settings are available.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Time shifting and record live stream

    Hellow everyone,
    I would like to stream videos for my viewers and them have a abiliti to timeshifting live stream.
    Can I use live application for timeshifting? Or I should use livepkgr to do that.
    For archive and play on the VOD mode I like to stream live and record at same time. in the livepkgr I see in the stream folder create a stream file with the f4f extention automaticaly whoever in the live application I should call application.record on the FMS to save live stream on the server.
    Please advise me the better solution to archive and time shifting.
    Many Thanks.

    livepkgr application for for HTTP streaming...
    f youjust want to stream over rtmp use live application and code to record the stream...recording is pretty simple in AMS just call Stream.get() s.record(...) s.play() where s is the stream which you are recording...
    application.onPublish = function(clientObj, streamObj) {      trace("recording started...");       var strName = "recorded_" + streamObj.name;      var s = Stream.get(strName);      if (s == undefined )           return;         s.onStatus = function(info)      {           trace(info.code);      }           if (!s.record("record"))      {           s.trace("record failed.");      }            s.play(streamObj.name, -1, -1, true); }

  • Run time error '9' object variable or with bloch variable not set in WAD

    Iwas able to open the web application designer see some of the web tenplates that have done by me but now when i try to open any of the web templates its popping up me the msg Internal Error: No template standard property  . Run time error '9' object variable or with bloch variable not set
    What setting needs to be done
    Priya

    It got solved
    Wait until all the web items get loaded then own ur web template

  • More simple way for creating dummy variables

    I am finding for more simple way for creating dummy variables.
    For analyzing by linear regression, logistic regression ... creating dummy variables from categorical data is necessary.
    Most simplest way for creating dummy variables is may be pivot function.
    But I need more simple method.
    Anyone's idea. I welcome.
    Naoya Ikeda

    Hi Naoya. Can you give an example of a sample input and output, with a description of what you'd like to do?
    Thanks,
    Ehren

Maybe you are looking for

  • Reports are not returning results in obiee 11g dashboards.

    Hi, I have dashboard with 3 reports,i saved my customization of particular date range,product group and target list.When I ran the dashboard for first time,I got all the results for 3 reports in dashboard but from the second time,only one of the repo

  • What happen during shutdown database

    Dear All, i have a questions and i enclosed some suggestions for the answer because I'm confused about the answers : What happens during shutdown oracle database : and the suggested answer : 1- When shutdown the database with NORMAL or IMMEDIATE opti

  • Where can I set the regularity of my back ups

    Hi I have a mac pro, mountain lion and new time capsule with its first full backup.  Where are the settings to change when I want it to back up?  Thanks

  • [svn] 2473: adding the eclipse development files

    Revision: 2473 Author: [email protected] Date: 2008-07-14 13:28:56 -0700 (Mon, 14 Jul 2008) Log Message: adding the eclipse development files Added Paths: flex/sdk/trunk/development/eclipse/flex/flex4/ flex/sdk/trunk/development/eclipse/flex/flex4/.a

  • Cross-referencing 2LIS_03_UM against 0FIGL_02

    Hi, As revaluations do not generate material Docs. we find a difference between the delta in stock amounts over two months and the net material movements. We would like to check via 0FIGL_02 but therefore we need to know which FI doc types in FIGL_02