Odi_creating variable- values through a query

hi,
i am using odi 11g.
I create a variable pkg_variable.
And going to the refreshing tab ,i gave the logical schema.
i give a query "select #pkg_variable from dual".there is an error saying" invalid character"
what am i supposed to do.
What would be the logical schema?

Hi,
Use database logical schema, also ensure that there are no characters in the end like ';' which is incorrect in ODI
for example:
under oracle logical schema
select to_char(sysdate,'ddmmyyyy')|| '_' || to_char(sysdate,'hhmi') from dual

Similar Messages

  • Passing multiple variable values through Start Pointer

    Hi,
    I have a company code variable in my BI query, at initial run of the VC model i want to exclude multiple  company codes through start pointer, how can i write exclude condition for multiple values through company code variable field value input in start pointer, I don't want to change my BI query.
    please help me on this
    Thanks in advance

    Hi
    This document will be usefull for you:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/07134c67-0b01-0010-0493-b89287cf330f
    You should build string with following syntax and pass it to the start point:
    :[Value(End - optional)]:Operator:I (Includes) or E (Excludes)
    Available Operators:
    ·         EQ u2013 Equal to
    ·         GE u2013 Greater than or equal to
    ·         GT u2013 Greater than
    ·         LE u2013 Less than or equal to
    ·         LT u2013 Less than
    ·         BT u2013 Between
    For more help:
    http://help.sap.com/saphelp_nw70/helpdata/EN/44/4fc09c78ef4e35e10000000a1553f6/frameset.htm
    Good luck,
    Ola

  • How can i transfer the system variable value through DTW in SBO

    Hi,
    I want to transfer the system variable("Excisable" in the Item master data in the SBO 'India' database) value through the template by the DTW.
    But i don't have any template consisting of this system variable.
    So please suggest me that how can i transfer the value of this system variable(Excisable) and by which template.Please tell me any constraint if it is on the value of this variable.
    I will be very thankful to you.
    Thanks & Regard,
    Sandeep
    Message was edited by:
            Marc Riar

    Sandeep,
    This question has come up several times on this Forum.
    Please read this read.
    Importing excisable item
    Suda

  • Set variable value from a query - is it possible?

    Hi all,
    I need to use a 'precalculated' value in my report measures' calculations.
    Is it possible to set a variable value as a result of a query?
    Thanks in advance,
    Alex

    Hi,
    In my report, I need to calculate one of the columns as a [certain measure] / [result of another query]
    I didn't succeed to include the [result of another query] as a column in my report's request, but it would be very easy to calculate this [result of another query] separately.
    The [result of another query] value is same for all the rows of my report.
    What I'm trying to do is to run a query before my report (e.q. in the Prefix section), set a variable = [result of another query] and then use this variable in the column calculation of the report.
    Is this possible?
    Thanks,
    Alex

  • Variable Values through VBA

    What is object name in VBA to get query variable values? Is it possible at all?

    Hi,
       I am, not sure why you have the function run there but here is the correct syntax and some help comments.
    Function SAPBEXshowTextElements(Optional selectGroup As String, Optional atCell As Range) As Integer
    u2022     Use this to automate documentation of query in the workbook.
    u2022     Return value of zero indicates that no errors were encountered.  Otherwise, function returns number of errors encountered.
    u2022     If atCell is not specified, the active cell is used to determine which query to return Text Elements for.

  • Passing a variable value from one query to another within a web template

    Hi All,
    I have a web template with two queries.  Both queries have the same select option variable called ZSELCUST on the characteristic ZCUSTOMER but because they are different info providors (both infocubes) the customer has to be entered once for each query, even with the 'Display same variable only once' flag checked.
    I want the user to select the customer once and then that value be passed to the other query within the resulting web template output.
    Am I right in that the same variable is used more than oncee because of the different info providors?
    I'm struggling, can anyone help out there....???
    Best Regards,
    Stuart Humphrey

    Hi
    A way of doing this is by "linking" the queries: in transaction RSBBS you define the sender and receiver queries. In query navigation you can jump to the dependent query (blue arrow icon in the BEx tool bar). This transfers the navigational state to the called query: filters over characteristics and variable values.
    Hope this help
    German

  • How to transfer variable value from one query to another query?

    I create two queries which contain the same variable "Year" and "Month".
    In the wad,Query1 is used to be a table and Query2 is used to show the chart in the condition with the same variable value of Query1
    So I want to transfer the variable  value from query1 to query2.
    Can anyone help me ?

    Let me explain the issue in detail.
    In Query Designer, both the year and  month variables are defined by user exit function to read current year and month and can be modified  during the query runtime.
    In WAD, Query1 is  used  to be a table with a table interface to hyperlink a chart which is defined by Query2 with the same variable value of Query1.
    During the runtime of template, if I change the variable value of Query1 , I want the variable of Query2 to be changed automatically with the same new value.
    So in the table interface of Query1 , I write the ABAP code in "SE24" and related source code to the variable is following:
    concatenate
    'function fire_urlJGSP_Col(filter) {'
    Cl_rsr_www_renderer=>c_lf
    'chart_url="' url '" + "&CMD=LDOC'
    '&TEMPLATE_ID=GCCHART_9' "WEB ID of the work book
    '&PAGEID=Graphics'       "Name of the view
    '&CMD=PROCESS_VARIABLES&SUBCMD=VAR_SUBMIT&VAR_NAME=Z2MYEAR&VAR_VALUE_EXT=" + filter'
    Cl_rsr_www_renderer=>c_lf
    'openWindow(chart_url,"chart_window","dependent=yes","600",'
    '"450","true")'
    Cl_rsr_www_renderer=>c_lf
    into l_coding.
    In this way , I can only transfer the year variable value from Query1 to Query2 and not two variables .
    So , how  shall I do to transer the two variable value in the same?

  • Change a SWF's variable value through Java

    Hi, all!
    Does anybody know how to change the value of some SWF (Flash file) variable in Java?
    What I need is to read a SWF that I made, then change a variable value from Java, before I output this SWF.
    I believe this is possible through bytes handling, but I don't know how... Has anybody already done it?
    Thank you in advance!
    CaioToOn!

    See answer about [Transform SWF|http://www.flagstonesoftware.com/transform/index.html] at [http://forums.sun.com/thread.jspa?threadID=5325296|http://forums.sun.com/thread.jspa?threadID=5325296].

  • How to get constant Value through RSQL Query

    Is it possible to get constant value in rsql query?
    Eg: select bBU, 0 Dummy column, part_number from test_rs

    No. This is not available in IOP. What do you want to achieve using this?

  • Different variable values for same query inserted 6 times in One workbook.

    Hi,
    We have one workbook with the same query inserted on 6 different tabs (sheets in excel), a variable on Business Unit that is different for each tab.
    How can we control the variable input in BW2004s such that the different BU values are processed for each tab.
    At present the BU value input in the "variable pop-up screen" over rides all the fixed variables on the different tabs.
    Generous points will be awarded for useful solution.
    Thanks,
    Jasmine

    Hi,
    I am  trying to use filters for executing 2 queries in a Web App. I have 2 dataproviders (one for each query), and I am trying to use filters for say Version.
    The URL is
    /sap/bw/BEx?cmd=ldoc&TEMPLATE_ID=ZTW_XXX&DATA_PROVIDER_1= DP1&FILTER_IOBJNM_1=0VERSION&FILTER_VALUE_1=F01&DATA_PROVIDER_2= DP2&FILTER_IOBJNM_2=0VERSION&FILTER_VALUE_2=F02.
    This doesnot work. Both queries get filtered on both 'F01' and 'F02'.
    I am trying to filter DP1 by F01 and DP2 by F02.
    Any help is appreciated.
    Thanks,
    NS

  • How to replace variable value of a sql query dynamically

    Hi all,
    Trying to execute sql queries present in Oracle table and the query it self contains the ODI variable #EMP_NO.
    At the run time we thought of passing the variable values.
    table contains query like
    update table <table name> set <column name>= 5000 where emp_no = #EMP_NO
    We need to execute the sql query using a ODI procedure, to pick the sql query from table we use another variable #varSQLID and in the command on source tab wrote like
    select sql_query varSQL from emp_sql where query_id=#varSQLID
    Command on target
    #varSQL
    when ever I tried to execute I am getting error please let me know what changes are required .
    The question is whether it's possible to replace the variable value present in the above sql ?
    regards,
    Palash Chatterjee

    Thanks Siddhartha,
    Actually we have been doing the same, means half of the query has been kept in the table and rest is being added in the " command on source " tab of the procedure .
    But the problem is , the "where" condition is not same for all SQL queries,
    to provide 27 different sqls queries for 27 packages we have to create 27 procedures (as "where" condition may take other column values along with "EMPNO" for the JOIN condition ) .
    Any suggestion of keeing SQL along with the variable and storing it in the table may resolve our problem and work of 27 procedures can be performed by a single procedure .
    regards,
    Palash Chatterjee

  • Query property "Save and reuse variable value" doesn't work in BW EHP1

    We have a workbook which contain 4 queries, every different worksheet is a different query.
    All the queries are on the Same InfoCube and all the queries use the same variables.
    In the properties of the query n.2 we set the parameter "Save and reuse variable values" then we refresh the 1st query and all work fine (the system asks the variable values) but when we refresh the 2nd query the system doesn't use the same variable values that we have inserted for the query n.1
    We don't have the same problem in 7.0.
    Any help is appreciated.
    Luca

    Hi,
    I suppose, you need to set the 'Save and reuse variable values' for each query individually in the workbook. I am not sure however there is a option where you can specify to apply the settings of one query to all queries in the work book.
    Please check and hope it helps.
    Regards,
    Adarsh Mhatre

  • Acrobat pro Extended | Passing variable value with Querystring

    Hi,
    We are facing issue with opening a web link with passing a variable value as query string parameter. We have added a form button on the pdf page, on click of it we have opened a web page and we want to pass a variable value in the query string. We can not give the hard code value in querystring, as the value keeps on changing.
    Please refer to the images below.
    here the data will be my variable name, which contains some value. When i execute it, it passes data as a string, i want to pass its value in the query string parameter. How i can do this?
    I had found one more way, is to call a function on the form button click, and in that pass the query string parameter as a variable, it works. But the problem in this case i am faceing is, in the app.launchURL command i have to provide a http path, means something like http://www.google.com, then only it works. I have that page on my local (no server), so i want to add the path as onlu page.html
    //Reference code, this fun will be called on a button click
    function LaunchPage()
        app.launchURL("http://www.aptara.com/page.html?value="+data+""); //this works
        app.launchURL("page.html?value="+data+""); //this dosent works
    Please do let me know, how i should proceed. To repeat, i want to invoke a page, which is on my local system with a querystring, in which i sud pass a variable value.
    Thanks,
    Ajit danve
    Sr. Developer
    Aptara, Pune.

    re: George Johnson
    Thank you for the response. This process that we are looking to do is necessary. We have 400+ OLD PDF forms that currently are printed by our print shop and then manually filled out and scanned into our system. The current process requires a clinician to log into our scanning system, identify a patient chart, and then identify the type of report they are scanning in. This process is time consuming with possibility of errors (wrong chart selected, wrong form, etc.). Plus, we have to stock up to 400 forms at each location.
    We don’t have the funds to convert 400+ complex forms into electronic submissions where the form fields are discrete and file accordingly. So, what we have come up with to save costs of a new system and reduce potential errors is to add a barcode to each existing form.
    Basically, each form will get a barcode and a javascript function in the onload event to process and parse passed in link parameters.
    So when a clinician clicks on a form link in our EMR system the form will load passing in the patient acct. number and form name into the link parameters (all on our local intranet) so it will get embedded into the barcode on the form. They will then print the form fill out the data (or have the patient fill it out) and then drop it in the scanner. Our scanning system will automatically see the barcode and file the form under the correct patient and form folder based on the barcode info. (A scanned image of the form will save to the patient profile).
    Ultimately we would like to convert all of these forms to electronic signature/submission but we do not have the funds or the time to do this.

  • Trace variable values in Catalog

    I'd like to trace variable values through package execution. Is there a way to write variable values to catalog messages so that they are viewable in the dashboard? 

    Make sure to select the right
    logging level when you execute the package in SSIS 2012. Here is an other Script Task Example: 
    // Fire event
    bool fireAgain = true;
    Dts.Events.FireInformation(-1, "Value of FilePath:", Dts.Variables["User::FilePath"].Value.ToString(), string.Empty, -1, ref fireAgain);
    Please mark the post as answered if it answers your question | My SSIS Blog:
    http://microsoft-ssis.blogspot.com |
    Twitter

  • Variable input values in the query are displayed wrong

    Hi experts,
    I executed a report and in the variable input screen it asks for a key date and company code.
    We entered key date and company code and executed the report.
    We want to take a print out of the output. But the variables which we entered in the variable screens are
    dispalying wrong. i.e if we have entered company code as gsml and key date as 01.01.2008.
    In the report output I am getting as:
    Company code: gsml
    Keydate: #..27-11-4745
    But keydate should be displayed as 01.01.2008
    How to solve this ?
    Regards,
    Nishuv.

    Nishuv,
    Please follow below steps:
    1. Open query through Bex - Query Designer
    2. Beneath the Rows Area( where you actually  drag in charactertistics), you'll be finding two tabs Filter and Rows/Columns
    3. Click on Filter Tab
    4.You'll be navigated to a window, there you can trace two Workareas
            a. Characteristic Restrictions: Where drag in the relevant Prompts/Input Variables
            b. Default Vaules
    5.First, Drag the required promts/Input Variables in Characteristics Restrictions.
    6.Click on the varible which was dragged in Characteristic Restriction area and drop it into default values area.
    7.Now you'll have visibility of variable in two regions, Characteristics and Default Values.
    8. Save and Execute the Query
    Regards,
    Yaseen

Maybe you are looking for

  • Radeon 9000 agp on my G4

    so, finally my Ati Radeon 9000 64mb arrived from USA (very quickly... only 10 days!!). it has both adc and dvi connector; of course I'll use DVI port. so the question is: can I use a DVI to VGA adapter? (my lcd has both of them but DVI is used by PC)

  • Purchase Order Confirmation creation

    Hi all, I am trying to create a confirmation for a Purchase Order in SRM Version 5,ECC 5.0(ECS Scenario). In my program, I first get all the Purchase Orders using the function module, BBP_PD_PO_GETDETAIL. Then I want to confirm this Purchase Order in

  • NEED YOUR HELP TO WRITE COMPLEX QUERIES FOR MULTIPLE RECHARGE

    Dear friend, Kindly help me out to prepare query for below scenario in telecom environment .. sometimes retailer do multiple recharge to same subscriber for same price points(MRP) in a day i.e Suppose in day ,a reatailer:A did recharge mrp 50 to Cust

  • Workflow Items list

    Hi, How to find out exactly how many items are there in the workflow?

  • Is authurizing a computer the same as icloud?

    i got music from another laptop, and i wanted to transfer the music on to my laptop. but itunes asked i could authorize the other laptop. What does this mean? and if i do will all there songs automactically download on to my laptop?