Skip to Content
0
Former Member
Dec 26, 2007 at 04:41 AM

loop

26 Views

hi all,

may i know how to loop to check this.

hope to have the code.

thanks

table abc

fielda lot no fieldb status

123

123 x

123 x

123

LOOP AT itab.

va_tabix = sy-tabix.

(check against table abc base on [lot no]

if [status] in all records in table abc for the same lot '123' are 'x' then

DELETE itab INDEX va_tabix.

example of the table abc above only 2 records have 'x' so cannot delete itab.

ENDIF.)

ENDLOOP.