Skip to Content

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

Delete rows of IT using field symbol

Hi All,

I have a field symbol <fs_table> that points to a dynamically created internal table. And I have a field symbol <fs_wa> that points to each row in that table.

How do I delete a row from <fs_table> using <fs_wa>.

In short, I want to write something like

DELETE <fs_table> FROM <fs_wa>

But the above statement doesnot work.

Please suggest me a way of doing the same.

Any suggestions would be of great help.

Regards,

Ashish Walke

Tags:
Former Member
replied

Hi Ashish,

Don't worry about the performance as it is an internal table. I'm not able to test in on a system, but the code should be something like:

LOOP AT <table> INTO <wa>.

IF <condition>

delete <table> INDEX syst-tabix.

ENDIF.

ENDLOOP.

Regards,

John.

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