ABAP tricks #14/100: š Inline Declarations
- Smart Logic Academy
- Aug 19, 2024
- 1 min read
Updated: Apr 1
Recommendations for Using Inline Declarations:
ā¢The primary rule for inline declarations is, to use them only locally
ā¢Do not use inline declarations simply out of laziness
ā¢Do not reuse inline declared variables.
ā¢Do not use an inline declared variable far away from its definition.
Example:
data (Iv_var) = 'Hi everyone'.
write:/ lv_var.
data (Iv_var) = 'Welcome to the course on SAP ABAP new syntax'.
write:/ lv_var.
Please share with your ABAP friends and follow us.
If you want to dive deeper, visit our course https://www.udemy.com/course/sap-abap-new-syntax/?couponCode=ONLY4YOU9
Comments