Sunday, 13 May 2012

How to delete lines in internal table? | SAP-ABAP

    delete statement can be used to delete single or more lines from the internal table using index.
=>    Deleting a single line--The following statement is used for deleting a single line:
 delete itab [index <indx>]
In the above syntax, the delete statement is used to delete the line from the internal tabo <itab> which corresponds to the index <indx> and reduces the subsequent lines by 1.
=>    Deleting several lines--In order to delete more lines, the following statement is used:
 delete itab [from <n1> to <n2>] where <cond>
In the above syntax, delete statement is used to delete all lines from index <nl> to <n2> which satisfies the given condition.

No comments: