2007 Jan 11 10:11 AM
Hi Friends,
What is the error in this code?
DELETE DDTAB WHERE PICK = 'X'.
(DDTAB is the database table).
I am getting an error.
Kindly let me know what is wrong with this code.
Regards,
Mark K
2007 Jan 11 10:14 AM
2007 Jan 11 10:13 AM
2007 Jan 11 10:13 AM
u need to mention all the primary keys in the where condition.
Ramesh.
2007 Jan 11 10:14 AM
2007 Jan 11 10:15 AM
2007 Jan 11 10:16 AM
hi Mark,
It should be
DELETE FROM DDTAB WHERE PICK = 'X'.
... Even include all the key fields in the statement in order to avoid redundancy while deleting the records from database ..
Regards,
Santosh
2007 Jan 11 10:16 AM
2007 Jan 11 10:17 AM
PARAMETERS p_carrid TYPE sflight-carrid.
DELETE FROM sflight
WHERE carrid = p_carrid AND
fldate = sy-datum AND
seatsocc = 0.
2007 Jan 11 10:17 AM
Mark ,
Use below syntax.
DELETE TABLE <itab> WITH TABLE KEY <k1> = <f 1> ... <k n> = <f n>.
Pls. mark if useful.