Requires Free Membership to View
When you register, you will start receiving targeted emails from my award-winning team of editorial writers. Our goal is to keep you informed on the hottest topics and biggest challenges faced by SAP professionals today.
Hannah Smalltree, Editorial Director
DATA. lp_data TYPE REF TO DATA. FIELD-SYMBOLS:TYPE ANY, TYPE ANY. CREATE DATA lp_data LIKE LINE OF . ASSIGN lp_data->* to . ASSIGN COMPONENT 'FIELD1' OF STRUCTURE TO . LOOP AT INTO . CHECK EQ 'X'. DELETE TABLE FROM . ENDLOOP.
Another possibility is to use, for example, with a table that has key fields kf1 and kf2:
With fully specified keys this is very efficient for HASHED tables, somewhat efficient for SORTED tables, and not very efficient, usually, for STANDARD tables.
As ever, what you actually write depends on precisely what you are trying to achieve.
DELETE TABLE
This was first published in April 2008