Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Delete

Former Member
0 Kudos
151

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos
127

DELETE from DDTAB WHERE PICK = 'X'.

regards

shiba

8 REPLIES 8

Former Member
0 Kudos
127

You can use:

delete FROM dbtab where...

I hope to help you!

Former Member
0 Kudos
127

u need to mention all the primary keys in the where condition.

Ramesh.

Former Member
0 Kudos
128

DELETE from DDTAB WHERE PICK = 'X'.

regards

shiba

0 Kudos
127

Use statement

DELETE from DDTAB WHERE PICK = 'X'.

Former Member
0 Kudos
127

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

Former Member
0 Kudos
127

Hi,

Use

DELETE from DDTAB WHERE PICK = 'X'.

Regards,

GSR.

Former Member
0 Kudos
127
PARAMETERS p_carrid TYPE sflight-carrid. 

DELETE FROM sflight 
WHERE  carrid = p_carrid AND 
       fldate = sy-datum AND 
       seatsocc = 0.

Former Member
0 Kudos
127

Mark ,

Use below syntax.

DELETE TABLE <itab> WITH TABLE KEY <k1> = <f 1> ... <k n> = <f n>.

Pls. mark if useful.