Not sure if you can do that in select statement. But rather get all the data first and process after select.
Sample:
select a b c
into table i_table.
Loop i_table.
delete i_table where a CP '1234565' (Depends on your condition).
Endloop.
Not sure if you can do that in select statement. But rather get all the data first and process after select.
Sample:
select a b c
into table i_table.
Loop i_table.
delete i_table where a CP '1234565' (Depends on your condition).
Endloop.