problem deleting multiple goods reciepts
I have an internal with the all the purchase orders.
from this i have to display the po's for that goods is issued and goods reciept is not done within 8 days.
my problem when goods reciept is done multiple times and the total goods issued quantity is recieved with within 8 days.
i have to delete these records from my internal table.
the fields in my internal table are as shown below.
BEGIN OF I_LIST,
ZWERKS TYPE ZWERKS, "from
TO(4) TYPE C, " to
EBELN TYPE EKPO-EBELN, "purchase doc
MATNR TYPE EKPO-MATNR, "material
TXZ01 TYPE EKPO-TXZ01, "material doc.
EBELP TYPE EKPO-EBELP, "item
VBELN TYPE LIKP-VBELN, " delivery doc
BELNR TYPE EKBE-BELNR, " material doc shipment
BUDAT TYPE EKBE-BUDAT, " shipped date
SENGE TYPE EKBE-MENGE, "shipped quantity
RELNR TYPE EKBE-BELNR, "material doc shipment
RJAHR TYPE EKBE-GJAHR, "material doc year
RUDAT TYPE EKBE-BUDAT, "recieved date
RENGE TYPE EKPO-MENGE, "recieved quantity
DAYS TYPE I, " difference days between shipped and recieved dates
USNAM TYPE MKPF-USNAM, "reciever
BOLNR TYPE LIKP-BOLNR, "tracking #
END OF I_LIST.
days is calculated as below
IF I_LIST-RUDAT EQ 0.
I_LIST-DAYS = SY-DATUM - I_LIST-BUDAT.
I_LIST-DAYS = I_LIST-RUDAT - I_LIST-BUDAT.
if goods reciept is done multiple times and completed within 8 days should not be displayed( should be deleted from the internal table).
can anybody help me solve this issue.
Thanks & Regards,
Edited by: sudheer kumar on Sep 19, 2008 11:32 AM
Edited by: sudheer kumar on Sep 19, 2008 11:33 AM