Use bindings for a variable in sql

Hello,
I have the following query:
select request_number, ktna_notes.request_notes(20, &request_number) from request_table where request_number = &request_number
the &request_number is a variable within the database.
I need to implement this in my ADF project. Currently I have the table displaying the table information but not the notes portion because I'm not sure how to bind the variable.
I'm sure there must be a simple solution to this but I haven't been able to find anything.
Thank you.

Hi,
In query use select request_number, ktna_notes.request_notes(20, :request_number) from request_table where request_number = :request_number and create bind variable request_number in View Object query part.
Then you can drag&drop ExecuteWithParams as parameter form from data control palette
regards,
Branislav

Similar Messages

  • Where used listing for Query Variables

    Can someone tell me how to get this list from the metadata repository or from the transport connector?
    I have read this thread "where used" list for BEx variables but this isn't working for us.
    Is there some config that is required which we have missing?
    We are running BI7 SP19 if this helps.
    Thanks
    Craig

    Arun,
    Yeah I figured as much, but this is why I am thinking we have something missing, config or otherwise.
    Cause all I get when I do this is a new window with just the Variable details and nothing else, no where used list at all i.e.
    Page Creation Date: 17.03.2009 15:12:03
    Technical name: V_FSTMONTH
    Object version: Active version
    System: BWDCLNT200
    Description (Short): 1st of Month to Toda
    Description (Long): 1st of Month to Today
    Last Changed On 17.03.2009 13:25:39
    Last Changed by ARMSTEC
    Is there something I need to get our Basis Team to do ?
    Thanks
    Craig

  • Is there a "where used" functionality for SEM variables?

    Hello everybody,
    I am about to do some major changes to a BPS application that i have built and have come to realize that it will be quite some work to go through the whole thing for the purpose of replacing some variables.
    Hence, is there a "where used" functionality for SEM variables somewhere out there?
    Greetings,
    Martin

    Hi Martin,
              Have not seen that functionality before,however I have used the same by creating my own reports.All the variables can be found in the UPC_VAR table.If you are looking for the use of the variables in fox code,use a wild card search with UPC_FORML table in the formula column for %'VARV'%.IF Searching for uses in the conditions field for planning functions , use the table UPC_OPTIOS, column variable.In my case i needed to search the foxcode for variable uses.
    Hope this helps to some extent.
    regs.

  • How to make use of the presentation variable in SQL result query

    I have 2 prompts in my dashboard.
    Prompt1 decides the values of Prompt2.
    I have set a presentation Variable (selected_comp) in prompt1 which holds the value selected.
    To populate the values for Prompt2, I need to execute a query using the presenation variable set by Prompt1.
    SELECT "List Of Values".RID from rocketv2_3 WHERE "List Of Values".NAME='COMPONENT' AND "List Of Values".VAL=@{selected_comp}
    the query is resulting into
    SQL Issued: SELECT "List Of Values".RID from rocketv2_3 WHERE "List Of Values".NAME='COMPONENT' AND "List Of Values".VAL=0
    but the value in selected_comp is "ABC".
    Can anybody help in how to make use of the presentation variable in query to get the correct value
    thanks
    Shubha

    Just use constrain check box to filter your 2nd prompt values based on the 1st prompt.
    Thanks,
    Venkat
    http://oraclebizint.wordpress.com

  • Using offset for global variables in FOX

    Dear all,
    I'm using global variables (i.e. defined in planning area)in my FOX formulas by using VARV-command.
    I'm doing this for fiscal year, which has default value current year. However I'd like to use this variable also for next year thus creating the following code:
    DATA CURYEAR TYPE 0FISCYEAR.
    DATA NEXTYEAR TYPE 0FISCYEAR.
    CURYEAR = VARV(Z021VA01).
    NEXTYEAR = CURYEAR+1.
    This gives a syntax error. Anabody any idea how I can use offset in the FOX for my variables?
    Thanks in advance!
    Kind regards, Harjan

    Harjan,
    Use TMVL function to get the offsets.
    DATA CURYEAR TYPE 0FISCYEAR.
    DATA NEXTYEAR TYPE 0FISCYEAR.
    CURYEAR = VARV(Z021VA01).
    NEXTYEAR = TMVL(CURYEAR, +1).
    hope it helps.

  • Where used list for planning variable

    Hi
    I have one variable in a  planning area.
    Can I find where it is used..? in which planning function or layout?
    Is there anything like "where used list " for variables in BPS.
    Thanks for your replies.
    Nandita

    Thanks Bindu.
    Is there any other way to solve the question. That will be very useful. A table name or sme thing like that....
    I have very limited access to Client system .Can not create a report program and execute it.
    Thanks for your responce.
    Nandita

  • Prompt for bind variables in SQL developer

    Hi!
    Just installed the latest 3.2 version of SQL Developer, and tried to do an explain plan.
    Now the tool prompts me for values for the bind variable. It didn't do that in my previous version (version 3. something).
    Thats anoying :-)
    How do I disable that feature?
    Example:
    explain plan for
    select * from emp
    where department_id = :1;
    If i right click on the statement or press F10, I get no prompt for the bind variable...
    Regards
    Søren

    Old fashioned way, like this:
    EXPLAIN PLAN FOR
    SELECT * FROM scott.emp
    where deptno = :1;
    SELECT PLAN_TABLE_OUTPUT FROM TABLE(DBMS_XPLAN.DISPLAY());
    Executed with F5 gives me this output
    plan FOR succeeded.
    PLAN_TABLE_OUTPUT
    Plan hash value: 3956160932
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 5 | 190 | 3 (0)| 00:00:01 |
    |* 1 | TABLE ACCESS FULL| EMP | 5 | 190 | 3 (0)| 00:00:01 |
    Predicate Information (identified by operation id):
    1 - filter("DEPTNO"=TO_NUMBER(:1))
    13 rows selected

  • How to use an UNIX shell variable in sql where clause

    Hi ,
    In my shell script first I get the Date and time from the system into the shell variable.At the end of the shell script I need to run a sql script in which I want to use the variable value in the where clause . Is there any way we can use a shell variable value in SQl script ?. Any help is greatly appriciated .
    Thanks in advance,
    Sampath

    Try the following
    In Unix
    SQLPLUS <username>/<password> @MyScript.sql <UNIX_Variable>
    In SQL*Plus
    Reference the variable as &1
    select *
    from MyTable
    where MyDate = to_date('&1','<date_format>');

  • Use param for "distance" in PL/SQL.

    Hi, all,
    Thanks for the help.
    I have a select statement working in sqlplus:
    SELECT A.addressid
    FROM JOHNDOE.tb_Address A, JOHNDOE.tb_Address B
    WHERE B.Addressid = 1
    AND SDO_WITHIN_DISTANCE(A.Location, B.location, 'DISTANCE = 12.8 UNIT = MILE') = 'TRUE';
    Now that I am coding in PL/SQL and to use a param to replace "12.8". Like the following:
    var p_radius NUMBER;
    exec :p_radius :=12.8;
    print p_radius;
    SELECT A.addressid
    FROM JOHNDOE.tb_Address A, JOHNDOE.tb_Address B
    WHERE B.Addressid = 1
    AND SDO_WITHIN_DISTANCE(A.Location, B.location, 'DISTANCE = ' || p_radius || 'UNIT = MILE') = 'TRUE';
    commit
    Note that with "|| p_radius ||", this is NOT working. How should I put it?
    Thanks a lot.
    -xiaocao

    when run your query looks like this (assuming p_radius = 1):
    DISTANCE = 1UNIT = MILE
    you are missing a space before 'UNIT':
    'DISTANCE = ' || p_radius || ' UNIT = MILE'
    which then looks like this:
    DISTANCE = 1 UNIT = MILE
    ... that should do it.
    Markus

  • How to: Using BADI for reporting variables

    I am familiar with using the exit RSR0001. However I never used a BADI to implement such a variable.
    Is there some information available to get me started?

    Hi,
    These should help you:
    [Implementing a Business Add In (BAdI) in an Enhancement|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0456c54-0901-0010-f0b3-cd765fb99702]
    [Enhancing DataSources with BAdI RSU5_SAPI_BADI|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3001894b-b1fb-2910-77ba-e80b6f2053b7]
    Even check these blogs:
    [Which carries stronger SAP "guarantees": BAdI's or Exits?|Which carries stronger SAP "guarantees": BAdI's or Exits?]
    [SAP Network Blog: A new kid(BAdI) in town|A new kid(BAdI) in town]
    Cheers,
    Habeeb

  • Do I need to use Bindings?

    Hi All
    I wonder if you can help
    I have a class (driver.m) that takes an input from a USB device (the callback function is embedded into the class and passes data back to the instance of the class).
    There are a number of instance variables that change depending on the incoming data.
    say
    int analog1;
    How do I monitor the data coming into that class in a cocoa window.
    For instance analog1 has constantly changing data as a int value 0-255 which I wish to view in a NSLevelindicator.
    Should I be using bindings for this type of thing as most of the bindings demos seem to be on cocoa elements changing cocoa elements.
    If you could point me in the right direction I would appreciate it
    Cheers
    Steve

    So if you take the following:
    @interface Driver : NSObject
        int driverValue;
    @property (readwrite, assign) int driverValue;
    @end
    @implementation Driver
    @synthesize driverValue;
    @end
    Then elseware
        Driver *instance1 = [[Driver alloc] init];
        Driver *instance2 = [[Driver alloc] init];
    I should be able to set up a slider for the driverValue of instance1 and a separate slider for driverValue of instance2?
    Beacuse in interface builder when I create an object (blue qube) I can set the class to Driver and I can set the bind to driverValue. But I can't see were I tell IB which instance this is belonging to. So even if I do a second object (blue qube) I can only duplicate what I have already done I can't see were I assign one (blue qube) to instance1 and the other to instance2.

  • Data type for Saving Image in SQL database

    Hi,
        Which is the best way for saving images in the database? Filestream or Varbinary(max)?. Will the Varbinary max comsume much space or it will only take the actual size of the data?

    I've used FILETABLE for storing images in SQL 2012
    You can configure it to have transact and non transact access if you want
    see
    http://visakhm.blogspot.in/2012/07/working-with-filetables-in-sql-2012.html
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Differences between TOAD for Oracle and Oracle SQL Developer?

    Does someone know the advantages and disadvantages of using TOAD for Oracle and Oracle SQL Developer?
    I work making reports with TOAD, but in a few days I will have to use the SQL Developer (because it´s free) unless I justify the necessity of using TOAD.
    Could some that used both compare them?
    Thanks,
    Facundo.

    Hello Facundo,
    since we are rolling out new client PCs we switch from Toad to SQL Developer. Therefore I'm doing some training for the "normal" users and our developers.
    Most users simply want to have access to the data in tables and views. For those there are 2 main issues:
    - Filters get lost when exiting table while sorting is still applied. Since there is no way to apply filtering before entering the data tab this can become a great performance issue because sorting is applied to many many rows. For views it is sometimes impossible to open the data tab.
    - Exporting date values to Excel needs some know how if you want to sort by this column in Excel, because the date is formatted as "Standard" meaning that the sorting is done as for a text column: 01.01.2009 is less than 02.01.2008. Here you have to use a workaround column with a formula (=1*<datecolumn>)
    The greatest Pro is the easy sharing of connections and reports by XML files.
    Our developers like the easy debugging in SQL Developer. Though they miss the feature that the source is compiled for debug automatically as in Toad. For this we have distributed a script that compiles any PL/SQL object for debugging.
    There are only some Toads installed for DBAs and for users that need access to tables protected by policies that require authentification by OS user since this information is not passed under every circumstance.
    Regards
    Marcus

  • Ready for Input Variables for Multiple Queries in I_T_VAR_RANGE

    Hi
    I created Web template which contains multiple views/queries. Two views/queries contain Ready for Input Variables. I have custeomer exit code for this Web template. I wrote code by using Ready for input variable which pass to customer exit code. But the variables which contain in two views/queries not appearing in I_T_VAR_RANGE. The two variables belongs to different views and I required those variables. please find below code:
        WHEN 'ZVBCUST'.
          LOOP AT i_t_var_range INTO w_var_range WHERE vnam = 'ZVAR1'. 
            g_soldto = w_var_range-low.
          ENDLOOP.
          LOOP AT i_t_var_range INTO w_var_range WHERE vnam = 'ZVAR2'
            g_zvbsshto = w_var_range-vnam.
            g_shipto = w_var_range-low.
          ENDLOOP.
    The above 'ZVAR1' is ready for input variable which belongs to one Query and below 'ZVAR2' is other ready for input variable which belongs to second query. I required these two at a time when customer exit variable 'ZVBCUST' executes.
    But in I_T_VAR_RANGE only one variable appears when I execute Web Template . Kindly help me in this regard
    Thanks
    luci

    Hi,
    First thing is to how you have defined your variable such as
    Customer exit or
    Replacement path or
    Manual input etc..
    If you want your variable filled through the exit select Customer Exit, then you have to look at the variable options such as Single value or range. According to your definition you have code as you defined such as wa_range-opt = 'BT' or 'EQ'.
    Next..
    In CMOD -> your project -> EXIT_SAPLRRS0_001 -> include 'ZXRSRU01' ->
    ISTEP = 1 -> before the variable pop up will be filled by the exit
    when 'your variable'
    your code
    ISTEP = 2 -> after the variable pop up i.e after running your selections, calculates the values for your variables after selection screen execution.
    when 'your varaible'
    your code
    ISTEP = 3 -> Validation purpose and message handling purpose
    when 'your variable'
    your code

  • Using SSD for BizTalk DB. Real-life experience

    Hi,
    We are considering to use SSD disk for the MessageBox [and maybe other] database.
    In theory it should increase speed of the BizTalk as a whole system.
    Did anybody try it in real life scenarios? If so, what are the real numbers in performance?
    What is the real danger of the SSD degradation over time? What is the reliability? What about HA, is it worth to use SSD for the HA on SQL level?
    Leonid Ganeline [BizTalk MVP]

    Hi Johns,
    BizTalk is OLTP system, yes. But latency is an issue in my case. I need <100 msec latency for the MessageBox round trip for most cases. In some cases I need <10 msec.
    And SSD is so cheap, we could replace burned disk each couple months, if we need. It would be still cheaper than good hard-drive subsystem.
    And we tolerate some message lost. At last we use now the custom made HA solution and didn't find any problems with, no lost messages.
    Leonid Ganeline [BizTalk MVP]

Maybe you are looking for

  • Switching loop question

    Hello everyone! I need some clarification of the switching loops. I apologise if my question is too simple, but i really cannot find answer in books, internet. Thanks in advance! Please look at the attached topology. This is my test lab for switching

  • New employee with wrong hiring date - how to change?

    Hi, I've entered a new employee with a wrong hiring date and I don't know how to change it. Some employee date are easily changeable not the hiring date!?

  • Widescreen blur line problem

    Hey all, new to the forums and quite new to final cut pro aswell. However i have a problem with the widescreen filter so i was wondering if any of you could help a noob out. Every time i add the widescreen filter to my footage there are these annoyin

  • Select problem during excuting SM35

    Hi, all:   i use BDC to extent material between plants by MM01.   You know, there are some fields that will be gray if it has been filled in one plant,such as MARA-SPART,MARA-MTVFP.   So when i use BDC i have to check if this field has value in table

  • J2ee -verbose java.lang.NoSuchMethodError

    Hi, just trying to go through the tutorial but I cant get the j2ee process to run. I type j2ee -verbose and i get the following : J2EE server listen port: 1050 Naming service started:1050 Exception in thread "main" java.lang.NoSuchMethodError at com.