Hi Rodney
Raf is right. This line
IF WA_SOURCE_PACKAGE-VBTYP NE 'C' OR WA_SOURCE_PACKAGE-VBTYP NE 'I'.
will catch all records, because every record will satisfy the condition of VBTYP <> E OR VBTYP <> I. Even if a record has VBTYP = E, the IF condition will be true because the second part of the OR (VBTYP <> I) is true.
So the line needs to have an AND instead of OR.
Regards,
Suhas