How to Use Variables in ODI

Hi,
I am unable to pass the variable content to the filter i.e., the data is not getting constrained when variable is used in the filter.When the Variable is executed it is giving the correct value according to the query, but when it is passed to the filter, It is giving all the values regardless of the constraint.Can anybody suggest me the proper usage of variables.
Thanks in advance..

I believe you mean OBI instead of ODI. How are you referencing the variables in the filter? You need to reference them as @{variablename} in the filter.
Thanks,
Venkat
http://oraclebizint.wordpress.com

Similar Messages

  • How to use variables with

    I need to get the number of lines in internal table, which would
    be easy, using DESCRIBE TABLE itab LINES lines. But the problem
    is, that I get the name of this internal table in the field of
    another internal table, so I have to use the name of internal
    table as variable, but I don't know how to use variables with
    DESCRIBE TABLE (or if this is possible).

    Hi,
    REPORT ZPRUEBA782 .
    define two tables with diferent structures.
    data: begin of table1 occurs 0,
    registro type i,
    end of table1.
    data: begin of table2 occurs 0,
    registro type i,
    repid like sy-repid,
    end of table2.
    data: rows type i.
    start-of-selection.
    fill them with data
    do 1000 times.
    table1-registro = sy-tabix.
    append table1.
    enddo.
    do 1757 times.
    table2-registro = sy-tabix.
    table2-repid = sy-repid.
    append table2.
    enddo.
    call a form that receives as input the table and returns the number
    of rows as output.
    perform howmanyrows tables table2 changing rows.
    break-point. "evaluate the number of rows
    perform howmanyrows tables table1 changing rows.
    break-point. "evaluate the number of rows
    end-of-selection.
    form howmanyrows tables itable changing rows.
    rows = 0.
    loop at itable.
    add 1 to rows.
    endloop.
    endform.
    You can try it if you don't find a better solution.
    Cheers,
    Chaitanya.

  • How to use @variable(bouser) in Universe to get BOE userid in Xcelsius

    Dear Expert,
    I have request that need to display BOE userid to displayed in Dashboard using Xcelsius,
    after searching in Internet, i found that it can be done by using @variable(bouser) in an object in the Universe, and use the object in Qaaws, but i don't how to use it.
    already tried insert /* @variable('BOUSER') */ in END_SQL universe parameter, but still no luck.
    my question is :
    how to use @variable(bouser) in universe? and then my Xcelsius can display the BOE userid?
    thanks in advance for any answer.
    I Using SAP Integration KIT to create universe from Query BEX
    Luqman
    Edited by: luqman hakim on Jun 29, 2010 4:03 PM

    >
    Didier Mazoue wrote:
    > Hi,
    >
    > You are mentioning that you are using SAP Integration Kit.
    > Does it mean that the source you are targeting is SAP BW?
    >
    > If it is the case, this is unfortunately not supported.
    > SAP BW MDX does not support calculated expressions that return string or date: this is a limitation of SAP BW engine.
    > This is one of the reason why a lot of user exit are used to address these needs.
    >
    > Regards
    > Didier
    Didier Mazoue 
    yes, my Data source is SAP BW, and connected to BOE via SAP INT KIT.
    It's too bad that SAP doesn't support so simple requirement.
    you said : user exit 
    are used to address these needs.
    so there are possibility to solve my problem.
    would you give me the logic of user exit?  which part I should create the user exit
    I'm quiet familiar with user exit in BW
    thanks

  • How to use variable in source path of an image  in flex

    hello
    i just want to know that how to use variable in source path
    of an image in flex

    I am doing exactly that with data binding at the moment. This
    is my Image element
    <mx:Image width="50" minHeight="50" height="76"
    source="{Application.application.parameters.api}/rest/entity/{data.Slug}/Image"
    />
    Note the curly brackets
    HTH
    Pat

  • How to use variable in topology

    Hi every one..
    how to use variable in topology

    The normal way you use in interface or procedure. But the package you are executing should have the variable in 1st step with set or refresh mode.

  • How to use Variable in interface for Mapping in ODI 11g

    Hi,
    I want to use Variable 'Year' in interface mapping. how i can do that? I define a variable YEAR1 = '2001' and in interface i put #YEAR1 but it didn't work for me. is there any other way?
    Example.
    I m using 'Year' column in mapping and it is having different 3 constant values so i was think to define 3 variable Year1= '2001' & Year2= '2005' & Year3= '2010'.
    In interface i just want to put variable name insted giving fix value.
    regards
    Sher

    Thank u
    I m trying with all the options & when i create Variable i and set Default value to ''2001'
    '#YEAR'
    #YEAR
    '#PROJECT_NAME.YEAR'
    #PROJECT_NAM.YEAR
    #PROJECT_NAME.'YEAR'
    and setting to Stagging Area
    But still it is not working out.
    I m suing ODI11.1.1.3
    is it any issue?

  • Using variables in ODI 11.1.1.5

    Hi,
    i have created 4 variables in ODI 11g as mentioned below:
    1.Variable_name = v_date
    datatype = alphanumeric
    default value = '30-NOV-2011 11:00:00'
    2.Variable_name = v_time_offset
    datatype = alphanumeric
    default value = 125
    3.Variable_name = v_starttime
    datatype = alphanumeric
    default value = '30-NOV-2011 11:00:00'
    4.Variable_name = v_endtime
    datatype = alphanumeric
    default value = '30-NOV-2011 11:30:00'
    I have created a filter on the source table to pull the records only for the time between v_starttime and v_endtime.
    Now, in the ODI package, I have declared all the above 4 variables. Here I want to calculate the variable values v_starttime and v_endtime to pass on to the interface. I have used the below calculations to set the variables :
    v_starttime = #v_date+(#v_time_offset/1440)
    v_endtime = #v_date+((#v_time_offset+5)/1440)
    Now when I execute the package, the package(the interface) is getting failed with the error - invalid character. When I looked into the variables to see whether they are refreshed properly, they didn't. In the Operators, Under 'History' of variables section, the value of both the variables are showing as #v_date+(#v_time_offset/1440) and #v_date+((#v_time_offset+5)/1440) only. Thats means the varaibles are not evaluated properly. Kindly help me how can I fix this ? Many thanks in advance ...
    regards,
    sai

    Hi Sai,
    Please try below one
    Take 2 more ODI variable 1) v_STime and 2) v_ETime
    In v_STime write below query
    select to_date(to_char(v_date,'yyyy-mm-dd'),'yyyy-mm-dd')+(to_number(#v_time_offset)/1440) from dual;
    In v_ETime write below query
    select to_date(to_char(v_date,'yyyy-mm-dd'),'yyyy-mm-dd')+(to_number(#v_time_offset)+5/1440) from dual;
    Note: For v_date,v_starttime and v_endtime variable please don't take default value just write below query
    Query: select sysdate from dual;
    Hope this may helps you
    Regards,
    Phanikanth

  • How to use variables in data slices?

    Hello,
    in BI-IP I have tried to use variables in a data slice.
    The user should fill these variables.
    How can one use and fill these variables?
    Thank you
    Daniel

    Hello Horst,
    data slice is a very strong system lock. It is normally not a good decission to allow users to control this part becuse it sould be in administration of a responsible person.
    If you allow users in the web to open or close data slices, this is like a "open period" funtion in financials: Think about what could happen, if anyone else than the responsible person could do that....
    This is my point of view.
    I would do it in anoter way: Create an User exit and fill a variable like desribed above. You read each line and make a decission whether the user might see this line or not (e. g. period open? yes or no?). The period and the status for the period could be maintained in a table or in a characteristic. table might be easier.
    regards
    Eckhard

  • How to use variables in logical file name definition FILE

    Hi Friends,
    How can I use variables in logical file name definition (tcode FILE). The requirement is to pass value in these variables (based on selection criteria), and use it as part of file name. You quick response will be highly appreciated.
    Thanks,
    Kuldeep Joshi

    Hi,
    Thanks for your reply.
    In detail, the scenario is like I have created an Open Hub. Its working fine. Now I am planning to execute this open hub using process chain and for that I have to define the file output on application server along with logical file name (using tcode FILE). The logical file name contains two variables (defined in FILE) i.e. z_dept and z_fiscperiod.
    Filter value in DTP ( I will read these values from Ztable using routine )
    Dept = R&D
    Fisc period = 004/2009
    Variables defined in tcode FILE:
    z_dept for Dept
    z_fiscperiod for Fiscal Period
    Logical file name : <z_dept>_<z_fiscperiod>.csv
    Now the challenge is to populate filter values in these two variables so that the filter value can be used for naming the output file.
    My last option is to read/update SAP standard table used for storing variable values (i.e. PARAMVALUE)
    Please let me know if you can help me in this issue OR is there any standard method/FM to populate value in these variables
    Thanks,
    Kuldeep

  • How to use variable in automator?

    So I am trying to create this dictation command in automator where i can go like this "Launch Safari" or "Launch iTunes" so how to use the variable for text in the command?

    Hi,
    This is possible without a variable.
    Remove the "Ask for Text" and "Set value of Variable psize" actions.
    In the "Scale Images" action:
    -- Click on the "Options" button.
    -- click on "Show this action when the workflow runs" checkbox.
    This is almost similar to that "Ask for Text" action, since the "Scale Images" action will be displayed as a dialog, You can adjust the percentage in this dialog.

  • How to use variables in DVM

    I have a string variable called codeValue and I want to use it in a dvm:lookupValue. Do you know how to use a variable in a dvm function? Below is my lookup function but I got an XPath error
    dvm:lookupValue ('cityMap.dvm','Code',codeValue,'CityNames', 'CouldNotBeFound')
    I also tried the below but it failed also
    dvm:lookupValue ('cityMap.dvm','Code',bpws:getVariableData('codeValue'),'CityNames', 'CouldNotBeFound')
    Thanks

    Task Completed

  • Difference Between 2 dates using variables in ODI

    Hi,
    I have 3 variables in ODI,
    Start Date, End Date and Duration.
    Start Date - Alphanumeric -  select TO_CHAR(SYSDATE,'DD-MM-YYYY HH24:MI:SS') FROM DUAL
    End Date - Alphanumeriic - select TO_CHAR(SYSDATE,'DD-MM-YYYY HH24:MI:SS') FROM DUAL
    Duration - Alphanumeric - select to_date(#Start_date, 'DD-MM-YYYY HH24:MI:SS') - to_date(#END_date, 'DD-MM-YYYY HH24:MI:SS') FROM DUAL
    It says invalid character.
    Please let me know how can I find the difference of the start date and end date as duration

    Have you tried
    select to_date('#Start_date', 'DD-MM-YYYY HH24:MI:SS') - to_date('#END_date', 'DD-MM-YYYY HH24:MI:SS') FROM DUAL
    Cheers
    John

  • How to use variable in rule script in HFM

    I'm now writing VB script for HFM rule, and have something to ask about the use of variables in rule.
    The script below generates the following error.
    -Error description-
    Line: 4, Error: Invalid Expression
    HS.Exp "S#Actual.A#77300.I#[ICP None] = cur"
    An error has occurred in Hyperion Financial Management.
    -Rule script-
    Sub Allocate()
    Dim cur
    cur = 500
    HS.Exp "S#Actual.A#77300.I#[ICP None] = cur"
    End Sub
    On the other hand, the script below works properly.
    -Rule script-
    Sub Allocate()
    HS.Exp "S#Actual.A#77300.I#[ICP None] = 500"
    End Sub
    Probably I'm not using variables in proper way, but have no idea how to correct it.
    Does anyone have any idea?
    Thanks in advance.

    Hello,
    try this in the sub calculate:
    HS.Exp "S#Actual.A#77300.I#[ICP None]=" & cur
    For the sub allocate, I suppose that you do not have the issue because the allocate is not launch during the consolidation process. Allocate is launched separatly by a right click, and can only be done when calculation status = "OK", which means that all calculation have been done (that could not be the case if you have an error like this in sub calculate).
    Hope it helps

  • How to use variable in DVM

    I have a string variable called codeValue and I want to use it in a dvm:lookupValue. Do you know how to use a variable in a dvm function? Below is my lookup function but I got an XPath error
    dvm:lookupValue ('cityMap.dvm','Code',codeValue,'CityNames', 'CouldNotBeFound')
    I also tried the below but it failed also
    dvm:lookupValue ('cityMap.dvm','Code',bpws:getVariableData('codeValue'),'CityNames', 'CouldNotBeFound')
    Thanks

    Hello,
    I am also receiving an error. Is there any other configuration that is necessary besides creating the dvm file and using the xpath functions. Is there something we need to do with the Mediator. I am using the dvm:lookup in my XSL transformation.
    com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.oracle.com/bpel/extension}subLanguageExecutionFault}
    parts: {{summary=&lt;summary&gt;XPath expression failed to execute.
    An error occurs while processing the XPath expression; the expression is ora:processXSLT('xsl/Transformation_XMLRequest.xsl',bpws:getVariableData('inputVariable','payload')).
    The XPath expression failed to execute; the reason was: internal xpath error.
    Check the detailed root cause described in the exception message text and verify that the XPath query is correct.
    &lt;/summary&gt;,code=&lt;code&gt;XPathExecutionError&lt;/code&gt;}
    cause: {XPath expression failed to execute.
    An error occurs while processing the XPath expression; the expression is ora:processXSLT('xsl/Transformation_XMLRequest_.xsl',bpws:getVariableData('inputVariable','payload')).
    The XPath expression failed to execute; the reason was: internal xpath error.
    Check the detailed root cause described in the exception message text and verify that the XPath query is correct.
    If I remove the dvm:lookupValue functions from the XSL, it works
    So I created a simple BPEL process, created a Test.dvm just using the default values and did a transformation
    <xsl:template match="/">
    <client:processResponse>
    <client:result>
    <xsl:value-of select="dvm:lookupValue('Test.dvm','domain1','value1','domain2','Not Found')"/>
    </client:result>
    </client:processResponse>
    </xsl:template>
    I get the same error message when I run the process. When I try to test the transformation I get the error:
    Failed to transform the source XML. Start of root element expected.
    Has anyone used DVM's in 11g? Any help would be greatly appreciated.
    Thanks,

  • How to use BIA with ODI?

    Hello all,
    How can you use BIA on ODI? Or is this the next version or something?
    KR,
    Remco

    http://download.oracle.com/docs/cd/E14224_01/welcome.html
    7.9.5.2 was released as an ODI-BI-Apps release. 7.9.6 is Informatica. As you can see on that page above, there's only Oracle EBS Apps supported in the ODI release:
    * Oracle Financial Analytics
    * Oracle Human Resources Analytics
    * Oracle Supply Chain and Order Management Analytics
    * Oracle Procurement and Spend Analytics
    Cheers,
    Christian

Maybe you are looking for

  • SQL Expression in decode function or case statement?

    Can I put SQL expressions in decode function or case statement? For example, select le.profile, decode( select count(1) from profile_data where NAME= 'XXXX_AFTER' and object_id = le.profile, 0, 'N', 'Y') from element le; or select le.profile, case WH

  • Capital One 5 day hold on payments.

    I was using my capital one card like normal running somewhat of high balances and then paying them right off. I always pay on time and I always pay before the statement closing date. However, paying the card off in full before the statement closing d

  • Dell 1320C Printer

    I have downloaded install software for Dell 1320C printer. It is not communicating with my mini mac. I am using an IP Address of 10.0.0.1 - this might be the problem. Everything else seems fine. Any suggestions? Aussie Tony

  • SAP Pricing

    Dear All, There is a pricing condition in pricing. we maintain vaildty for it. Lets say if the validity expires or if the document is complete it should not reflect. Example: Rebate arrangment has been settled and then also it is appearing in PO.

  • Servlet with dopost and main() methods

    I have pre-existing servlet code for maintenance purposes. It received a request by POST action from the client. This class also has main() method where class is instasiated and processed. Can anyone help me understand reason for having dopost and ma