Skip to Content
0
Former Member
Jun 26, 2008 at 04:05 AM

Delete modify in itab

16 Views

hi,

i am not able to delete data from internal table from a

date to date as 20.05.2006 to 25.05.2006

plz give me information for this

i used it by selection screen

SELECT-OPTIONS: s_ordid FOR zapolp22-ordid,

s_matnr FOR zapolp22-matnr,

s_locto FOR zapolp22-locto.

PARAMETERS: p_days TYPE i.

data: lv_date type DATS.

SELECT mandt

ordid

schedid

matnr

locto

lfmng

lfdat

locfr

rqmng

rqdat

prckz

blkstk

oppdelqty

zzapologmod

zzflagurgent

zzapottype

zzndays_l_time

FROM zapolp22 INTO TABLE lt_output

WHERE ordid IN s_ordid AND

matnr IN s_matnr AND

locto IN s_locto.

lv_date = sy-datum - p_days.

DELETE zapolp22 FROM lt_output.

IF sy-subrc = 0.

WRITE:/ 'Data Deleted'.

endif.

plz tell me where i can declare the lv_date in programm that it can delete data according to date to date.

thanks jayant