2008 Jul 25 8:43 AM
Hi,
I wanted to delete a record from a databse table.
but theat record is not getting deleted and the other records are gettng deleted....
can you help me pls
WHEN 'DELETE'.
LOOP AT IT_ZASSET . " WHERE SEL = 'X'.
delete IT_zasset index TC-CURRENT_LINE . "WHERE SEL = 'X'.
*MODIFY ZASSET FROM TABLE IT_ZASSET.
*DELETE FROM ZASSET WHERE EQUNR = IT_ZASSET-EQUNR..
DELETE ZASSET FROM INDEX SY-TABIX.
*MODIFY ZASSET FROM TABLE IT_ZASSET.
ENDLOOP.
COMMIT WORK.
2008 Jul 25 8:46 AM
You check the Demo program RSDEMO02.
It is handled in that. You can follow the same logic.
Hi,
I wanted to delete a record from a databse table.
but theat record is not getting deleted and the other records are gettng deleted....
can you help me pls
WHEN 'DELETE'.
LOOP AT IT_ZASSET . " WHERE SEL = 'X'.
delete IT_zasset index TC-CURRENT_LINE . "WHERE SEL = 'X'.
*MODIFY ZASSET FROM TABLE IT_ZASSET.
*DELETE FROM ZASSET WHERE EQUNR = IT_ZASSET-EQUNR..
DELETE ZASSET FROM INDEX SY-TABIX.
*MODIFY ZASSET FROM TABLE IT_ZASSET.
ENDLOOP.
COMMIT WORK.
2008 Jul 25 8:46 AM
You check the Demo program RSDEMO02.
It is handled in that. You can follow the same logic.