Skip to Content
author's profile photo Former Member
Former Member

Query help while deleting row how to get row number..

hi..

i need a small information ..

i create a table in sql not sap b1 no link with sap b1..

ok ..

have a look on below image..

it is having two fields code , name..

in code is having 4 rows are empty.. ok..

delete from HRMSMASPOSITIONS where Code =''

if i use above query i can delete 4 rows..

actually it is doing correct.. what i need is.. bcz it is having 4 empty rows..

byy using position can i delete the row like row number something

above i am able to delete 4 rows instead of 4 rows i want to delete 1 row .

delete from table where psotion =1

like above can i do this one..

Query help.JPG (103.3 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Dec 26, 2013 at 05:30 AM

    Hi Srinivas,

    Try to read the row content using sy-index.Check the below example:

    READ TABLE HRMSMASPOSITIONS INDEX SY-INDEX INTO WORKAREA.

    DELETE TABLE HRMSMASPOSITIONS FROM WORKAREA.

    Regards,

    Pradeep.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.