Application Development and Automation 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: 
Read only

Delete

Former Member
0 Likes
982

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
Read only

Former Member
0 Likes
958

DELETE from DDTAB WHERE PICK = 'X'.

regards

shiba

8 REPLIES 8
Read only

Former Member
0 Likes
958

You can use:

delete FROM dbtab where...

I hope to help you!

Read only

Former Member
0 Likes
958

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

Ramesh.

Read only

Former Member
0 Likes
959

DELETE from DDTAB WHERE PICK = 'X'.

regards

shiba

Read only

0 Likes
958

Use statement

DELETE from DDTAB WHERE PICK = 'X'.

Read only

Former Member
0 Likes
958

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

Read only

Former Member
0 Likes
958

Hi,

Use

DELETE from DDTAB WHERE PICK = 'X'.

Regards,

GSR.

Read only

Former Member
0 Likes
958
PARAMETERS p_carrid TYPE sflight-carrid. 

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

Former Member
0 Likes
958

Mark ,

Use below syntax.

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

Pls. mark if useful.