Variables with Offsets in Cache

Hi Guys,
I have a number of queries that I want to cache the current week, plus the last 4 weeks, each night.
I have the variable for current week working but how do I create offsets of this in the 'Filling OLAP Cache' in Info Broadcasting?
Regards
Scott

Thanks for your reply. I guess after looking into the problem yesterday I found out that if the changes are made to the project that will be executing then the changes in static String are detected but we have 3 projects in addition to the project with web module (all projects sit in the same workspace). If the static String in one of the project is changed the change is not reflected when the web module is run. As the additional projects are domain objects they are not supposed to be run by themselves only to be called by the web project. We have tried building every project before running web module that does not help. So, any thoughts how this situation can be remedied. BTW- we have just moved all our development to JDeveloper and are loving it.
Glad to hear that you are loving JDeveloper. Right now your workaround is to Build each of the projects. For the next release we will have a Build Workspace command which will build all of the projects in the workspace.
Part of the problem, is that your static String (probably final), is getting inlined by the java compiler (this is normal for final values), and therefore not getting updated since it lives in a different project.
You could not make it a constant (final static) value, and make a static method to get the value, or just remember to build all of the projects for now. With the release later this year, Build Workspace will work nicely for you in this situation.
Thanks,
Rob

Similar Messages

  • Replacement path variable with offsets

    Hi experts,
    I have the requirement to report receivables (open items) historically by fiscal year / period.
    More precisely, each period should show the open items that are open at the end of the period.
    Example:
    001.2010 (shows open items from 31.01.2010)
    002.2010 (shows open items from 28.02.2010)
    ...etc.
    The idea is that the user enters a fiscal year/period using a manual entry variable.
    The open items should be calculated as follows:
    KF: Amount
    Posting Date <= Variable
    Clearing > Variable or unassigned
    Variable is a replacement variable that is replaced by attribute "Date To" from the user entry Variable (Fiscal year period)
    E.g. if the user enters 008.2010, then this value is automatically replaced by 31.08.2010.
    Generally this works.
    However, to view the values for the last 12 months, a structure is needed consisting of 12 elements with offsets in order to show the 12 months prior to the selected period (e.g. 001.2010 - 002.2010 - 003.2010 ....etc.)
    The problem is that the replacement only considers the user's variable entry and ignors the offsets.
    Example:
    User enters 008.2010.
    In the column strucure I show 3 months 006.2010, 007.2010, 008.2010.
    Then all columns would show items open on 008.2010 - the offsets are ignored.
    Any idea, why this happens and how it can be resolved?
    This problem has given me a headache for days.
    Your help is much appreciated.
    Thanks and regards,
    Alex
    The user should be able to enter a fiscal year / period and

    take an e.g.
    u have characteristic say ch1
    u want to restrict it with replacement path variable
    first of all create a variable var1
    click what it is based upon for e.g. 0calday, 0material etc.
    make it user entry variable
    select single or multiple entry
    make it mandatory
    save it and hit okey
    click on ch1
    right click and say restrict
    in new window create a new variable
    give its name and technical name
    processing path is replacement path
    go to next tab of replacement path
    select several ooptions
    replace variable with another variable
    select a variable called var1
    change the offset length and offset start with different parameters.
    hit okey
    this way u have restricted ch1 with replacement path variable var1
    now when u run report u have to enter value of var1
    which will then further feeded to ch1
    this way u can create replacement path variables at lots of instances and then u can always feed the value from var1 at different time
    make sure as this ur requirement is date
    try to use 0calday as reference infoobject all the times....

  • Bex variables with offset

    I've created a query with a period structure that contains 12 periods. Using a variable and a offset I'm able to key in for example 012/2006 and get the "actuals" using a restricted key figure for month 1-12 of 2006. That seemed straight forward. Were I am confused is if I wanted the users to key in 010/2006 and get months 1-10 or by using the same query key in 04/2006 and get months 1-4. I'm hoping someone can explain if possible.
    Will award points as always.
    Thanks
    Richard

    Use an interval which says:
    Fixed value 'Period 1' to variable value 'entered by user'.
    You can mix values and variables in an interval.
    But you can't use a fix structure where you created a key figure for each month. You would have to use a drilldown instead for 0FISCPER.
    Regards,
    Beat

  • Variable with offset error

    Dear gurus,
    On my query i have a variable V1 ( user input ) for the period char ( 0fiscper3 ).
    I need to have a column with values from period imputed on V1 + 1 until period 13, but when user inputs on V1 value 12 ( 12 + 1 = 13 ), values for period 1 to 13 are displayed. If i fix on the column period 13 - 13, no values are displayed ( its correct ).
    The only thing that i remind is that period 13 does not have values, so system goes to next period with values ( period 1 ) and goes until period 13.
    Does this makes any sense? Does anyone knows what i am doing wrong?
    Please help.
    Best regards,
    Vitor

    Hi Vasco,
    check your user exit code in CMOD. keep a "IF" Condition like the fiscal/period should be less than 13.
    IF Fiscper < 13.
    hope this helps.
    With Regards,
    Ravi Kanth

  • Customer Exit Variblae with Offset

    Hello Everyone,
    Can any one tell me whether we can use offset on Customer Exit Variable or no?
    I have
    Variable 1. Calmonth_01 in first Column which is also input varialble.
    Variable 2. Calmonth_02 is second Columnt which is Exit  Variable on which offset is not applied.
    From third Column i m using second variable with offset.
    According to me it has to work. but i m report it is not working.
    Plz help.

    Hi,
    If you have any Input Variable on 0CALMONTH and based on the input month if you want to display the reports either + or 1 Months then you can use Off Sets it will work, no need to go for Customer Exit Variables.
    1. Create a User Entry Variable on 0CALMONTH eg name of variable = ZMNTH
    2. Restrict the Keyfigure with ZMNTH in column one.
    3. Restrict the Keyfigure with ZMNTH-1 in column two, it will display Previous month data based on Input month
    4. Restrict the Keyfigure with ZMNTH+1 in column three, it will display next month data based on Input month
    Steps 3 & 4 are using Off Sets only.
    For any Customet Exit variables see
    https://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
    Thanks
    Reddy

  • Creating Variable with Replacement Path to get value from ANOTHER Variable

    Hi all,
        Is anyone has created the Variable with Replacement Path to get the value from another User Entry Variable, PLEASE ? 
    First created the User Entry Variable (ZV_X) and it accepts the date range like '01/01/2009 - 01/31/2009'. Next created the Characteristic variable (ZV_Y) of Replacement Path for which source variable will be ZV_X and we should get the 'FROM Date' (01/01/2009) from the selection (ZV_X) into it (ZV_Y).
    While creating the Characteristic variable (ZV_Y) of Replacement Path, I didn't find my newly created ZV_X variable in the list of available variables under 'Variable' header in 'Replacement Path' tab and it is causing the error 'Source to replace variable ZV_Y is not defined'. How could I create the Characteristic variable of Replacement Path for my requirement, PLEASE ?
    The following is from help.sap..com:
    Replace with Characteristic Value
    Text and formula variables with the processing type Replacement Path can be replaced with a corresponding characteristic value. In the variable editor, on the General tab page, you specify under Reference Characteristic the characteristic that is to be referenced by the replacement. On the Replacement Path tab page, you can choose whether the variable is replaced with the From or the To Value and with the Key or the Name of the characteristic value. You can also specify the Offset Start and Offset Length for the output.
    Replace with Variable
    Characteristic value variables, hierarchy variables, text variables, and formula variables with the Replacement Path processing type can take their values from a different variable.
    The following prerequisites need to be fulfilled:
    Variable
    ●      The variable must not be input-ready
    ●      The variable must represent a single value
    Source Variable
    ●      The source variable must not be a hierarchy node variable
    ●      The source variable must be input-ready
    ●      The source variable must be available in the query
    ●      The source variable must represent a single value or an interval
    In the variable editor, on the Replacement Path tab page, you specify the source variable from which the value is to be determined. The value is either determined from the key, the external attribute of the key, the description, or the attribute value. You can specify an Offset Start and an Offset Length for the output here. The variable is replaced on the variable screen upon each data release.
    Thanks,
    Venkat.

    Hi Eve,
    It is possible to connect the 2 queries using a Replacement Path characteristic variable. You would need to create the variable on the char whose values you want to pass from Q1 to Q2. The variable will be of type replacement path and you will need to enter the name of Q1 from which it will get the values. Make sure that you include this char in the query definition of Q1 and Q2. In Q2 you will restrict the characteristic using this variable. DO not use this variable (replacement path) in Q1.
    In your query properties check if you have turned on the checkmark for Release for OLE DB for OLAP (3rd tab). If the check mark is there, then remove it.
    We are using the scenario in a couple of places, and it works very well.
    Hope this helps...

  • Problem with offset values

    Hi Experts,
    I have a problem with offset values. I have create a variable on OFISCPER, it's characteristic value, indivdual value, mandatory and ready for the input. I need to show the varibel period and the l previous period and so on till 12 periods. I used the offset values (-1, -2, etc.) but when I execute the query I can show just the variable period and the period previous I don`t see. The query is based on multiprovider and don´t has filters. Can anyone help me?

    Leonel,
    You may nt need to have 12 columns in the query designer.
    You could include the keyfigure and restrict it to the variable and create the offset for the 12 periods
    Check this http://help.sap.com/saphelp_nw04/helpdata/en/00/e8d13f7fb44c21e10000000a1550b0/frameset.htm
    -Doodle

  • Replacement Path Variable with Another Variable

    Hi,
    I am currently trying to create a report that would need me to have the same values for different characteristics (e.g. clearing date, posting date, net due date). I have seen that there is a way in the replacement path variable that would replace its value with another variable that is ready for input. I also looked into SAP help but I can't seem to figure out on how to do it specifically. Does anyone know a step-by-step process on how to do this? How does this work?
    Thank you in advance!

    take an e.g.
    u have characteristic say ch1
    u want to restrict it with replacement path variable
    first of all create a variable var1
    click what it is based upon for e.g. 0calday, 0material etc.
    make it user entry variable
    select single or multiple entry
    make it mandatory
    save it and hit okey
    click on ch1
    right click and say restrict
    in new window create a new variable
    give its name and technical name
    processing path is replacement path
    go to next tab of replacement path
    select several ooptions
    replace variable with another variable
    select a variable called var1
    change the offset length and offset start with different parameters.
    hit okey
    this way u have restricted ch1 with replacement path variable var1
    now when u run report u have to enter value of var1
    which will then further feeded to ch1
    this way u can create replacement path variables at lots of instances and then u can always feed the value from var1 at different time
    make sure as this ur requirement is date
    try to use 0calday as reference infoobject all the times....

  • Text Variable with Replacement Path

    Hi,
    I want to create a report which will show me 5 years of data. I have used a variable for Fiscal year which will be given by the user. Now I created a 5 key figures with offset to show the 5 years of data. 
    I used a text variable with replacement path based on Fiscal Year, to display the year in the column heading. But I am only able to get the correct year in the first column. Rest of the column is showing me the same heading. Actually the offset is not working for the text variable.
    Can anybody let me know how could we achiev the column heading for the columns with offset.
    Thanks

    Prashanth,
    I have used a replacement variable in the exact situation. Instead of years, I have different months. I have used this variable on 0CALMONTH. I also have two more keyfigures where CALMONTH is offset by -12 and +1.
    This variable works perfectly for me as expected.
    Did you check the data to make sure that your offset is working? This is was I did for Offsetting and i am sure you have done the same thing.
    Right click on the variable, "restrict". A window opens with the values. With the variable selected in the right side, right click "Specify Variable Offsets". If the replacement variable is built on this infoObject, it should work.
    Hope it helps. Let me know if you still can not find a solution.

  • Using bind variable with IN clause

    My application runs a limited number of straight up queries (no stored procs) using ODP.NET. For the most part, I'm able to use bind variables to help with query caching, etc... but I'm at a loss as to how to use bind variables with IN clauses. Basically, I'm looking for something like this:
    int objectId = 123;
    string[] listOfValues = { "a", "b", "c"};
    OracleCommand command = new OracleCommand();
    command.Connection = conn;
    command.BindByName = true;
    command.CommandText = @"select blah from mytable where objectId = :objectId and somevalue in (:listOfValues)";
    command.Parameters.Add("objectId", objectId);
    command.Parameters.Add("listOfValues", listOfValues);
    I haven't had much luck yet using an array as a bind variable. Do I need to pass it in as a PL/SQL associative array? Cast the values to a TABLE?
    Thanks,
    Nick

    Nevermind, found this
    How to use OracleParameter whith the IN Operator of select statement
    which contained this, which is a brilliant solution
    http://oradim.blogspot.com/2007/12/dynamically-creating-variable-in-list.html

  • Setting Multi Variables with Multi SQL Queries: Performance Bottleneck?

    Hello ODI Experts,
    I have created a Logical & Physical Schema and Source Data Store to pick data from DB Table. Now I am setting variables with simple SELECT Query for setting each variable (in its Refreshing tab>Select Query field).
    It gives me a less optimized approach picking one column per query (per variable). Lets say, I have to pick 35 columns from a table and put those in 35 variables...It would mean running 35 queries for fetching one record from the database table.
    Doesn't it seem less performance effective (less optimized)..a little scary..or ODI does it with some internal optimized technique?
    Any thing better or a different approach that I can do to make variable setting more optimized?
    Please guide.
    Thanks & Regards,
    Ahsan Asghar

    Hi GottaLoveSQL,
    According to your description, you want to improve the performance of report with subreports. Right?
    In Reporting Services, the usage of subreport will impact the report performance, because the report server processes each instance of a subreport as a separate report. So the best way is avoid using subreport by using LookUp , MultiLookUp , LookUpSet, which
    will bridge different data sources. In this scenario, we suggest you cache the report with subreport. We can create a cache refresh plan for the report in Report Manager. Please refer to the link below:
    http://technet.microsoft.com/en-us/library/ms155927.aspx
    Reference:
    Report Performance Optimization Tips (Subreports, Drilldown)
    Performance, Snapshots, Caching (Reporting Services)
    Performance Issue in SSRS 2008
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • 0CALDAY with offset -1 question

    Hello SDN,
    I am using BW3.5 query designer.  In my rows, I have 0CALDAY.  In my columns, I have Volume, and Prior Day's Volume.
    I am trying to calculate the Prior Day's volume.
    Example dataset:
    2008.01.01     10     0
    2008.01.02     7      10
    2008.01.03     5      7
    What's the best approach to do this?  I am thinking to either create a variable with an offset of -1 or using cell editor.  The problem I am having with using a variable is that I am trying to avoid using a variable screen for a key date.  If I use "Current Calendar Day" variable for 0Calday with an offset of -1, then it makes all the values in the Prior Day's Volume =  sysdatum - 1 which is not what I want.
    Thanks!
    Brendon

    Hi Brendon,
    Are you using a standar cube or is it a custom made?
    If it is a custom made, one way to do it is the following:
      In your cube define a new key figure (ex: valueDayBefore)
    on your update or dtp rules
    assign the same key figure you used to your original key figure to valuedaybefore,
    in the characteristics, make a formula for ADDING (1 day to 0CALDAY ).
    Ex:
    Source:
    0CALDAY ___VALUE
    04.04.2008___10
    05.04.2008___20
    06.04.2008___30
    Cube:
    0CALDAY ___VALUE___VALUEDAYBEFORE
    04.04.2008___10_______X             
    05.04.2008___20_______10
    06.04.2008___30_______20
    07.04.2008___X________30
    Now you can easily do the query you need.
    I still dont know how to do it via Bex only, that is the way we resolved succesfully one similar requirement.
    hope it helps.
    DGF

  • Variable CalMonth Offset and simultaneous Calyear Filter

    Hello,
    I used a variable (user entry) to determine Calmonth, and then I used offsets of the variable to restrict keyfigures and display them in 4 colums, one for each of the 4 quarters preceding calmonth as follows:
    1) calmonth-11 to calmonth-9
    2) calmonth-8 to calmonth-6
    3) calmonth-5 to calmonth-3
    4) calmonth-2 to calmonth
    The problem is that I want also to restrict the keyfigures (and/or the hole query) to the year of calmonth (I dont want to take into accounth the values of the keyfigures if the offset 'falls' the year before).
    Example:
    Calmonth = 06.2007
    Then:
    1) calmonth-11 to calmonth-9 = 07.2006 to 09.2006
    2) calmonth-8 to calmonth-6 = 10.2006 to 12.2006
    3) calmonth-5 to calmonth-3 = 01.2007 to 03.2007
    4) calmonth-2 to calmonth = 04.2007 to 06.2007
    I only want to take into account the values of the key-figures for 2007: 3) and 4).
    So columns corresponding to 1) and 2) should be empty...
    To do so, I have a variable (exit) for calyear that takes the value of the year of calmonth.
    I then additionally restricted the keyfigures with my calyear variable, and I also put the calyear variable in the Filters of the query.
    I also put caracteristic Calyear on top of the columns (before the keyfigures).
    My problem is that on the layout, in the example below, I have all the colums for 2006 and all the columns for 2007, (at least filled with the good values: 2006 has values only for 1) and 2), and 2007 has values only for 3) and 4)).
    But I don't want to have all the 2006 part on my report (having 2006 makes me have a lot of additional rows that are empty on 2007)...
    Why doesn't my simultaneous restriction on keyfigures (calmonth with offsets AND calyear) work?
    Why, if I have a filter on calyear : 2007, I have columns corresponding to 2006?
    Thanks a lot for your help!
    Andrea

    Thanks for your answer. In fact, my problem is not just having the comlums for 2006 but the fact that <u>they're not blank</u>... I've got values on it and that makes my results wrong (For example, I created a column using a SUMGT of another column/keyfigure, and it seems to take into account values of the keyfigure for 2006 AND 2007 => in the the 2007 part of the query. I just want a sumgt of 2007 in 2007...).

  • Characteristic Variable with 0CALDAY

    Hi all,
    I am looking for a Text variable to display "day before" date to be derived from 0CALDAY. I have looked at the available Text variables to get the above information, but could not find a suitable one.
    Could anybody post helpful information on the above issue? Thanks in advance for all the help.
    Regards,
    Venkatram

    Hi Deepu and Sudhakar,
    Thanks for your feedback. Got few more questions on the same subject.
    1) Is there any SAP supplied "Characteristic Variable" on 0CALDAY to give me date value equal to "0CALDAY-1"?
    2) Can you elaborate further on "First of all make 0calday with offset'-1'"? Is this need to be done when I try to create a new text variable?
    Thanks for views.
    Venkatram

  • Error while creating a Characteristic Variable with Replacement Path

    Hi all,
        I am trying to create the Characteristic Variable ZVLOWDT (Low Date') with Replacement Path on characteristic ZSTARTDT (Start Date) and it gives the error 'Source to replace 'Low Date' is not defined.
       I have created a User Entry Variable VAR_DATE (Start Date) with interval like '01/01/2009 - 01/15/2009'  and  Customer Exit variable ZVCPDAY (does some calculation based on the input of VAR_DATE) on the same ZSTARTDT characteristic. I want to get the 01/01/2009 (lower range date of the selection) into this Characteristic Variable ZVLOWDT. We are in BI 7.0 and the following are it's properties:
    General Tab:
    Description: Low Date
    Technical Name: ZVLOWDT
    Type of Variable: Characteristic Value
    Processing by: Replacement Path
    Reference Characteristic: ZSTARTDT Start Date
    Details Tab:
    Variable Represents : Single value
    Variable is: Mandatory
    Variable is Ready for Input : unchecked
    Replacement Path Tab: Replacement Rule
    Replace Variable with : Variable
    Variable : VAR_DATE
    Replace with : KEY
    Why I am getting this error, PLEASE ?
    Thanks,
    Venkat.

    Hi Khaja,
       We could derive a Variable value from another Variable with out Customer Exit. There is a white paper.
    First have the User Entry Variable (ZV_X) and it accepts the date range like '01/01/2009 - 01/31/2009'. Next create the Characteristic variable (ZV_Y) of Replacement Path for which source variable will be ZV_X and we could get the 'FROM Date' (01/01/2009) from the selection (ZV_X) into it (ZV_Y).
    While creating the Characteristic variable (ZV_Y) of Replacement Path, I didn't find my newly created ZV_X variable in the list of available variables under 'Variable' header in 'Replacement Path' tab and it is causing the error  'Source to replace variable ZV_Y is not defined'. How could I create the Characteristic variable of Replacement Path, PLEASE ?
    Thanks,
    Venkat.

Maybe you are looking for

  • Bootcamp does not see replacement DVD drive in Mac Pro3,1

    Recently purchased  LG Super-Multi Drive - Mac Pro Kit 24X 5.25" Internal DVD/CD Writer from OWC and installed it in lower DVD drive according to the manuel provided including wire to Sata plug in Mac Pro3,1. A difference is that Top of 2 DVD ports h

  • HDMI pass-through no picture

    I wonder if anyone could please help. I have just bought AppleTV and am trying to use it with my old Samsung DLP (with no HDMI but DVI) and a Denon AVR 789 (witch has HDMI pass-through) . When I connect the AppleTV through the receiver (using a HDMI

  • Screensaver images (portrait) don't scroll anymore...

    Ever since the introduction of Lion my Screensaver only shows the centre of photo's shot in portrait mode. Where as in the past, these images used to scroll (or flow) either up or down using the zoom and fill screen functions in system preferences. L

  • Don't know how to start db on linux

    Hi, I need some tips on how to config tnsnames.ora, listener file. Don't know what the command to run Oracle Net Assistant to config the above files. Please help. Are there any web site teach how to start up & shutdown db on linux. I have installed o

  • Urgent : Attribute Change Run

    Hi All, I have a process chain for loading Infoobject master data. There is an Attribute Change Run which is terminating with message "No Aggregate can be adapted". Can anyone please tell me why this error has occured. This is very urgent. Thanks, Pr