Ansicht
Dokumentation
ABENLOOP_GUIDL - LOOP GUIDL
CL_GUI_FRONTEND_SERVICES - Frontend Services BAL_S_LOG - Application Log: Log header dataThis documentation is copyright by SAP AG.
Loop Processing
Alongside the statements for processing individual lines in internal tables, other statements can be used to address and modify the entire body of the table. Examples:
- All categories of assignments applying to whole internal tables
- Deleting the whole of an internal table using CLEAR or FREE
- Operations in target ranges such as SELECT INTO TABLE
These types of accesses to the table body cause problems by producing a loop across the internal table
Do not modify the entire table body in a loop
You cannot use a loop across an internal table to perform accesses to the table that modify the entire table body at once.
A modifying access to the entire table body usually produces a runtime error and at the very least unpredictable program behavior. If this is known statically, a syntax error occurs within classes. This error also occurs in LOOP statements with a secondary key known statically when the table operations in question are used. Otherwise, the syntax check simply returns a warning for compatibility reasons.
Notes
- This rule is mainly intended to make you more aware of the problem. If you only work with ABAP Objects or if no syntax check warnings are ignored, the rule above should be met automatically.
- For more information, see Changing Internal Tables in a Loop.
BAL_S_LOG - Application Log: Log header data Addresses (Business Address Services)
This documentation is copyright by SAP AG.
Length: 1877 Date: 20240426 Time: 170846 sap01-206 ( 34 ms )