Skip to Content
avatar image
Former Member

How to delete a table row in the context?


I've got a table in my context that I access with <TABLE-NAME>-<TABLE-COLUMN>[index].

For example <TABLE-NAME>-<TABLE-COLUMN>.dim delivers the amount of entries in this table.

Now I want to delete a specific row in this table without any ABAP-code. Is there a possibility to do this?

I tried to set the .dim = <old dimvalue - 1>, but the row seems to still exist, it's just empty.

There must be a method like 'delete', or am I wrong...?

kr, achim

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Sep 12, 2005 at 11:52 AM

    Hi Achim,

    "Dim" is, in essence, a read-only property, so you should not modify it directly. To delete a row in a table, use deleteValue(name, index) function, which is defined in SAPXJutil.dll file.

    I hope this helps.

    Kind regards,

    Alexander Pohoyda

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Achim!

      Sorry, I didn't watch this topic.

      In your example you would write:

      deleteValue("MYTABLE-MYCOLUMN1", MYTABLE-MYCOLUMN1.dim);

      deleteValue("MYTABLE-MYCOLUMN2", MYTABLE-MYCOLUMN2.dim);

      Kind regards,

      Alexander Pohoyda

      SAP AG, ITS Development Team