Skip to Content
author's profile photo Former Member
Former Member

HOW TO FIX WARNING "SELECT QUERY"

TABLES:FEBEP.

the query is

select kukey esnum kwbtr partn pablz from FEBEP into corresponding fields of FEBEP.

CODE INSPECTOR GIVES ME ERROR LARGE TABLE SPECIFY WHERE CLAUSE.BUT I CAN'T SPECIFY WHERE CLAUSE.

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 18, 2006 at 06:27 AM

    TABLES:FEBEP.

    select kukey esnum kwbtr partn pablz from FEBEP into corresponding fields of FEBEP

    WHERE key1 = c1

    AND key2 = c2

    ...

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi

      Your error message suggests that you are trying to select too much data, so a couple of questions first:

      1. Why can you not specify a Where clause?

      2. How many records are held in FEBEP on your system?

      You are also selecting ALL of the fields from this table - I am sure you do not need ALL of them for your needs so I would suggest trying to create an itab based on a just those fields that you are actually going to use, for example:

      TYPES:
        BEGIN OF ty_febep,
          kukey LIKE febep-kukey,
          esnum LIKE febep-esnum,
        END OF ty_febep.
      
      DATA:
        i_febep TYPE STANDARD TABLE OF ty_febep.
      
      SELECT kukey esnum
      INTO TABLE i_febep
      FROM febep.
      

      This might help but I suspect it is more to do with not having a Where condition.

      Let me know how you get on.

      Kind regards

      Andy

  • author's profile photo Former Member
    Former Member
    Posted on Oct 18, 2006 at 10:24 AM

    Hi Anil,

    (You can hide the message using "#EC *).

    Reward if this helps.

    Manish

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 18, 2006 at 11:08 AM

    hi

    good

    it might be you r selecting and puttiong the dta in the same table.

    thanks

    mrutyun^

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 18, 2006 at 11:48 AM

    Hi,

    Instead of using Single select query, use Select....Endselect.

    Select ............. into work_area....

    Append itab from work_area

    endselect.

    If it works, please reward.

    Thanks

    Prem

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.