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

hi all abap

hi all

i have following problem

READ TABLE ITAB_DEL INTO ITAB_DEL2 WITH KEY ZWERKS <> ITAB_ISEG-WERKS.

this read syntax does not take <> not equal expression.

what is the solution to take the records which does not fullfil the where condition.

thanx

rocky

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Mar 19, 2008 at 08:22 AM

    hi Rocky,

    you can only use equal with READ TABLE. if you need something else, you can do like:

    LOOP AT itab_del INTO itab_del2 WHERE zwerks NE itab_iseg-werks.

    ...

    ENDLOOP.

    hope this helps

    ec

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 19, 2008 at 08:27 AM

    Hi,

    You can achieve this by using the clause COMPARING. To know in detail about this, do an F1 on READ TABLE statement and then select READ TABLE-result -> READ TABLE - transport_options.

    Reward if helpful.

    Thanks

    Anil.

    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.