Off-set on variable

Hello,
Could someone please describe to me the concept of off-set on a variable?
There is a variable named AF_FPER-1 in my BW-system, where -1 indicated the off-set, I guess?
How was this variable created? It is based on a SAP user exit variable..
Thanks & regards,
F C

Hi F C,
Usually the SAP exit variables will be defined starting with a 0 in the technical name. Anyhow coming to the concept of Offset: This helps you get another value from the same variable, based on the relationship of so many before or so many after. Offsets are commonly used with the time variables. Lets say the reqt is to have data for this month and 2 months prior to that. One way would be to have 3 variables, but this is redundant and non-user friendly. So you can use one variable and define offsets as -1 (previous) and -2 (prior to previous).
Hope this helps...

Similar Messages

  • How to Off set the variable range ?

    experts !
    i have created a variable on ofiscper, and it gives a range for that. (  e.g. 001/2009 - 012/2009 ) . everything works good. but i have to show values for the same range for previous year too.. so i thought that off set should be working. But i am not gettting the correct results if i use off set to ( -1 ).
    can we use offset for a variable whcih takes range ?
    what are my options ?
    Thaks

    Hi honar,
        1. Take that  0fiscper In Characteristic Restrictions box.
        2. Right click on it choose Restrict option. you will get a window select variabls option.
        3. You may have predefined variable. Take that into selection box.
        4.Take the Offset value -12.
    Note : Make sure that your variable should be Intervel option  in variable Represents.
    This may resolve ur prob.
    Thanks,
    Mahi.

  • Problem with restricted key-figure using off-set variable

    Hello Gurus,
    I have created a query in Bex Query Designer with a key figure restricted. This key figure shows me the 0amount value for the last month. When I select 003.2009, the key figure brings the 002.2009 values. I used an off-set variable to do this
    It works!
    But when I show this key-figure in Webi, no value shows up on the table.
    Any suggestions?
    tks
    Edited by: Allisson Valverde on Jul 23, 2010 12:12 AM

    Which variable are you using in BEx and in WEBI to restrict the month/year?

  • 0I_FPER and variable off set not working

    Hello All,
    I am attempting to us the FiscPer Interval input variable with an off set and it does not appear to be working.  I am attempting to do this on COPA.  The business requirement is to have an interval and the corresponding interval for the prior year.  One of the problems I am having in testing this is that there is not enough data to test the year (-12) off-set.  So I have decided to test it with a -2 off set to see that at least in theory it will work.
    The 0I_FPER interval is working however the -2 off set is not returning any data.  I have attempted a number of solutions so far with out success.  We are using BI 7.0 and are currently on Service Patch 10 with a number of additional oss notes applied.  Does any one have any suggestions for me?
    Thanks
    MK

    i dont think offset would work on interval option. It needs to be a single value.
    What i mean to say is, if the user enters 01/2006 - 07/2007, when you put a offset 0f -2, the system wouldnt know which value it is supposed to offset (period1 - 7).
    The work around if you want to display the same range in previous year would be to use two variables on fiscal year and posting period seperately and there you can do a offset on fiscalyear which would give you the same range for 2006.

  • Set substitution variable from Sql table

    Hi guys,
    I am new to sql/unix so I hope you can guide me in the right direction.
    whats the easiest way to update an essbase subvar from a sql table?
    would I have to write a sqlplus statement to output the variable to file,
    read the file in a maxl command and set the variable and call these commands using .sh script and esscmd?
    is there a more efficient way to set the variable? e.g only use sqlplus and esscmd?
    thanks in advance,

    Try something like this
    echo off
    sqlplus -s username/passwordusername/password@server/SID:@server/SID:port @test.sql > variable.txt
    for /f "usebackq delims=" %%a in (variable.txt) do set CurrentMonth=%%a
    echo %CurrentMonth%
    See whether you are getting the correct month.
    Regards
    Celvin
    http://www.orahyplabs.com

  • Calculating prior months using off-set and crossing to prev year

    Gurus,
    I am getting current month period based on user entered value and calculating prior month by off-setting current month by 1.
    it works fine when current month value is greater than 1. If it is 1, prior month does get evaluated as 12 of previous year.
    Example...
    If Current period is - Feb, 2008 (02/2008). previous period comes fine as Jan, 2008.
    If current period is Jan, 2008 (01/2008) perious period is unknown. (I want it to be 12/2007).
    is there way to handle this without too much coding etc?
    Regards,
    -SM

    Mayank,
    What is SAP variable for Fical Year/Period, which will have both month and year value? (I guess I need to Fiscal posting period rather than Cal month?)
    Also what is SAP variable for Quarter/Year? I need to off-set of quarter also.
    Thanks, -SM

  • How to avoid escaped XML in "Set Workflow Variable" | "By Composing"

    Hi, I have a proplem building an XML document using the action : "Set
    Workflow Variable" | "By Composing" dialog.
    The value of an element on the left pane is a variable in the right pane.
    This variable contains a snippet of XML.
    The problem is that when I print out the newly created document the XML I
    added to it from the variable has been escaped :
    In the example below I created a new xml document called new XML in its
    child_2 element I set its value to the XML String "xml".
    As you can see, the value of child 2 has been escaped. Is there a way to
    turn this feature off ??
    <Jan 30, 2002 10:02:35 AM GMT+10:00> <Info> <WLPI> <<wlpirequest>
    <started>2002-01-30 10:02:35.009</started>
    <requestor>wlpisystem</requestor>
    <templateid>17</templateid>
    <template-name>TEST ESCAPE XML</template-name>
    <templatedefinitionid>17</templatedefinitionid>
    <instanceid>10005</instanceid>
    <actions>
    <activatetask time="2002-01-30 10:02:35.009" taskid="2" name="Task 1"/>
    <setvariable time="2002-01-30 10:02:35.009" variable="xml">
    <StartActivity><businessRef>bus ref</businessRef><orderRef>order
    ref</orderRef><activityId>Activity ID</activityId></StartActivity>
    </setvariable>
    <setvariable time="2002-01-30 10:02:35.011" variable="newXML">
    <Root>
    <Child_1>Child 1 data</Child_1>
    <Child_2><StartActivity><businessRef>bus
    ref</businessRef><orderRef>order
    ref</orderRef><activityId>Activity
    ID</activityId></StartActivity></Child_2>
    </Root>
    </setvariable>
    <marktaskdone time="2002-01-30 10:02:35.011" taskid="2" name="Task 1"/>
    <workflowdone time="2002-01-30 10:02:35.032" name="TEST ESCAPE XML"/>
    </actions>
    <completed>2002-01-30 10:02:35.037</completed>
    </wlpirequest>
    >

    Hi,
    I also have this problem. It seems that a crude way around it, is to use a quick
    fix via calling a business operation that performs string substitution to replace
    the escaped entity references (<) and (>) with "<" ">". I have done this
    and the approach works for me. Just be careful and make sure that the xml string
    your are cleaning up doesn't contain any of these entity reference that you would
    like to keep. Otherwise it will definitily break your xml. I hope you have that
    luxury.
    The easiest way to do is is to write a StringUtil class with a static replace
    function, replace(source, old, new), expose this method as a business operation,
    then call twice to convert your xml string.
    I know this is pretty pathetic, but might help in the meanwhile until BEA provides
    this functionality.
    Lukas
    "Smita Agarwal" <[email protected]> wrote:
    >
    Hi Paul,
    I am getting the exact same problem , have you found a solution for
    it??
    It will be great to know if this problem is solved.
    I am using WLI2.1 sp1 and WLS6.1 sp2, even with these two configuration
    this problem
    is occuring
    cheers,
    Smita
    "Paul Rooney" <[email protected]> wrote:
    Hi, I have a proplem building an XML document using the action : "Set
    Workflow Variable" | "By Composing" dialog.
    The value of an element on the left pane is a variable in the rightpane.
    This variable contains a snippet of XML.
    The problem is that when I print out the newly created document theXML
    I
    added to it from the variable has been escaped :
    In the example below I created a new xml document called new XML inits
    child_2 element I set its value to the XML String "xml".
    As you can see, the value of child 2 has been escaped. Is there a way
    to
    turn this feature off ??
    <Jan 30, 2002 10:02:35 AM GMT+10:00> <Info> <WLPI> <<wlpirequest>
    <started>2002-01-30 10:02:35.009</started>
    <requestor>wlpisystem</requestor>
    <templateid>17</templateid>
    <template-name>TEST ESCAPE XML</template-name>
    <templatedefinitionid>17</templatedefinitionid>
    <instanceid>10005</instanceid>
    <actions>
    <activatetask time="2002-01-30 10:02:35.009" taskid="2" name="Task
    1"/>
    <setvariable time="2002-01-30 10:02:35.009" variable="xml">
    <StartActivity><businessRef>bus ref</businessRef><orderRef>order
    ref</orderRef><activityId>Activity ID</activityId></StartActivity>
    </setvariable>
    <setvariable time="2002-01-30 10:02:35.011" variable="newXML">
    <Root>
    <Child_1>Child 1 data</Child_1>
    <Child_2><StartActivity><businessRef>bus
    ref</businessRef><orderRef>order
    ref</orderRef><activityId>Activity
    ID</activityId></StartActivity></Child_2>
    </Root>
    </setvariable>
    <marktaskdone time="2002-01-30 10:02:35.011" taskid="2" name="Task
    1"/>
    <workflowdone time="2002-01-30 10:02:35.032" name="TEST ESCAPE XML"/>
    </actions>
    <completed>2002-01-30 10:02:35.037</completed>
    </wlpirequest>
    >

  • Setting a variable that I can call it's value from any symbol.

    Hey everyone!
    I'm working on an edge animate game and I'm learning as I go you can say
    The way I have it set up is I have a container that holds different symbols depending on which button you click on. They symbols open you up to a deeper part of the game.
    However I want to be able to set a variable on the stage that I can later manipulate when the different symbols are open.
    What I have so far is my limited understaning of jquery, in the stage I start off by setting a variable
    var variable1 =     5,
        variable2 =     10;
    Then in my symbol I want to be able to do something like this
    if(variable1 > variable2) {
    Then do something
    else {
    Then do something else
    variable1 = 10
    variable2 = 5
    However the problem I am having is that when I set the variable value in the stage the entire variable name and value is not rememembered in the symbols.
    So is there any code I could write in the symbols that can call the variables defined in the stage into the symbols.
    Thank you so much for any help. It is greatly appreciated .

    Hi, I've literally just solved this problem for myself! I've been unable to get variables remembered within symbols too. This will be familiar if you've accessed the Stage from within a symbol already, like so (this kind-of takes a step back and takes you to the main stage from within the symbol):
    sym.getComposition().getStage().$("anElement").hide();
    The way I've updated the score (displayed on the stage) from within a symbol it is to GET the variable from the stage:
    var score = sym.getComposition().getStage().getVariable("score");
    score += 100;
    sym.getComposition().getStage().$("valueDisplay").html(score);
    sym.getComposition().getStage().setVariable("score", score);
    So for you I'd recommend:
    var variable1 = sym.getComposition().getStage().getVariable("variable1");
    var variable2 = sym.getComposition().getStage().getVariable("variable");
    if(variable1 > variable2) { this }
    else { that }
    If you wanted to update the variables and store them on the stage, then you'd do that similarly:
    variable1++;
    sym.getComposition().getStage().setVariable("variable1", variable1")
    Hope this helps, I may not be 100% and it may be explained better as I'm learning as I go myself!
    Ray

  • Off Set on a Select Option on the Query

    Hi Peolpe,
    How can i do to put a Off set on a select option on the query ?
    Thanks.

    Hello rafael,
    When you restrict any char. with a variable just right click on the variable, you will see the option on the contex menu.
    Sarhan.

  • Set environment variables

    Does a user need to have certain rights or access to certain libraries to
    set environment variables off or on when running a pl/sql script?
    environment variables such as:
    set echo off;
    set termout off;
    thanks

    It is possible to disable certain SQL*Plus, SQL and PL/SQL commands, using the PRODUCT_USER_PROFILE table (note that this only affects the SQL*Plus environment).
    See: http://download-west.oracle.com/docs/cd/B10501_01/server.920/a90842/ch10.htm#1005596

  • Apex listener installed no test and set bind variables buttons

    I have installed Apex listener and while creating restful service module i dont see test and set bind variables buttons in the source region.
    I went through the many posts. Installed apex listener successfully.
    getting http://localhost:8080/ords/ started message when i start the listener.
    and using Apex URL as http://localhost:7780/pls/htmldb.
    What are the possibilities for this issues?
    Please help me on this.
    Thanks
    Chandran

    Apex listener version is 2.0.9
    Apex version is 4.2

  • How to set a variable value on the BPC Data Manager

    Hello BPC Experts,
    I'm creating a BPC10 NW version demo environment for our prospect customer.
    I made a data manager to import  BW data into BPC model from BW cube.
    I need to import just one month data into BPC from the BW cube that has more than one month data.
    When I run the data package manually, I can select a member of the time dimension prompt and I can import specific month data I want.
    But, in a case where the program (data manager) runs by JOB monthly,
    I can't select a member of the time dimension prompt manually.
    So I want to know how to set a  variable value to the time dimension prompt from a system date etc. automatically.
    Are there any way to set a variable value to the time dimension prompt on the data manager automatically from a system date?
    Or, do you have any other solution to import just one month data into BPC from the BW cube that has more than one month data  by the data manager running on JOB ?
    (without selecting a member of the time dimension prompt of the data package manually)
    Thanks in advance,
    Keisuke

    Hi Gersh
    Sorry for my late reply and thanks for your helpful information.
    I tried the second way of your information and I could configure it.  
    And I 'll try first way of your information.
    Regards,
    Keisuke

  • How can I set #HOST# variable referenced in the Chart template?

    #HOST# and #HOST_PROTOCOL# are being set incorrectly by APEX from CGI variables when I create a chart. I am using APEX 4.1 and Oracle 11g. The get the continual "Loading data..." and then after it times out I get "Error loading file".
    Before we changed to a secure http environment, our charts worked. After we changed to the new web layer, the charts do not work. The #HOST# substitution was set to http://correctservername/ and #HOST_PROTOCOL# was set to http. We set PlsqlCGIEnvironmentList REQUEST_PROTOCOL=https in the dads configuration file and now the #HOST# displays https but it also includes the default port number which we do not want (https://correctservername:port/) The charts work without the port. REQUEST_PROTOCOL is not in the cgi list and setting this variable set #HOST_PROTOCOL#. What variable can we set to make #HOST# correct. It seems like #HOST# is being set by #REQUEST_PROTOCOL#'://'||HTTP_HOST||':'||SERVER_PORT||SCRIPT_NAME||'/'. SERVER_NAME could also be used in of HTTP_HOST. I don't know how APEX is setting #HOST#. Does it come from a host alias somewhere in the environment?
    I don't want to add a new cgi variable called HOST because HOST sounds so generic and it might interfere with something else running in our environment. Or, I don't want to change the plsql cgi environment variable (such as HTTP_HOST) because many developers may use owa_util.get_cgi_env('HTTP_HOST') to get the current server. If the SERVER_PORT is part of the #HOST# then what could I change it to if it needs to be null. If you leave it blank, then the default SERVER_PORT comes from the CGI variables.
    I would rather not create a global variable (hard-coding) and create a new chart template using the global variable or create a before header application process to re-direct url without a port.
    Edited by: Donna C-Houston on Oct 10, 2012 1:06 PM

    Hi Donna,
    changing the CGI environment variables HTTP_HOST, REQUEST_PROTOCOL and SERVER_PORT is the correct way how to resolve this, because it appears that your hiding the web server where you have installed mod_plsql or EPG by a different outside facing web server (also called reverse proxy). That's why APEX gets the host name, protocol and port of the internal web server, but should actually get the values of your reverse proxy web server. Can can fix that by changing the following CGI environment variables.
    HTTP_HOST should just contain the domain name (no protocol or port). For example: www.oracle.com
    REQUEST_PROTOCOL should contain http or https
    SERVER_PORT should be the port for https
    I don't want to add a new cgi variable called HOST because HOST sounds so generic and it might interfere with something else running in our environment. Or, I don't want to change the plsql cgi environment variable (such as HTTP_HOST) because many developers may use owa_util.get_cgi_env('HTTP_HOST') to get the current server. If the SERVER_PORT is part of the #HOST# then what could I change it to if it needs to be null. If you leave it blank, then the default SERVER_PORT comes from the CGI variables.The value of HTTP_HOST is wrong anyway and points to your internal web server, but I assume your developers actually want to get the host name of your external web server if they use it to generate absolute URLs. That's why I wouldn't bother and set it to the correct host name.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • How can I set a variable number of values in a SQL IN clause?

    Hi,
    How can I set a variable number of values in a SQL IN clause without having to change the text of the SQL statement each time?
    I read the link http://radio.weblogs.com/0118231/2003/06/18.html. as steve wrote.
    SELECT *
    FROM EMP
    WHERE ENAME IN (?)
    But we need the steps not to create type in the system and would there be any other solution if we would like to use variable number of values in a SQL IN clause ?
    We are using JDeveloper 10.1.3.2 with Oracle Database 10.1.3.2
    Thanks
    Raj

    Hi,
    can you please explain why the solution from steve is not the right solution for you.
    regards
    Peter

  • Setting Environment Variable CPIC_MAX_CONV

    Hi Experts,
    In of  the steps during POST INSTALLATION of PI7.0 it says to set the variable CPIC_MAX_CONV, using the transaction RZ10.
    When i logged in to the abap system , and checked in RZ10,did find any variable of this name.
    Do I need to create it first and then set the value gw/max_conn_per_wp.
    If yes, give me the steps to do this. or else any other alternative.
    Thanks in advance,
    Younus

    Hi,
      Check this note : 
    1.- https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_fes/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d333136383737%7d
    2.- /thread/174978
    The parameter CPIC_MAX_CONV is a environment variable that you find in Unix or windows, depends where you had installed SAP PI.
    Best regards
    Ivá

Maybe you are looking for

  • Final Cut Pro X - second document cannot be opened

    Help  !   I have a very irritating problem I cannot get rid of.     Every time I open FCPX  I get an error  message (below).      Mac Pro Desktop,  RAID0  6TB array,   3TB  backup drive   (also internal)   (i.e. we have four 3TB drives,  3 form the a

  • Help putting a photo gallery in Dreamweaver CS5.5

    Hi, I'm new to web design and have been learning to use DW CS5.5.  My goal is to design a website for my small, online antiques business with a photo gallery in it. The Adobe Extension site lists several photo gallery options, but none for CS5.5.  Do

  • Problem in Posting a SOAP message to XI

    Hi, I am exposing an RFC as a web service. And i did all the necessary configuration. But when i tried to post the message to XI. Am getting the following error. Message Servlet is in Status OK Status information: Servlet com.sap.aii.af.mp.soap.web.M

  • Apply character or paragraph styles to notes and to do's in Mail ?

    Is it possible to: apply character or paragraph styles to notes and to do's in Mail ? ALSO: I would like to change things like- change the color of the default yellow notebook like ruled paper? apple character or paragraph styles to notes and to do's

  • Prepared statement takes much longer than statement..

    Hi community, At the moment I'm trying to migrate my j2ee application from DB2 to Oracle. I'm using database version 10.2.0.3 and driver version 10.2.0.4. After copying all data from DB2 to Oracle, I've started testing the application with the new da