What is the wrong with my select query

HI All,
TYPES: BEGIN OF t_equi,
         equnr          TYPE equi-equnr,
         aedat          TYPE equi-aedat,
         matnr          TYPE equi-matnr,
         sernr          TYPE equi-sernr,
         kunde          TYPE equi-kunde,
         zzreg_date     TYPE equi-zzreg_date,
         zzin_indic     TYPE equi-zzin_indic,
         zzinvoice_num  TYPE equi-zzinvoice_num,
         zzinvoice_date TYPE equi-zzinvoice_date,
         kund1          TYPE equz-kund1,
      END OF t_equi,
DATA: it_equi        TYPE TABLE OF t_equi,
  SELECT equnr
         aedat
         matnr
         sernr
         kunde          "Ship to
         zzreg_date
         zzin_indic
         zzinvoice_num
         zzinvoice_date
         kund1            "Sold to
         INTO TABLE it_equi
         FROM equi AS a
         INNER JOIN equz AS b
         ON a~equnr = b~equnr
         WHERE a~equnr      IN s_equnr AND
*               aedat GE gv_rdate AND
               a~matnr      IN s_matnr AND
               a~sernr      IN s_sernr AND
               a~kunde      IN r_shpbr_kunde AND
               a~zzin_indic IN s_indic  AND
               b~datbi      EQ c_datbi  AND 
               b~kund1     IN r_sldbr_kund1 .
what is the wrong with this select query.. ?
its giving me error  "The column name "EQUNR" is unclear ."
Thanks

Hi ,
write  tablename or alias in select also
SELECT a~equnr and check.
Regards

Similar Messages

  • What is the deal with spry:selected

    spry:selected has no documentation with it and seems to be a totally forgotten tag.
    Can somebody explain it's use?

    I use it quite a bit for zooming in and out (by dragging up and down) but you have to be careful you don't move left or right when doing this as it then becomes a bit unpredictable as you say...
    If you just want to use the playhead for dragging left and right (and if you can't find a pref to turn it off) you'll just have to be careful to drag only in the horizontal axis and not up or down..
    Cheers
    Robo

  • What is the problem with this select include case

    i try to determine according to salary here is the sentence
    Select empno ,ename, sal, (case sal when sal<4000 then .05*sal
    when sal>4000 then .1*sal
    else 0 end) as "Required"
    from emp;
    it give me missing keyword erro
    thanks

    Hi,
    Try this:
    SQL> SELECT
      2  (CASE
      3      WHEN SALARY<4000 THEN .05*SALARY
      4      WHEN SALARY>4000 THEN .1*SALARY
      5      ELSE 0
      6   END
      7   ) REQUIRED
      8   FROM EMP;
      REQUIRED
           440
           650
          1000
           700
           900
           600
           480
           480
          1400
          1350
          1200
      REQUIRED
          1100
           800
           820
           790
           650
          1200
           900
           820
           770
          2400
    21 rows selected.
    SQL>
    Note: Please post your error message.
    Cheers,

  • What is the wrong with this small code of groupitems

    var msg =""
    if(app.documents.length > 0)
    var pgItems = app.activeDocument.pageItems;
    tot_obj=pgItems.length ;
    if( pgItems.length > 0 )
      var GroupItem =app.activeDocument.groupItems;
      total_Group = GroupItem.length;
       for(var a = 0;a<total_Group;a++)
        GroupItem[a].hidden=true;

    Use this code :
    app.activeDocument.groupItems[a].hidden=true;

  • What's wrong with my select?

    Hi! What's wrong with my select? The message I got is:
    "("has no closing ")"
    SELECT SINGLE iclclaim~claim
         INTO os_namir_stabi-claim
         FROM ( ( iclclaim
        INNER JOIN iclpoloau
          ON iclpoloauclaim = iclclaimclaim
        CLIENT specified
         WHERE iclclaim~client   = c_client1
         AND   iclpoloau~client   = c_client1
         AND iclpoloau~plateno = is_namir_stabi-plateno
         AND iclclaim~dateloss = is_namir_stabi-dateloss )
         INNER JOIN iclpartocc
          ON iclpartoccclaim = iclpoloauclaim
        CLIENT specified
         WHERE iclpartocc~client   = c_client1
           AND iclpartocc~bpartner = gv_bpartner ) .

    Please try it like this.  I'm pretty sure that you can not format your inner join with multiple where clauses.
    SELECT SINGLE iclclaim~claim
    INTO os_namir_stabi-claim
    FROM  iclclaim
          INNER JOIN iclpoloau
            ON iclpoloau~claim = iclclaim~claim
         INNER JOIN iclpartocc
            ON iclpartocc~claim = iclpoloau~claim
         WHERE iclclaim~client = c_client1
           AND iclclaim~dateloss = is_namir_stabi-dateloss
           AND iclpoloau~client = c_client1
           AND iclpoloau~plateno = is_namir_stabi-plateno
           and iclpartocc~client = c_client1
           AND iclpartocc~bpartner = gv_bpartner  .
    Regards,
    Rich Heilman

  • What has gone wrong with the equalizer on the latest update, every single one is all distorted

    what has gone wrong with the equalizer on the latest update, every single one is all distorted

    I had a similar-sounding problem with version 11.1.2.31 x64.  Every song I played sounded as if the speakers were being over-driven.  
    This problem was fixed after I installed the new verion: 11.1.2.32 x64.  I am using Windows 7, too.

  • What could be wrong with my iMac? When switched on the screen displays the apple logo with a busy bar at the bottom of the screen. This displays the progress of the computer trying to do something. To fill the bar takes about 30 mins and then switches off

    What could be wrong with my iMac? When switched on the screen displays the apple logo with a busy bar at the bottom of the screen. This displays the progress of the computer trying to do something. To fill the bar takes about 30 mins and then switches off

    Which OS X is installed?

  • Performance issue after Upgrade from 4.7 to ECC 6.0 with a select query

    Hi All,
    There is a Performance issue after Upgrade from 4.7 to ECC 6.0 with a select query in a report painter.
    This query is working fine when executed in 4.7 system where as it is running for more time in ECC6.0.
    Select query is on the table COSP.
    SELECT (FIELD_LIST)
            INTO CORRESPONDING FIELDS OF TABLE I_COSP PACKAGE SIZE 1000
            FROM  COSP CLIENT SPECIFIED
            WHERE GJAHR IN SELR_GJAHR
              AND KSTAR IN SELR_KSTAR
              AND LEDNR EQ '00'
              AND OBJNR IN SELR_OBJNR
              AND PERBL IN SELR_PERBL
              AND VERSN IN SELR_VERSN
              AND WRTTP IN SELR_WRTTP
              AND MANDT IN MANDTTAB
            GROUP BY (GROUP_LIST).
       LOOP AT I_COSP      .
         COSP                           = I_COSP      .
         PERFORM PCOSP       USING I_COSP-_COUNTER.
         CLEAR: $RWTAB, COSP                          .
         CLEAR CCR1S                         .
       ENDLOOP.
    ENDSELECT.
    I have checked with the table indexes, they were same as in 4.7 system.
    What can be the reson for the difference in execution time. How can this be reduced without adjusting the select query.
    Thanks in advance for the responses.
    Regards,
    Dedeepya.

    Hi,
    ohhhhh....... lots of problems in select query......this is not the way you should write it.
    Some generic comments:
    1. never use SELECT
                       endselect.
       SELECT
      into table
       for all entries in table
      where.
       use perform statment after this selection.
    2. Do not use into corresponding fields. use exact structure type.
    3. use proper sequence of fields in the where condition so that it helps table go according to indexes.
        e.g in your case
              sequence should be
    LEDNR
    OBJNR
    GJAHR
    WRTTP
    VERSN
    KSTAR
    HRKFT
    VRGNG
    VBUND
    PARGB
    BEKNZ
    TWAER
    PERBL
    sequence should be same as defined in table.
    Always keep select query as simple as possible and perform all other calculations etc. afterwords.
    I hope it helps.
    Regards,
    Pranaya

  • HT204075 What has gone wrong with Apple Mail???

    Mail is probably the most used application.
    Apple Mail used to be superb.  Now it randomly stops working saying my log in details are incorrect.  Then it may start working again a day later without any changes.  This never happened before Yosemite.
    What is wrong?  Is it a problem with Apple OS or iOS?  Is it a problem with my mail service provider? 
    It has reached the point where I have had to revert to collecting mail via Internet explorer on my old Microsoft Windows laptop rather than my iMac.   

    Thank you ...
    I have full internet connection. My iPads still work although the accuracy of the interpreted dictation is very questionable.
    There is no response to any dictation added, say to pages without enhanced being selected : Here below is this sentence dictated without enhanced
    ...(see nothing!)
    here is the sentence with enhanced selected
    There is no response to any dictation and say to pages with at heart being some active???
    Typed > Theory Of Constraints
    Dictated > Theory of concert
    Earlier I have been showing people (all around the world) how effective this system - now it's just not worth using, (this example above is actually better than it was earlier today).

  • What is the problem with this Stored Procedure

    Hi ,
    What is the problem with this Stored Procedure ?Why is it giving errors ??
    CREATE or replace  PROCEDURE getEmpName
    *(EMP_FIRST OUT VARCHAR2(255))*
    BEGIN
    SELECT ename INTO EMP_FIRST
    FROM Emp
    WHERE EMPNO = 7369;
    END ;
    */*

    You don't specify precision in procedure arguments.
    (EMP_FIRST OUT VARCHAR2(255))should be
    (EMP_FIRST OUT VARCHAR2)Since you asked what's wrong with it, I could add that it needs formatting and the inconsistent use of upper and lower case is not helping readability.

  • What is the problem with native dynamic sql when counting rows in all table

    what is the problem with native dynamic sql when counting rows in all table?Giving an error "table or view does not exist". Thanks.
    DECLARE
    v_sql_string varchar2(1000);
    v_no_of_rows number;
    BEGIN
    for i in ( select table_name from all_tables )
    loop
    v_sql_string := ' select count(1) from ' || i.table_name;
    dbms_output.put_line( v_sql_string );
    --execute immediate v_sql_string into v_no_of_rows;
    end loop;
    END;

    Usually your problem can be described with 'Who cares'. I mean, for what reason do you do this? I doubt that there's a business need to get 100 % accurate answers for this. Normally such things are used to get a picture about the growth of data.
    Personally I would prefer to have up-to-date statistics for all tables and just query the number of rows from there. Sufficient for me in < 99 % of all cases.
    Just my $ .02...

  • To lock the output of a SELECT query

    Hi,
    I want to lock the output of a SELECT query to some transaction.
    I have wriiten it as follows , the output of the query is a single row;
    SELECT empname
    FROM employees
    where empid = 100
    FOR UPDATE;
    Specifying only FOR UPDATE is proper or do i need to specify some more clause ??
    Thanks.

    bscalzo wrote:
    You can also specify the columns to lock if you like:
    select x, y, z from aaa where x = 1 for update of x, y;
    But the locking is still currently only done at the row level - but who knows what the future might offer. May not hurt to have the columns named for thay day when the syntax and engine sync up :)It might be worth to amend that specifying the columns is already particularly relevant if you select from multiple tables/views in order to specify which rows of which table/view to lock.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • What is the wrong in this PL/SQL  block

    Hi a...
    Can you please tell what is the wrong in this pl/sql block.
    declare
    TYPE TYP_NT_NUM IS TABLE OF NUMBER ;
    v_tab TYP_NT_NUM := TYP_NT_NUM();
    TYPE uname is VARRAY(30) of varchar2(100) ;
    usr uname := uname ( 'u1','u2','u3','u4' );
    TYPE pwd is VARRAY(30) of varchar2(100) ;
    psw pwd := pwd('p1','p2','p3','p4');
    x number(10):=0;
    Cursor fcid IS Select distinct FC_ID From FCMASTER ;
    Begin
    Open fcid ;
    --for ii in usr.first .. usr.last loop
         Loop
              Fetch fcid Into x ;
              Exit When fcid%NOTFOUND ;
              v_tab(fcid%ROWCOUNT) := x ;
         End loop ;
         For iii IN v_tab.FIRST .. v_tab.LAST Loop
              dbms_output.put_line(v_tab(iii).FC_ID) ;
              End loop ;
    End loop; End of outer loop
    End;
    The error is
    Error
    [row:28,col:36] ORA-06550: line 28, column 36:
    PLS-00487: Invalid reference to variable 'NUMBER'
    ORA-06550: line 28, column 4:
    PL/SQL: Statement ignored
    Thanks in advance,
    Pal

    v_tab(iii).FC_ID
    declare
      type typ_nt_num is table of number;
      v_tab typ_nt_num;
    begin
      select distinct object_id bulk collect into v_tab from all_objects where rownum <= 10;
      for i in 1 .. v_tab.count loop
        dbms_output.put_line(v_tab(i)) ;
      end loop ;
    end;
    /

  • What is the wrong in code while creating a container

    Hello all,
    what is the wrong in code while creating container.
    *& Report  ZTEST_TREE4
    REPORT  ztest_tree4.
    *       CLASS lcl_application DEFINITION
    CLASS lcl_application DEFINITION CREATE PRIVATE.
      PUBLIC SECTION.
        CLASS-METHODS: run_application.
        METHODS constructor.
      PRIVATE SECTION.
        CLASS-DATA: s_container TYPE REF TO cl_gui_simple_container.
        DATA: container TYPE REF TO cl_gui_simple_container.
    ENDCLASS.                    "lcl_application DEFINITION
    *       CLASS lcl_implementation DEFINITION
    CLASS lcl_application IMPLEMENTATION.
      METHOD run_application.
        IF lcl_application=>s_container IS INITIAL.
          CREATE OBJECT lcl_application=>s_container.
        ENDIF.
      ENDMETHOD.                    "run_application
      METHOD constructor.
        CREATE OBJECT container.
      ENDMETHOD.                    "constructor
    ENDCLASS.                    "lcl_implementation DEFINITION
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE status_0100 OUTPUT.
      CALL METHOD lcl_application=>run_application.
      SET PF-STATUS 'CO_100'.
      SET TITLEBAR 'CO_100'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE user_command_0100 INPUT.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Module  exit  INPUT
    *       text
    MODULE exit INPUT.
      LEAVE PROGRAM.
    ENDMODULE.                 " exit  INPUT
    START-OF-SELECTION.
      CALL SCREEN 100.
    regards,
    Lisa.
    Edited by: Lisa Roy on Mar 6, 2008 10:15 AM
    Edited by: Lisa Roy on Mar 6, 2008 10:29 AM

    Hi Lisa,
    a container must be placed in a respective screen area. Also the module calls must be implemented in your screen input and output sections. Finally you have to place something (a GUI control) in your container.
    I do not see anything like this in your program. So I don't know what you are asking about. Do you get any error message?
    Regards,
    Clemens

  • Photo shop is not allowing me to use the "Intersect with current selection"

    Photoshop is not allowing me to use the "Itersect with current selection" marquee. (The "UNION" between two selection marquees.) When I press the [Shift] + [Option] keys while dragging on a first selection marquee, this just creates a new selection and removes the old selection. I have also tried using the "intersect with selection" icon which is not working either.

    Lack of experience possibly'.
    To get the 360 degree scroll you need to be 'zoomed in' closer (than 1:1) to a picture or web page so that it is too large to fit on your screen.
    As you know, with Windows you need, at all times' to scroll the bars at the bottom and/or right of the screen to move the display around (a little like an altazimuth telescope is manouvred). Also, if you accidently leave the scroll bar when dragging, the screen immediately snaps back to where you started from rather than knowing how far down you got before your cursor moved off the bar (if it did). You are certain to know what I mean.
    If you are similarly 'zoomed in' to a picture on your new Mac, you don't necessarily need to click and drag on the scroll bars at the bottom (or right) of the window, or use the scroll wheel to move the screen vertically. With your Mac, when zoomed in to a greater than 100%, the mouse allows one toscroll 360 degrees with the mouse - not just vertically. But the picture (or web page needs to be zoomed in somewhat - i.e. greater than 1:1)
    With Web pages in Safari and any other Web Browser (with the possible exception of IE with which I have had no experience with sometime before 2002 and I have only 'heard' that it doesn't work ), if you use the keys 'cmd and '+" together.
    At he end of the day, you just need to keep exploring your new Mac and have fun finfing all the added extras for yourself.
    (There's do many little treasures, it just gettng the time to find them all, in my experience.)

Maybe you are looking for

  • [SOLVED] RAID status

    Last night I created a raid5 array using mdadm and 5 x 3TB hdd's.  I let the sync happen overnight and on returning home this evening watch -d cat /proc/mdstat returned: Personalities : [raid6] [raid5] [raid4] md0 : active raid5 sda1[0] sdc1[2] sde1[

  • How to create context sensitive help and call the role based help from my Java Project?

    Hello All, I am new to Robo Help. I have created a Robo help for my Java Web Applicaion. My application is role base i.e some user's will not see some of the pages of the application. So I want to hide those pages in Robo help as well. I tried creati

  • Verizon Update to iphone 5

    I got a notice lastnight that there was a carrier update, and did it..... this was going to fix the 3g - over to 4g lte - it did not. My understanding was this should fix turning off and on LTE service,,,, Don't work, also I have and issue on wifi or

  • Referencing single cells in formulas

    Hello there. Let us assume the following expression: =$D$4 What I am doing: 1. Select a cell and tap twice to show the keyboard. 2. Tap = 3. Tap cell D4. The input panel shows D4 with an arrow. 4. Tap the arrow and select Start: preserve row and pres

  • HT4479 Credit card security code not accepted when trying to sign into App Store for the first time

    I have just signed up for an Apple ID. I want to download Twiter for Mac from the App Store. When I try to log in, it tells me this is the first time I have tried using this ID and asks me to register my credit card details. I have entered all the in