cancel
Showing results for 
Search instead for 
Did you mean: 

Reab table using a range value

Former Member
0 Kudos

Hello Experts,

Is it possible to use a range value in "Read table [itab] ...." statement?

I need to do like this..

read table t_docs with key vbeln = wa_output-vbeln
                           matnr = wa_output-matnr
                           spmon in r_spmon.

I know that, alternatively, this can be achieved by loop ......endloop.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Nope..this is not possible in READ TABLE..as you have mentioned..you have to use loop at..

LOOP AT itab WHERE .. IN ...
    EXIT.
 ENDLOOP.

Thanks

Naren

Answers (1)

Answers (1)

former_member156446
Active Contributor
0 Kudos

Nope no Logical comparison in read statement.

I am sure this would be some thing we can look in ABAP 7.0

Former Member
0 Kudos

Thnx Guys for the replies. I guess I can close this thread.