How to assign a Substitution variable dynamically?

Hi All,
I was trying to assign a substitution variable which should get data from the time period and should directly load into the substitution variable automatically.
The process should be automated. so as to refrsh the substitution variable daily.
Any comments are highly appreciated
With Regrads
Prads

Sorry for the double-post, I didn't quite get that you wanted to read the Time Period dimension.
Is that what you are trying to do? Get a list of the periods (usually these are pretty well known) and then find the latest one for a given member combination that has data and then set a substitution variable off of that?
You can run reports (or DATAEXPORT calc command) to get data from MaxL.
Or are you trying to do something else?
Regards,
Cameron Lackpour

Similar Messages

  • How can i use substitution variable

    Hai All
    This is my sql statement
    SELECT (TO_DATE(TO_CHAR(Intime,'DD-MON-YYYY')||' '||
    TO_CHAR(0815,'0000'),'DD-MON-YYYY HH24:MI')-intime) * 24*60
    from dail_att where to_char(intime,'hh24mi') between 0700 and 0815 ;
    Here my table name called Dailyattendance
    Intime field is declared as Date Type
    So now i have hardcoded 0815 and now my intime is subtracted from this time so i can calculate the employee
    coming late so how can i use substitution variable here to give the value at run time
    Ie i need to give 0815 instead or any other time at runtime
    Thanks In advance
    Srikkanth.M

    Where exactly are you planing to use it? Is sqlplus or at any other front end?
    One way is to use below given SQL
    SELECT   (  TO_DATE (   TO_CHAR (intime, 'DD-MON-YYYY')
                         || ' '
                         || TO_CHAR (:TIME_VAR, '0000'),
                         'DD-MON-YYYY HH24:MI'
              - intime
           * 24
           * 60
      FROM dail_att
    WHERE TO_CHAR (intime, 'hh24mi') BETWEEN 0700 AND 0815;*009*
    Edited by: 009 on Apr 6, 2010 2:15 AM

  • How to use a substitution variable in a load rule?

    I need to use a substitution variable in a load rule in a column, as I will receive a parameter to fix the Month and Year values within the data loading, could somebody tell me if this is possible. I put an expresion "&Yearproc" in the column value but it is not working.

    If you're a member of ODTUG (or even if not, you can sign up for an associate membership for free) you can download Glenn's presentation from 2009 Kaliedoscope "Little Used Features of Essbase (Like Data Mining and Triggers)" -- there is a section in that presentation on substitution variables -- he does a really good job in showing how this works.
    Go to: www.odtug.com, then Tech Resources, then Essbase/Hyperion, and search for Schwartzberg. Currently it's the ninth presentation on the list -- I think this changes based on popularity of downloads.
    Regards,
    Cameron Lackpour

  • How to assign a JSP variabl's value to a JavaScript variable?

    Hello,
    I want to assign a JSP variable's value to JAVASCRIPT variable.
    or how to assign JavaScript variable's value to JSP varialbe
    HOw do i do it ?
    can anyone please help?
    Regards and thanks for your time.
    Ashvini

    I want to assign a JSP variable's value to
    JAVASCRIPT variable.
    var jsVariable = <%=someVariable%>;
    or how to assign JavaScript variable's value to JSP
    varialbeYou can't. JSP is server-side and JavaScript is client-side. The JSP variables are never available on the client side for any sort of assignment.

  • How to get essbase substitution variable in ODI

    Hi All,
    I have a problem that I need to get the substitution variable from Essbase /EAS to work on some SQL statement in ODI.
    How can I do in ODI ???
    Thanks for all ..
    Thomas

    Hi,
    If you read my blog post :- http://john-goodwin.blogspot.com/2009/11/odi-series-planning-11113-enhancements.html
    In the post there is a section on retrieving essbase substitution variables and using them in ODI.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to assign transport request for Dynamic selection in SE36

    Hi Friends,
    Please guide me how to transport or assign a request for the changes made in BRF selecion view.
    I have assigned and added BKPF-XREF1_HD field for FB03 transaction. Its working fine as per user requirement.
    I am facing probelm to assing a transport request for that. I didn't find any transport menu in se36.
    So please provide me how to assign a TR which need to import into Production client.
    If I have to assign or create a program (standard), then please provide me the program name.
    Please reply.
    Thanks & Regards
    Sankar.
    Edited by: sankar babu on Jul 29, 2010 12:27 PM

    Moderator message - Cross post locked
    Total Questions:  283 (131 unresolved)
    Please also close your old posts and assign po1nts to helpful answers.
    Rob
    Edited by: Rob Burbank on Jul 29, 2010 9:50 AM

  • How to assign java script variable to a hidden parameter in JSP?

    Hi All,
    I want to assign the variable in the Jscript to a hidden parameter in JSP page.
    <select name="sortingOption" class="sortingOptions" onchange="changeSortOption(this)">
    <c:forEach var="sortingOption" items="${sortingOptionList}">
    <c:set var="sortingOptionValue" value="${sortingOption}" target="java.lang.String"/>
    <c:choose>
    <c:when test="${sortingOptionValue == sortingOptionValueFromRequest}">
    <option value="${sortingOptionValue}" selected="selected">${sortingOptionValue}</option>
    <input type="hidden" name="srchType" value="none"/>
    </c:when>
    <c:otherwise>
    <option value="${sortingOptionValue}">${sortingOptionValue}</option>
    </c:otherwise>
    </c:choose>
    </c:forEach>
    </select>
    In changeSortOption script,they capture the value selected by the user and then they submit the form.I want to assign that value to a hidden parameter in JSP,can someone tell me how to do that?
    I dont have the Jscript code with me right now to post here.

    To the point: just by accessing/manipulating the HTML DOM using JS. Learn JS and HTML DOM. There are basic tutorials at w3schools.com. Besides, your code syntax is still invalid. The input hidden elemend doesn't belong in a select element. Learn HTML. There's a basic tutorial at w3schools.com as well.
    For future HTML/JS problems please consult the appropriate forums. This has not much to do with JSP. There are ones at webdeveloper.com.

  • How to make cursor record/variable dynamic or substitute variable

    Hi
    I have couple of cursor records define in my PL/SQL procedures, they are all same structure type.
    For example
    C_rec_1 c_currsor%ROWTYPE;
    C_rec_2 c_currsor%ROWTYPE;
    C_rec_3 c_currsor%ROWTYPE;
    C_rec_4 c_currsor%ROWTYPE;
    C_rec_5 c_currsor%ROWTYPE;
    C_comm_rec c_currsor%ROWTYPE;
    BEGIN
    fetch .... into C_rec_1;
    fetch .... into C_rec_2;
    fetch .... into C_rec_3;
    fetch .... into C_rec_4;
    fetch .... into C_rec_5;
    IF c_rec1.dept = 100 then
    C_comm_rec := c_rec1;
    END IF;
    IF c_rec2.dept = 100 then
    C_comm_rec := c_rec2;
    END IF;
    IF c_rec3.dept = 100 then
    C_comm_rec := c_rec3;
    END IF;
    IF c_rec4.dept = 100 then
    C_comm_rec := c_rec4;
    END IF;
    IF c_rec5.dept = 100 then
    C_comm_rec := c_rec5;
    END IF;
    Here rather than coding 5 IF statement, Can I make c_rec_? dynamic?
    Something like but this does not work :)
    For i IN 1..5 loop
    If c_rec_&l = 100 then
    C_comm_rec := c_rec5;
    End if
    End loop;
    END;

    Hi Jaun,
    You have to go CMOD  Transaction .
    Create a project  and then write code in the exit EXIT_SAPLRRS0_001.
    there is include
    INCLUDE ZXRSRU01  double click on it and write code like below.
    Coding for Variable
        WHEN 'ZTES'.     YOUR variable name
    if     i_step = 1
          l_s_range-LOW = sy-datum +0(6).
          l_s_range-sign = 'I'.
          l_s_range-opt = 'EQ'.
          APPEND l_s_range TO e_t_range.
    Hope this will help you.
    Regards
    vikas saini

  • How to assign the class value dynamically  in jsp:useBean ?its urgent

    Hi
    I want to set the class value of <jsp:useBean> dynamically
    when i am trying to this way
    <jsp:useBean id="<%=id %>" class="<%=beanclass %>" scope="request">
    <jsp:setProperty name="<%=id %>" property="*"/>
    </jsp:useBean>
    where beanclass is .class file that is to be used by the usebean tag
    i am getting following error
    The value for the useBean class attribute <%=beanclass %> is invalid.
    please help as soon as possible
    regards,
    Rameshwari

    You can not do that.The jsp:useBean and jsp:setProperty are action tags and not custom tags. Action tags get translated into Java code in the translation unit and are then compiled. Custom tag are backed by classes and the tag get translated into a method call of the class.

  • How to manage the substitution variable / parameter in crystal

    I have developed a Crystal report in BO XI. I have 2 parameters. These are date parameters.
    I want to get parameters from the users.
    The records will be selected for the date in the parameters field.
    But if the date in the parameters are NULL then the record selection will be for the previous month.
    Has anyone encountered this situation ??
    Thanks in advance ..

    From Crystal reports, I want to pass NULL value in the parameter as a DEFAULT.
    I know its not possible, so I passed following date 01/01/1900 in both Date parameters as default.
    Then in my select query I said -
    select * from purchase
    where
         paymentmethod ='Credit Card'
         and
              purchasedatetime >=
              Case {?PurchaseDateFrom}
              when TO_DATE('01/01/1900','dd/mm/yyyy') then SYSDATE-30
              Else {?PurchaseDateFrom}
              End
              and
              purchasedatetime <=
              Case {?PurchaseDateTo}
              when TO_DATE('01/01/1900','dd/mm/yyyy') then  SYSDATE+1
              Else {?PurchaseDateTo}
              End
    The above query works fine.
    But I want to try something like this - (pseudocode)
    first I will check the parameter value :
    Declare - myFromDate , myFromTo as variable
    If {?PurchaseDateFrom} is null then myFromDate = SYSDATE-30
    else myFromDate = {?PurchaseDateFrom}
    if {?PurchaseDateTo} is null then myFromTo = SYSDATE+1
    else myFromTo = {?PurchaseDateTo}
    select * from purchase
    where
         paymentmethod ='Credit Card'
         and
         purchasedatetime between myFromDate and myFromTo
    Thanks,

  • How to assign SPACE to variable in unicode enabled prog

    DATA: begin of char3,
             HEX3(2) TYPE X,
          end of char3.
    if i am trying to assign SPACE like this
    char3       =  SPACE. 
    it give an error that this is incompatible during unicode.

    DATA: begin of char3,
    HEX3(2) TYPE X,
    end of char3.
          char3 = SPACE.
    tyr this, it works
          char3-hex = SPACE .

  • How to use substitution variable in case of dim build

    Hi all,
    Lets say I have 3 sub vars - Prevmonth, prevmonth-1, prevmonth-2. These will change every quarter.
    I want to build a cube which will have which will have only the above 3 months in the Fiscal dimension. This will be used once at the end of quarter.
    How do I refer substitution variables in case of dim build rule files? I want automate the process. We have SQL dim build for other dims, only this dim can be built from flat file also.
    Or is there any other way to achieve this apart from using sub vars? I can try store the 3 variables in a table and then use them to build the cube, but want to see if we can avoid creating one more interface.
    Thanks.

    Actually using the values of subvars to build a dimension (which I believe is what you want) is a fun problem.  Here's an (Oracle) example that would do that, without requiring any additional table or flat file:
        SELECT 'FiscalPeriod' AS Parent,
               CASE Level
                  WHEN 1 THEN '&CurrMonth'
                  WHEN 2 THEN '&PrevMonth'
                  WHEN 3 THEN '&PrevMonthMinusOne'
               END AS Child
          FROM Dual
    CONNECT BY Level <= 3
    Here's how it looks in the load rule SQL dialog, and the data prep editor:
    It's fun because I've never thought about it before, but I don't actually recommend this - if you have other ETL going on in SQL I'd generate the values in a table / view there, and have a script that both updates the subvars and builds the dimension direct from that.

  • How to assign sessionscope variable to the bind variable in Query of VO

    Hi all,
    I want to know how to assign a sessionscope variable in the binvariable of Query in VO
    My sessionscope variable holds the value of currently selected column in the table. eg:empname of the currently selected column which is in empdetails table...
    I want display the schemes available for the selected employee in the next table..The schemes are in another table named empschemes which has the empname and empschemes as column
    I have created a vo for empschemes table with bind variable 'scheme_bind'..I need to set the sessionscope variable '#{sessionScope.empname}" to the bind variable.
    Its urgent,..Pls do reply asap
    Thanks in advance
    Nasrin

    HI,
    You can use
    adf.context.sessionScope.get("YourSessionVariable")this code for assigning VO's bind variable value.write this code where you create bind variable and do not forget click on expression radio button.
    Rafat

  • Setting Essbase substitution variable thru ODI

    Hello Friends,
    We have some procedures in ODI that call maxl scripts to unlock app, clear data and agg. But how do we set Substitution variable in Essbase?
    Any feedbacks are appreciate...
    Thank You.

    Thanks John.
    - We created a maxl script with the statement below
    alter system set variable 'ActMon' 'Feb';
    - Created a procedure in ODI to call the maxl
    the procedure is working...but we still have to manually edit the maxl script every month to change the current month value.
    How about this?
    We have a oracle table in ODI schema which has month column populated. can we use that month column data and some how set the Essbase Sub var?

  • Set substitution variable

    Can anyone tell me how to set a substitution variable on a data load, if possible?
    Or any other way to automatically update a substitution variable

    you can do it through a maxl script.
    the maxl script should flow as below...
    load data using import maxl command
    based on the return code you can set the value of subst variable using the following script.
    if it is a variable on db:
    alter application <appname>.<dbbname> set variable <subst variable name> <variable value>;
    if it is a server level subst variable
    alter system set variable <subst variable name> <variable value>;
    - Krish

Maybe you are looking for

  • How to increase no of boolean checklist at run time???

    Hello All, I am reading certain names from excel file and storing in an array. And if my array contains 10 strings(Names) then it should create ten Boolean ticks and that name should be given to them. I have done programming but every time it creates

  • Any ways to speed up app start?

    My app takes on average 4-5 seconds to load on startup. It seems like most of that time is spent loading images as I have no other code that requires heavy processing at startup. I have 15 images that makes up the whole screen of the app (to be used

  • How to Transfer SAP data to perticular Worksheet in Excel file

    Hi, I have a requirenment to Transfer SAP data to Perticular WorkSheet in an Existing Excel file, i tries using EXCEL_OLE_STANDARD_DAT but this FM deletes all Existing worksheets in the Excel file and creates only one new worksheet and adds data to i

  • Backup method in OLTP environment

    Which one of backup strategy would be best for 24/7 OLTP 9i/10g databases with no standby servers on unix clustered machines? Suggestions/comments?

  • Indesign Color Settings Reverting to default

    Hi, in search of some help in regards to Indesign Color settings. We are running CS3 and have a standard 'ISO Coated v2 ECI' color profile that we use in a color settings setting within our adobe CS3 suite. We use Bridge to synchonize our application