Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Regarding READ Statement

Hi All,

I have a issue while using READ statement.

Issue IS:

In following Code

<b> SORT i_konv BY knumv.

LOOP AT i_ekbe INTO wa_ekbe.

CLEAR wa_konv.

READ TABLE i_konv WITH KEY knumv = wa_ekbe-knumv

kschl <> space

lifnr <> space

kwert <> space

BINARY SEARCH.

IF sy-subrc EQ 0.

ENDIF.

ENDLOOP.</b>

When i am checking syntax for above code it is giving error as <b>KSCHL <> SPACE LIFNR <> SPACE is not expected</b>.

Can anybody tell me what is the issue over here!

Thanks in advance.

Thanks & Regards,

Prasad.

Tags:
Former Member
Former Member replied

Hi prasad,

I dont think you can do <> comparison in READ statment.

Try

READ TABLE i_konv WITH KEY knumv = wa_ekbe-knumv BINARY SEARCH.

use IF after reading, for this comparison.

Regards,

Tanveer.

Mark helpful answers.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question