SAP INLINE DECLARATIONS



Get Example source ABAP code based on a different SAP table
  


VERSION 5 IN

Inline Declarations
An inline declaration is performed using a declaration operator in a declaration expression in a declaration position. The result of the declaration is used in the current operand position, is visible statically as of the current position and is valid in the current context.
SUBNODES



Latest notes:

NON_V5_HINTS
Inline declarations are intended to make programs leaner and more readable. The following rules must also be observed:
The rule that no global variables and field symbols should be declared means that inline declarations should only be made in processing blocks that support local data.
Inline declarations are an exception to the rule that local declarations should only be made at the start of a procedure. For this reason, they should only be used in manageable procedures to improve their readability.
ABAP_HINT_END

ABAP_PGL
Only use inline declarations locally
ABAP_PGL_END