3/31/2023 0 Comments Delete itab from itab abap![]() ![]() The DELETE statement is used to delete the lines from mytable where the value of the ColP key field is either 1 or 3. ![]() The ColQ contains the values 5, 6, 7, 8, 9, 10, 11 and 12 because the ColP values are incremented by 4 every time. Initially, mytable is populated with eight lines, where the ColP contains the values 1, 2, 3, 4, 5, 6, 7 and 8. In this example, mytable has two fields, ColP and ColQ. The above code produces the following output − key fields then the SAP system automatically converts them into the compatible format. The DELETE statement is used to delete the records or lines of the table based on the expressions =, =. You may also specify a table key explicitly in the DELETE TABLE statement by using the following syntax −ĭELETE TABLE WITH TABLE KEY = ………… =. The delete operation is performed on the basis of a default key that could be taken from the work area components. ![]() In the above syntax, the expression is a work area and it should be compatible with the type of the internal table. If an internal table has a non-unique key and contains duplicate entries, the first entry from the table is deleted.įollowing is the syntax to use the DELETE statement to delete a record or line from an internal table − The records of an internal table are deleted either by specifying a table key or condition or by finding duplicate entries. The DELETE statement is used to delete one or more records from an internal table. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |