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