11-15-2007 12:21 PM
Hello.
I want to know if it's possible to delete or update a line in a range ? If yes, what instruction do i use ?
I tried to read it like an internal table but find the line i want but it doesn't work.
Thanks for any help on this !
11-15-2007 12:31 PM
Yes..you can do like this...
for example...
LOOP at s_week.
IF s_week-low GT 30. "or you can put condition on s_week-high
s_week-low = '30'.
modify s_week index sy-tabix.
ENDIF.
ENDLOOP.
"OR
LOOP at s_week.
IF s_week-low GT 30.
DELETE s_week.
ENDIF.
ENDLOOP.
Message was edited by:
Perez C
11-15-2007 12:31 PM
Yes..you can do like this...
for example...
LOOP at s_week.
IF s_week-low GT 30. "or you can put condition on s_week-high
s_week-low = '30'.
modify s_week index sy-tabix.
ENDIF.
ENDLOOP.
"OR
LOOP at s_week.
IF s_week-low GT 30.
DELETE s_week.
ENDIF.
ENDLOOP.
Message was edited by:
Perez C
11-15-2007 12:35 PM
Hi,
Try this:
Loop at it_range.
if condition.
Delete/modify it_range .
endif.
endloop.
Rgds,
Sandeep
11-15-2007 12:36 PM
hi Helder,
do like:
READ TABLE range INTO ....
WITH KEY ...
do your modification
MODIFY range FROM ... INDEX sy-tabix.
hope this helps
ec