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

Dynamic where condition

Hi all,

I am using dynamic where condition in an internal table as shown below.

SELECT * FROM ztprppk10

INTO CORRESPONDING FIELDS OF TABLE ldt_ztprppk10

WHERE eflg EQ lcf_e

AND err GE lcf_5

AND rflg EQ space

AND dflg EQ lcf_c

AND bwart EQ lcf_202

AND (ldt_selection).

The internal table contains a filed of type c and maximum length of 72.The probelm is when the lines of internal table exceeds 1000(in my senario it was around 6000 lines), i am getting dump. But if the number of lines less than 1000 like 600 i am able to execute the program.

Pls tell what could be the probelm.

Regards,

Sunil

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 06, 2005 at 07:01 AM

    Hi,

    Take a look at RANGES....size limit and SAP Note 635318 regarding SIZE LIMIT issues.

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 06, 2005 at 11:08 AM

    Sunil,

    6000 lines in a where-clause ?!

    -that's brutal for the DB.

    -> so plz use <i>for all entries</i>

    or <i>loop at ldt_selection</i>

    Andreas

    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.