on 09-07-2005 9:18 AM
Hi,
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Alexander,
could you provide an example please?
for example, if I have a code like this:
`repeat j from 1 to MYTABLE-MYCOLUMN1.dim`
MYTABLE-MYCOLUMN1[j] = "value1";
MYTABLE-MYCOLUMN2[j] = "value2";
`end`
and now assume, I want to delete the last row of the table, what would it look like?
`MYTABLE.deleteValue(MYCOLUMN1, j)` ???
kind regards, achim
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.