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

tables

I want to read 200 registers of a table into an internal table, but 50 are limited to 90 kwh, 50 >90 kwh and <100kmw,....

ex:

select * into ita_reg from z where cod < 90.

endselect.

select * into ita_reg from z where (cod < 100 and cod >90).

endselect.

...

how can i do it?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jan 20, 2005 at 04:37 PM

    can you use the "UP TO n ROWS" extension?

    Regards,

    Rich Heilman

    Message was edited by: Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 20, 2005 at 04:40 PM

    You can use Ranges

    RANGES wa_z FOR marc-matnr.

    CLEAR wa_z.

    wa_z-sign = 'I'.

    wa_z-option = 'BT'.

    wa_z-low = 90.

    wa_z-high = 100.

    APPEND wa_z.

    Then:

    Select *

    INTO TABLE ita_reg

    FROM z

    WHERE cod IN wa_z.

    Hope this works for you.

    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.