2007 May 30 5:32 AM
i need to delete the i_final internal table records whre exp = select options range, i have writtenthe code can u help me out in this.
l_exp_i LE s_date-high.
wa_final-ebeln = wa_ekko-ebeln.
wa_final-kdatb = wa_ekko-kdatb.
wa_final-kdate = wa_ekko-kdate.
wa_final-lifnr = wa_ekko-lifnr.
wa_final-exp = l_exp_i.
wa_final-ebelp = wa_ekbe-ebelp.
wa_final-matnr = wa_ekko-matnr.
wa_final-ktmng = wa_ekko-ktmng.
wa_final-consume = v_consume.
APPEND wa_final TO i_final.
CLEAR wa_final.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
DELETE i_final WHERE exp < s_date-low.
DELETE i_final WHERE exp > s_date-high.
i need to delete the i_final internal table records whre exp = select options range, i have writtenthe code can u help me out in this.
l_exp_i LE s_date-high.
wa_final-ebeln = wa_ekko-ebeln.
wa_final-kdatb = wa_ekko-kdatb.
wa_final-kdate = wa_ekko-kdate.
wa_final-lifnr = wa_ekko-lifnr.
wa_final-exp = l_exp_i.
wa_final-ebelp = wa_ekbe-ebelp.
wa_final-matnr = wa_ekko-matnr.
wa_final-ktmng = wa_ekko-ktmng.
wa_final-consume = v_consume.
APPEND wa_final TO i_final.
CLEAR wa_final.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
DELETE i_final WHERE exp < s_date-low.
DELETE i_final WHERE exp > s_date-high.
2007 May 30 5:34 AM
2007 May 30 5:35 AM
try something like this...
DELETE i_final WHERE exp not in s_date.
2007 May 30 5:35 AM
hi,
no need to write two statements.
just write
DELETE i_final WHERE exp not in s_date.
Message was edited by:
Sudha Rani Pathuri
2007 May 30 5:35 AM
Hi,
Just use
<b>DELETE i_final WHERE not exp in s_date</b>
-
Patil
2007 May 30 5:36 AM
Hi
you can try like this
delete table itab where not exp in s_date
regards
Shiva
2007 May 30 5:39 AM
Hi
You can use
<b>DELETE i_final where NOT exp IN <select_option>.</b>
Regards
Raj
2007 May 30 5:47 AM
hi,
DELETE i_final from wa_final where exp not in s_date.
or
DELETE i_final[] where exp not in s_date.
if helpful reward some points.
with regards,
suresh babu aluri.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |