Skip to Content
0
Former Member
Jun 08, 2008 at 09:55 AM

can put condition in read statement for a particular fild please suggest?

11 Views

hi i have a requirement as belo

1 ) i am reading a table with read statement now i want to read with one more condition like

where status<> Z

to add to this read statement as below can i add the above condition to the below statement?? let me know

how to check on this one more condition in below read statement

loop at itrecord1 into wa_Record

READ TABLE it_main INTO wa_inv_master WITH KEY

/' CUSIP = wa_record-primarykeyfield1 BINARY SEARCH.

here one more condition i need to put whilereading that where statu <>z which is best way todo

IF SY-SUBRC = 0.

APPEND wa_record TO itrecord1.

clear wa_record.

else.

APPEND wa_record TO itrecord2.

clear : wa_record.

ENDIF.

ENDLOOP.

so how to put the condition in above statment can put in the read statement as that is most convinient will that work?

regards

arora