Select syntax

select zterm vtext
from tvzbt into table itab8
for all entries in itab4
where zterm = vbkd-zterm and vbkd-vbeln = itab4-vbeln and spras = sy-langu.
Error is Field "VBKD-VBELN" unknown.

Hello,
In the below select u r selecting data from the table TVZBT.
select zterm vtext
from tvzbt into table itab8
for all entries in itab4
where zterm = vbkd-zterm
   and vbkd-vbeln = itab4-vbeln   "  Check here
   and spras = sy-langu
Instead give like this
"Check Here   and vbeln = itab4-vbeln   "  Check here
Regards,
Vasanth

Similar Messages

  • Can i use id on html:select syntax...

    Hi,
    i am using the following code to take data from the database directly to a dropdown box.
    <html:select property="lddate" style = "width:160">
    <html:option value="--SELECT--">SELECT</html:option>
    <html:options collection="loadDateList" name="almRecordsNotProcessedBO" property="lddate"
    labelProperty="lddate"/>
    </html:select>
    then after selecting the load-date from the drop-down box & clkng on submit button page is wrkng fine but in the dropdown it not showing the selected date.it is showing the default 1st entry in the drop-down box.
    Now i using a javascript for showing the selected date::::
    <script type="text/javascript">
    function getText(){
    var x=document.getElementById("aSelectControl")
    alert(x.options[x.selectedIndex].text)
    </script>
    But here i needed an id . In my Drop-down select code where i shuld use this id..i dont understand..i have checked for syntax of html:select but there is no id tag attribute of html:select.can anyone suggest me any other idea how to show that.
    can any one help me ..its very very urngent. i got stuck..plzzzz
    I have checked in the internet there is a select syntax where i can make use that id..
    Select the load date:
    <select id="aSelectControl">
    <option>25-12-2011</option>
    <option>26-11-2011</option>
    <option>27-11-2011</option>
    </select>
    But here the problem is i have to write the dates in a jsp page..but its not poss for my case...i have to take the date from databse. can any one tell me if i using the above query how to take data from the database.
    plzzzz help me..

    can anyone say where i am wrong in follwing syntax..
    function changeText2(val){
         var index = document.getElementById('prodlvl0').selectedIndex;
         alert("value="+document.getElementById('prodlvl0').value);
    alert("text="+document.getElementById('prodlvl0').options[index].text);
    <td class = "almtdheight" width="37%">
    <html:select property="lddate" style = "width:160" styleId="prodlvl0" onclick="changeText2(this.value)">
    <html:option value="--SELECT--">SELECT</html:option>
    <html:options collection="loadDateList" name="almRecordsNotProcessedBO" property="lddate" labelProperty="lddate"/>
    </html:select>
    </td>
    its not wrkng...

  • How to optimize the ABAP select syntax

    Dear all:
        Anyone can help me to optimize the ABAP syntax like this:
    select objid stext from hrp1000
        into (itab-plans,itab-plstx)
              where plvar = '01'
                and istat = '1'
                and begda <= pn-begda
                and endda >= pn-begda
                and langu = sy-langu
                and otype = 'S'.
          if sy-subrc = 0.
            select single * from hrp1001
              where objid = itab-plans
                and rsign = 'A'
                and relat = '008'
                and plvar = '01'
                and begda <= pn-begda
                and endda >= pn-begda
                and sclas = 'P'
                and otype = 'S'.
            if sy-subrc <> 0.
              append itab.
              clear itab.
            endif.
          endif.
        endselect.
    In the table hrp1000 has almost 50000 records ,the table hrp1001 200000 records. I found that if i run the ABAP above ,my performance is so bad .
    Andone can help me ?

    Try using this FM and check how is the performance.
    RH_READ_OBJECT_SET
    A

  • Database SELECT SYNTAX

    hello
    I have a VI made with DB connectivity toolkit.  On it, I am using a DB tool select data.  I am trying to read a specific data from a table using a SQL query (in condition).  Well, when a using the sentence
    SELECT id FROM SensoresIR1 WHERE id=36151
    labview give me a error:
    Possible reason(s):
    ADO Error: 0x80040E14
    Exception occured in Microsoft OLE DB Provider for ODBC Drivers: [MySQL][ODBC 3.51 Driver][mysqld-5.1.36-log]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT id FROM SensoresIR1 WHERE id=36151' at line 1 in NI_Database_API.lvlib:Conn Execute.vi->NI_Database_API.lvlibB Tools Select Data.vi->interfaz1.vi
    Possible reason(s):ADO Error: 0x80040E14Exception occured in Microsoft OLE DB Provider for ODBC Drivers: [MySQL][ODBC 3.51 Driver][mysqld-5.1.36-log]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT id FROM SensoresIR1 WHERE id=36151' at line 1 in NI_Database_API.lvlib:Conn Execute.vi->NI_Database_API.lvlibB Tools Select Data.vi->interfaz1.vi
    can you help me?
    Carlos Bolvaran
    Vesat Ingenieria
    Solved!
    Go to Solution.

    Don't know what happened to my post, it should have had an additional sentence above 
    If you have just added the data to the table using LabVIEW and want to return the id number in order to create records in a linked table, there are various ways to query (as shown by nomade42k and Mareiusz).
    Assuming that your table is a simple one (not a stored procedure, no triggers or other customization), you can usually use a special query to retreive the IDENTITY 
    SELECT @@IDENTITY
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • Help on Select Syntax

    In MS-SQL Server you can write something like:
    select top 20 from Authors
    What is the equivalent of this in Oracle?
    Is there any link available describing oracle syntax for pl/sql?
    Thanks and Regards,
    Rumpa

    select *
    from authors
    where rownum <= 20
    Note: This is not a random selection, just the first 20. If you wish to have the top 20 then try:
    select *
    from authors
    where rownum <= 20
    order by name asc
    also, PL/SQL

  • Clarification in Select syntax

    Hi Friends,
    I have a requirement to write a selection query based on vendor name(LFA1-NAME1). In this select statement i need to use range of values to fetch records  like below
    But if i use selection statement as below the selection is not accurate it miss out some records which starts with A* or B* or C*.
    select * from lfa1 into table it_lfa1 where name1 in LFA1-NAME1.
    If you have any solutions pls let me know.
    Thanks!
    Regards,
    Manojkumar Nagarajan

    Hi Manoj .
    Here is the code... its working fine ..
    TABLES : LFA1 .
    DATA   :  IT_LFA1 TYPE TABLE OF LFA1,
               WA_LFA1  TYPE LFA1 .
    DATA   : PA_STRING TYPE STRING .
    SELECTION-SCREEN: BEGIN OF BLOCK B1.
      SELECT-OPTIONS : SO_NAME   FOR LFA1-NAME1 .
    SELECTION-SCREEN : END OF BLOCK B1 .
    LOOP AT SO_NAME .
    REPLACE ALL OCCURRENCES OF '*'  IN SO_NAME-LOW  WITH '%'.
    CONCATENATE '''' SO_NAME-LOW '''' INTO SO_NAME-LOW .
    MODIFY SO_NAME .
    ENDLOOP .
    LOOP AT SO_NAME  .
      IF PA_STRING IS INITIAL .
      CONCATENATE   'NAME1 LIKE' SO_NAME-LOW  PA_STRING INTO PA_STRING SEPARATED BY ' '.
      ELSE .
      CONCATENATE   PA_STRING 'OR NAME1 LIKE'  SO_NAME-LOW  INTO PA_STRING SEPARATED BY ' '.
      ENDIF .
    ENDLOOP .
    SELECT * FROM LFA1 INTO TABLE IT_LFA1 WHERE (PA_STRING) .
    LOOP AT IT_LFA1 INTO WA_LFA1.
    WRITE : / WA_LFA1-LIFNR , WA_LFA1-NAME1 .
    ENDLOOP .
    follow the above code and do ur selection accordingly .cheers..
    input
    Output
    Regards
    DJ

  • Select syntax error

    select addrnumber name1 street str_suppl1 city1 region post_code1 country countrycode tel_number
    from adrc join t005t on adrc-country = t005t-land1 into table itab3 for all entries in itab1 where addrnumber = itab1-adrnr
    and t005t-spras = sy-langu.
    Error is Field "ADRC-COUNTRY" unknown.          
    I know the field exists so not sure how to resolve this

    select addrnumber name1 street str_suppl1 city1 region
             post_code1 country countrycode tel_number
                    from adrc
                         inner join t005t
                              on adrc~country = t005t~land1      "<- Use ~
                                     into table itab3
                                             for all entries in itab1
                                                 where adrc~addrnumber = itab1-adrnr   "<- Use ~
                                                     and t005t~spras = sy-langu.     "<- Use ~
    Assuming all of your field names are correct,  you need to use the ~  when defining the join and referencing the fields in the WHERE clause,  you only need to do this when working with joins.
    Regards,
    Rich Heilman

  • OPEN lcur_trade_cursor FOR select Syntax

    HI I am new to cursors .i am seeing this code in my package .any help what the code in block will do?what for this is defined ?
    or can u please explain the behaviour of this cursor meaning the data how populated?
    I would like to understand especially this block in square brackets
    [rec
                        WHERE      rec.par_amt <> rec.fa_trade_quantity OR
              rec.original_face_amt <> rec.fa_original_face_amt OR
              ( rec.current_trade_status_cd = 'EX' AND rec.fa_trade_status_cd <> '12' OR
              (rec.current_trade_status_cd = 'SAVED' AND (rec.sent_to_downstream = 'N' or rec.sent_to_downstream IS NULL)
                        AND rec.fa_trade_status_cd <> '11') OR
              ((rec.current_trade_status_cd = 'PN' AND rec.sent_to_downstream = 'Y') AND rec.fa_trade_status_cd <> '11') OR
              rec.current_trade_status_cd = 'TR' AND rec.fa_trade_status_cd <> '12');]
    OPEN lcur_trade_cursor FOR
                        SELECT pv_cycle_date_i,
                        FI_S2O_TRD_DIFF_SEQ.NEXTVAL,
                        rec.trade_effective_dt AS fide_trd_eff_dt,
                        rec.pot_trade_id AS pot_trade_id,
                        rec.fa_trade_id AS fide_trade_id,
                        rec.transaction_alternate_id AS transaction_alternate_id,
                        rec.fi_instrument_id AS fi_instrument_id,
                        rec.portfolio_id AS portfolio_id,
                        'Trades in FIDE and UDE but difference in Par Amount or Original Face Value or Trade Status',
                        rec.par_amt AS ude_par_amt,
                        rec.original_face_amt AS ude_original_face_amt,
                        rec.fa_trade_quantity AS fide_par_amt,
    rec.fa_original_face_amt AS fide_original_face_amt,
                        rec.txn_source_system_cd AS fide_source_system,
                        rec.trade_src_cd AS ude_source_system,
                        rec.settlement_dt AS settlement_dt,
                        pv_recon_type_i,
                        SYSTIMESTAMP,
                   USER,
                   SYSTIMESTAMP,
                   USER,
                        SYSTIMESTAMP
                        FROM (
                             SELECT
                             trd.trade_effective_dt ,
                             trd.transaction_alternate_id ,
              ude.pot_trade_id ,
              trd.fa_trade_id ,
              trd.fi_instrument_id ,
              trd.portfolio_id ,
                             trd.fa_trade_quantity          ,
                             trd.fa_original_face_amt          ,
                             ude.par_amt ,
                             ude.original_face_amt ,
                             trd.txn_source_system_cd ,
                             ude.trade_src_cd ,
                             trd.settlement_dt ,
                             ude.current_trade_status_cd ,
                             trd.fa_trade_status_cd ,
                             trd.sent_to_downstream
                        FROM FUND_TRADE_V trd,
                                  STG_SYB_TRADES ude,
                                  FI_FUND_SUBPORTFOLIO sub,
                                  INSTRUMENT_ALTERNATE_ID ia
                        WHERE trd.trade_effective_dt >= pv_cycle_date_i
                        AND ude.trade_effective_dt >= pv_cycle_date_i
                        AND trd.transaction_alternate_id = ude.trade_sequence_nbr
                        AND ude.trade_effective_dt = trd.trade_effective_dt
                        AND ude.recon_type = pv_recon_type_i
                        AND trd.portfolio_id = sub.portfolio_id
                        AND ude.fund_nbr = sub.fund_nbr
                        AND ude.subportfolio_nbr = sub.subportfolio_nbr
                        AND trd.fi_instrument_id = ia.fi_instrument_id
                        AND ia.alternate_id_type_code ='FMR_CUSIP'
                        AND ude.fmr_cusip = ia.alternate_id
                        AND EXISTS
              ( SELECT 1
              FROM HLDGS_RECON_TAXBD_GRP_FUND_MV mm,
                                            FUND fnd
              WHERE mm.parent_grp = 'OMS_FUND'
              AND mm.member_grp = 'MM_FUND'
              AND mm.fund_nbr = ude.fund_nbr
                                  AND mm.fund_nbr     = fnd.fund_nbr
                                  AND fnd.fund_ending_dt IS NULL
                   ) rec
                        WHERE      rec.par_amt <> rec.fa_trade_quantity OR
              rec.original_face_amt <> rec.fa_original_face_amt OR
              ( rec.current_trade_status_cd = 'EX' AND rec.fa_trade_status_cd <> '12' OR
              (rec.current_trade_status_cd = 'SAVED' AND (rec.sent_to_downstream = 'N' or rec.sent_to_downstream IS NULL)
                        AND rec.fa_trade_status_cd <> '11') OR
              ((rec.current_trade_status_cd = 'PN' AND rec.sent_to_downstream = 'Y') AND rec.fa_trade_status_cd <> '11') OR
              rec.current_trade_status_cd = 'TR' AND rec.fa_trade_status_cd <> '12');
    Edited by: 945400 on Aug 23, 2012 3:24 AM

    This is one of those situations where if you formatted the code for readability the answer falls right out.
    OPEN lcur_trade_cursor FOR
    SELECT pv_cycle_date_i,
           FI_S2O_TRD_DIFF_SEQ.NEXTVAL,
           rec.trade_effective_dt AS fide_trd_eff_dt,
           rec.pot_trade_id AS pot_trade_id,
           rec.fa_trade_id AS fide_trade_id,
           rec.transaction_alternate_id AS transaction_alternate_id,
           rec.fi_instrument_id AS fi_instrument_id,
           rec.portfolio_id AS portfolio_id,
           'Trades in FIDE and UDE but difference in Par Amount or Original Face Value or Trade Status',
           rec.par_amt AS ude_par_amt,
           rec.original_face_amt AS ude_original_face_amt,
           rec.fa_trade_quantity AS fide_par_amt,
           rec.fa_original_face_amt AS fide_original_face_amt,
           rec.txn_source_system_cd AS fide_source_system,
           rec.trade_src_cd AS ude_source_system,
           rec.settlement_dt AS settlement_dt,
           pv_recon_type_i,
           SYSTIMESTAMP,
           USER,
           SYSTIMESTAMP,
           USER,
           SYSTIMESTAMP
      FROM (SELECT trd.trade_effective_dt,
                   trd.transaction_alternate_id,
                   ude.pot_trade_id,
                   trd.fa_trade_id,
                   trd.fi_instrument_id,
                   trd.portfolio_id,
                   trd.fa_trade_quantity,
                   trd.fa_original_face_amt,
                   ude.par_amt,
                   ude.original_face_amt,
                   trd.txn_source_system_cd,
                   ude.trade_src_cd,
                   trd.settlement_dt,
                   ude.current_trade_status_cd,
                   trd.fa_trade_status_cd,
                   trd.sent_to_downstream
              FROM FUND_TRADE_V trd,
                   STG_SYB_TRADES ude,
                   FI_FUND_SUBPORTFOLIO sub,
                   INSTRUMENT_ALTERNATE_ID ia
             WHERE     trd.trade_effective_dt >= pv_cycle_date_i
                   AND ude.trade_effective_dt >= pv_cycle_date_i
                   AND trd.transaction_alternate_id = ude.trade_sequence_nbr
                   AND ude.trade_effective_dt = trd.trade_effective_dt
                   AND ude.recon_type = pv_recon_type_i
                   AND trd.portfolio_id = sub.portfolio_id
                   AND ude.fund_nbr = sub.fund_nbr
                   AND ude.subportfolio_nbr = sub.subportfolio_nbr
                   AND trd.fi_instrument_id = ia.fi_instrument_id
                   AND ia.alternate_id_type_code = 'FMR_CUSIP'
                   AND ude.fmr_cusip = ia.alternate_id
                   AND EXISTS
                          (SELECT 1
                             FROM HLDGS_RECON_TAXBD_GRP_FUND_MV mm, FUND fnd
                            WHERE     mm.parent_grp = 'OMS_FUND'
                                  AND mm.member_grp = 'MM_FUND'
                                  AND mm.fund_nbr = ude.fund_nbr
                                  AND mm.fund_nbr = fnd.fund_nbr
                                  AND fnd.fund_ending_dt IS NULL)) rec
    WHERE    rec.par_amt != rec.fa_trade_quantity
           OR rec.original_face_amt != rec.fa_original_face_amt
           OR (       rec.current_trade_status_cd = 'EX'
                  AND rec.fa_trade_status_cd != '12'
               OR (    rec.current_trade_status_cd = 'SAVED'
                   AND (   rec.sent_to_downstream = 'N'
                        OR rec.sent_to_downstream IS NULL)
                   AND rec.fa_trade_status_cd != '11')
               OR (    (    rec.current_trade_status_cd = 'PN'
                        AND rec.sent_to_downstream = 'Y')
                   AND rec.fa_trade_status_cd != '11')
               OR     rec.current_trade_status_cd = 'TR'
                  AND rec.fa_trade_status_cd != '12');'rec' is an alias for a query defined in the FROM clause.

  • Diff "full outer join" va. "(+)" SELECT syntax ?

    As far as I know there are two ways of defining an outer join:
    Select ... from tab1 t1 full outer join tab2 t2 on t1.id =t2.id;
    or:
    Select ... from tab1 t1, tab2 t2 where t1.id = t2.id(+)
    Are they absolutely equivialent?
    Which are the most common one?
    Which are used on other databases (DB2, MySQL) as well?
    Can I put an additional WHERE clause at the end in the first statement:
    Select ... from tab1 t1 full outer join tab2 t2 on t1.id =t2.id WHERE .....;

    Select ... from tab1 t1 full outer join tab2 t2 on t1.id =t2.id;This is FULL OUTER JOIN
    Select ... from tab1 t1, tab2 t2 where t1.id = t2.id(+)This is LEFT OUTER JOIN.
    They are entirely different.
    FULL OUTER JOIN - Gets all the rows from tab1 and tab2
    LEFT OUTER JOIN - Gets all the rows from tab1 and only the row that matches with join condition from tab2.
    Here is a simple test.
    create table tab1(id integer)
    create table tab2(id integer)
    begin
      insert into tab1 values(1);
      insert into tab1 values(2);
      insert into tab1 values(3);
    end;
    begin
      insert into tab2 values(3);
      insert into tab2 values(4);
      insert into tab2 values(5);
    end;
    Select t1.id, t2.id
      from tab1 t1 full outer join tab2 t2
        on t1.id =t2.id
    Select t1.id, t2.id
      from tab1 t1, tab2 t2
    where t1.id = t2.id(+)
    /Run it and see the result.

  • Select query in Advanced SQL Filter

    Hi All
    I am creating a shared filter and I need to write an sql statement for a column. Can I use
    string functions in the Advanced SQL Filter. My sql query is :
    select distinct "Exchange Rate"."Type" from "Credit"
    where substr(rtrim("Exchange Rate"."Type"),-1,2) in (select distinct substr(rtrim( "-Year"."Year Name"),-1,2)
    from "Credit" where CURRENT_DATE between "-Year"."Year Start Date" and "-Year"."Year End Date" )
    where, "Credit" = Name of the subject area
    "Exchange Rate" and "-Year"= presentation tables
    I'm getting the error:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <select>: Syntax error [nQSError: 26012] . (HY000)
    I then tried a simple query in the Advanced SQL Filter: "Exchange Rate"."Type" = SELECT "Exchange Rate"."Type" FROM "Credit"
    which does not work either.
    Can't seem to debug the problem.
    Thanks

    Hi user770000,
    How did you resolve the issue. I am trying to use the sql query in the filter and getting same error as yours.
    Here is the advanced SQL of the filter condition
    CAST("ARRA Financial Weekly Report"."DW Updated" AS DATE) = SELECT MAX(CAST("ARRA Financial Weekly Report"."DW Updated" AS DATE)) from "ARRA Recovery Act Status"
    When I issue following sql in direct sql, it returns required value
    SELECT MAX(CAST("ARRA Financial Weekly Report"."DW Updated" AS DATE)) from "ARRA Recovery Act Status"

  • Selection in data load from infoprovider

    Hi Guys,
    In BPC NW 7.5 we have to load data from infoprovider allowing users to select data (like for dimension TIME) by BPC prompt.  We found two solutions solving partially our problem. In fact, users have to modify manually the selections.
    SOLUTION 1:
    To load data we want use the process chain /CPMB/INFOPROVIDER, but we know that it is not possible insert selections in the /CPMB/INFOPROVIDER prompt (as describe in this post Re: Package LOAD INFOPROVIDER, Select input ENTITY).
    To select data we can use an intermediate infocube as a BW workaround (as describe in this post Re: BPC 7.5: Delta Load when loading from BI InfoProvider ) to have a source with only the selected data.This could be done by a selection in the DTP between the source infocube and the intermediate infocube. This solution is not dynamic, in fact, in this case users have to modify manually the DTP selection.
    How can we allow users to insert this selection in the DTP by a BPC prompt?
    SOLUTION 2:
    To select data we can use a transformation file inserting a selection like
    SELECTION = <Dimension1_techname>,<Dimension1_value>.
    It is not dynamic, in fact, also in this case users have to modify manually the file selection.
    Do you know how to allow these selection by a BPC prompt to avoid these manual changes?
    Do you know other solutions?
    Thank you for your support.

    Hi D-Mark,
    This is definitely a place where it would be nice to see some additional functionality added to BPC. Variable replacement in the transformation file based on the data manager prompt would probably be the best thing to have in the software.
    In any case, getting back to your question, manually modifying the transformation file selection is the most common practice on BPC projects. The blog linked by Naresh is a fairly elegant way to do this, though it doesn't completely get around the fact that it's easy to forget to do and easy to get confused about what is going on in the transformation file.
    A third option that no one has mentioned is to do a SELECTION statement in the transformation file based on navigational attributes in the source InfoProvider. This approach can make the selection statement dynamic based on the contents of BW InfoObjects. Still not very user-friendly, but if you can put an automatic process in place to update the BW navigational attributes this might meet your need without having to set up an extra BW staging InfoProvider.
    The SELECTION syntax is documented here, though it doesn't mention that you can select on navigational attributes: [http://help.sap.com/saphelp_bpc75_nw/helpdata/en/5d/9a3fba600e4de29e2d165644d67bd1/frameset.htm]
    With navigational attributes (the profit center attribute of cost center, for example) it would be something like:
    SELECTION=0COST_CENTER___0PROFIT_CENTER,PC01
    Ethan

  • TreeTable Component - attributes for $selected[*]

    I am trying to pass some query parameters to a new menu item added to the TreeTable component that drives the main menu in IDM 8. Documentation in the treetablelibrary.xml says:
    <Comments>  Define an action by supplying:
                  - a name (action)
                  - a label to display for the action, usually a message key (label)
                  - the selections required for this action (selectionMode):
                    "none", "oneOrNone" (optionally one selection), "single"
                    (exactly one selection), "multi" (one or more), and "any"
                    (any number of selections, including none).
                  - the types of object this action applies to (selectionTypes)
                  - the URL to route the action to (targetURL)
                  - a map of parameters to pass to the targetURL (targetParameters)
                    You can set session attributes by prefixing the parameter name
                    with "Session:".  You can reference the selected items by using
                    a parameter value of "$selected[name]".
                  - the type of this object for authorization purposes (authType).
                    If omitted, selection type will be used.
                  - the right required on the object to perform this action (requiredRight)
                  - an ACL for the action (actionACL).  If supplied, this overrides
                    authType and requiredRight.
              </Comments>The question I have is: What are the attributes that are available for use with the $selected[*] syntax? I see 'id' and 'name' as examples (selected[id] and selected[name]), but would like to understand what else can be accessed in this way.
    To clarify, here is the type of code I would be writing:
    <argument name='targetParameters'>
                                <Map>
                                    <MapEntry key='id' value='$selected[id]'/>
                                    <MapEntry key='name' value='$selected[name]'/>
                                </Map>
                            </argument>Thanks for the help!

    See if example 61 on the ADF Code corner helps:
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/61search-in-rendered-trees-177577.pdf
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html#CodeCornerSamples

  • Speed Issue on an UPDATE from a sub-select

    Ignoring the fact this is a Spatial Query... having troubles understanding why a select finishes very quickly, yet putting the same select syntax in an UPDATE command as a sub-select takes forever to finish. Columns in the original table are indexed (ie SANITARY_MH_DATA.GIS_ID). The work-around has been to load a Temporary table with the sub-select results, followed by an UPDATE command. But it creates more sql code than needed.
    Any hints appreciated.
    Phil.
    -- FIND THE SANITARY CATCHMENT THE MANHOLE IS IN --
    -- need to add the ones that fall into more than 1 catchment
    -- with the mask=TOUCH
    UPDATE SANITARY_MH_DATA SET CATCHMENT_NAME = '';
    -- THIS BLAZES AND IS DONE IN 5 SECONDS...
    SELECT CATCHMENT_ID FROM
    (SELECT A.GIS_ID AS MANHOLE, B.GIS_ID AS CATCHMENT_ID
    FROM SANITARY_MH A, SANITARY_CATCHMENT B
    WHERE SDO_RELATE (A.GEOMETRY,B.GEOMETRY, 'mask=INSIDE querytype=Window') = 'TRUE');
    -- THIS BOGS DOWN AND TAKES FOREVER TO FINISH...
    UPDATE SANITARY_MH_DATA SET CATCHMENT_NAME = ( SELECT CATCHMENT_ID FROM
    (SELECT A.GIS_ID AS MANHOLE, B.GIS_ID AS CATCHMENT_ID
    FROM SANITARY_MH A, SANITARY_CATCHMENT B
    WHERE SDO_RELATE (A.GEOMETRY,B.GEOMETRY, 'mask=INSIDE querytype=Window') = 'TRUE')
    WHERE SANITARY_MH_DATA.GIS_ID = A.MANHOLE);
    EXIT;
    Edited by: user13174287 on 24-Aug-2010 3:51 PM
    Edited by: user13174287 on 24-Aug-2010 4:06 PM

    There is such a way, however I doubt that it will work in your case. There are some restrictions on it.
    You can write an update to a kind of inline query.
    UPDATE (select dat.*, mh.GIS_ID AS MANHOLE, cat.GIS_ID CATCHMENT_ID
           from SANITARY_MH_DATA dat,  SANITARY_MH mh, SANITARY_CATCHMENT cat
           where SDO_RELATE (mh.GEOMETRY,cat.GEOMETRY, 'mask=INSIDE querytype=Window') = 'TRUE'
           and dat.GIS_ID = mh.GIS_ID
           ) v
    SET v.CATCHMENT_NAME = v.CATCHMENT_ID
    WHERE (v.CATCHMENT_NAME != v.CATCHMENT_ID or v.CATCHMENT_NAME is null)
    ;there is some join criteria missing between cat and dat. MAybe it would work if the CATACHMENT ID is fetched in the selct clause of the inline view, instead of joining it.
    UPDATE (select dat.*, mh.GIS_ID AS MANHOLE,
                        (select cat.GIS_ID from SANITARY_CATCHMENT cat
                         where SDO_RELATE (mh.GEOMETRY,cat.GEOMETRY, 'mask=INSIDE querytype=Window') = 'TRUE'
                         and rownum = 1) as catchment_id
           from SANITARY_MH_DATA dat,  SANITARY_MH mh
           where dat.GIS_ID = mh.GIS_ID
           ) v
    SET v.CATCHMENT_NAME = v.CATCHMENT_ID
    WHERE (v.CATCHMENT_NAME != v.CATCHMENT_ID or v.CATCHMENT_NAME is null)
    ;Oh and there is the MERGE statement. This might help in your case.
    Edited by: Sven W. on Aug 25, 2010 9:19 PM

  • Wierd SQL Select Compile Error

    Hello.
    When I do my SQL like this:
    SQL SELECT cus_surname as "Surname",
    cus_forename as
    "FirstName",
    cus_telephone as
    "Telephone",
    cus_address as
    "Address1",
    cus_line1 as
    "Address2",
    cus_line2 as
    "Address3",
    cus_town as
    "Address4",
    cus_city as
    "Address5",
    cus_postcode as
    "Address6"
    INTO :lCustomer
    FROM msp_customers
    WHERE cus_serial = :lRefCustomer.Serial
    on session SessionToUse;
    I get this compile error:
    The read-only virtual attribute
    FoundationClasses.FoundationBusinessObject.IsNew can't be passed as an
    OUTPUT or an INPUT OUTPUT parameter.
    Yet if I remove the "as" from the SQL Select syntax it works, with no
    compile errors.
    Why? I don't understand why they are different!
    Tim Sawyer
    PanCredit
    Leeds, UK.
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    I added a DBMS_OUTPUT.put_line(l_wrap) in keith codes
    and run out put wrapped test codes in sqlplus and can see wrapped test procedure.
    create or replace procedure test wrapped
    a000000
    b2
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    7
    11d 124
    ohyVALi7ang26ROCF0CZ3wLg6ngwgy7Q2SdqfC/p+D6E39xrRLEK0/eVVEVSORSTWoZXk1gi
    JT9nTrV3IXmGVbi5uMlIl+0C/WV9wPlFL5z37QfcEOYUdmLx8iwul2hEvDehUX0jLfiltHqx
    MhAgy16zDvWPfv5uE4HrlBvRAYoDmETXR7r10x/uyQyUxDw4sVyq6Ndh4GSFw9zp801nKSN1
    P0GOB03CtlcnrqAjQhASJKrP4sXW74oOyr373DBBP/CLndRTT0TZ1HvWVzAgL5C++Dl6PNyQ
    But I got compiled errors as
    Compilation errors for PROCEDURE SYS.TEST
    Error: PLS-00103: Encountered the symbol "ASWALLET_OPEN" when expecting one of the following:
    ( ; is with authid as cluster compress order using compiled
    wrapped external deterministic parallel_enable pipelined
    result_cache
    The symbol "is" was substituted for "ASWALLET_OPEN" to continue.
    Line: 1
    Text: create or replace procedure test wrapped
    Error: PLS-00103: Encountered the symbol "=" when expecting one of the following:
    constant exception <an identifier>
    <a double-quoted delimited-identifier> table long double ref
    char time timestamp interval date binary national character
    nchar
    The symbol "<an identifier>" was substituted for "=" to continue.
    Line: 1
    Text: create or replace procedure test wrapped
    Error: PLS-00103: Encountered the symbol "=" when expecting one of the following:
    constant exception <an identifier>
    <a double-quoted delimited-identifier> table long double ref
    char time timestamp interval date binary national character
    nchar
    Line: 1
    Text: create or replace procedure test wrapped
    .Bot trigger and procedure works well before wrapped.
    I use oracle 11g2 at window 2003.
    Thanks
    newdba

  • Optimizing detail object syntax

    Hello,
    reading the document about implementation best practices, I read that you can change the synthax like
    For example, for the object L01 Customer Key, change the generated select syntax:
    [Z_CUSTOM].[LEVEL01].[[2Z_CUSTOM]].[Value] to refer to the NAME attribute: [Z_CUSTOM].[LEVEL01].[NAME]
    Do you know if the same applies to non navigation attributes of infoobjects?
    In a just created universe I get something like:
    [ZIO_NAME].[LEVEL01].[[2ZIO_OTHER_IO]].[Value]
    I was wondering if something like
    [ZIO_NAME].[LEVEL01].[ZIO_OTHER_IO].[NAME]
    can be written and is more efficient, or if any experiences/best practices do exist for similar cases.
    Thanks for any help

    Hi,
    this is actually the syntax of a display attribute:
    [ZIO_NAME].[LEVEL01].[[2ZIO_OTHER_IO]].[Value]
    The rule doesn't apply
    Ingo

Maybe you are looking for

  • Column filter issue in  CSV format of BOXIR3

    Hi , Currently in my infoview, supposing I am a webi document, in which I have 4 columns selected in a report from the data provider of the document (Assuming that the data provider has 10 columns). Now, when I am trying to save this document on my c

  • Can't Add CHIP to Catalog and Can't delete Catalog from page

    Hi experts:     I'm working on Renewal configuration. I create some customize pages and add some CHIPs into it. It works normally before.     But after we upgrade the EA-HR component from 607 to 608, I can't add chip to catalog and can't delete catal

  • How to automate the process of converting a pdf to excel online?

    Hi, Each morning I recieve a bunch of pdf files form my clinet and I need to convert all of them to MS - excel and then use them for further calculations. This is a repititive, tedious and time consuming process. So the idea is to automate the follow

  • Building PHP 5.2.5 and MySQL (Cannot find MySQL header files under /usr.)

    Hi, we are in big trouble here. On Mac OS X 10.4 it was no problem building PHP with additional modules. Unfortunately it´s not working this time. This is the error message i got when building php: checking for mSQL support... no checking for MSSQL s

  • Fm PROCESS_HU_INBOUND_DLVRY - no serial numbers added

    Dear experts, I am using function module PROCESS_HU_INBOUND_DLVRY to create and pack HUs in inbound delivery and also add serial numbers as there is appropriate parameter : I_HU_SERIAL_NR. The first two steps work fine, but NO serial numbers are adde