Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Delete single row from DBTAB

Hi Experts,

I want to delete a single row from DBTAB ( KLAH )

WHERE KLAHKLART = '2' and KLAHCLINT = '241'.

Please advice

Karthik

Former Member
Former Member replied

Hi ,

Try this code To delete single record from DB table- -

DATA : t_klah LIKE TABLE OF klah,
       fs_klah LIKE klah.
SELECT * FROM klah INTO TABLE t_klah
               WHERE klart = '2' AND
                     clint = '241'.
LOOP AT t_klah INTO fs_klah.
  DELETE klah FROM fs_klah .
  EXIT.
ENDLOOP.

Regards

Pinaki

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question