A Walk through on New and Old Abap Syntax
With release 7.40 and 7.50 several new ABAP language elements have been introduced. Learning them in theory is one thing, using them in daily life quite another. While working on that, the idea of an overview sheet came up, comparing “old” and “new” syntax, in the form of: “When i notice things are done in this “old” way, can we use some new elements here?” This overview is meant to be printable, to have it right on the desk or wall beside you for a quick reference. And one more thing, i do not mention or care about releases and service packs here. Depending on your system, some or all of the new features will not be available. Old ABAP New ABAP DATA and FIELD-SYMBOLS declarations Inline declarations MOVE CORRESPONDING Constructor expression CORRESPONDING , or CL_ABAP_CORRESPONDING struc1-field1 = struc2-fielda struc1-field2 = struc2-fieldb … Constructor expression CORRESPONDING , or CL_ABAP_CORRESPONDING ; Constructor expression VALUE CREATE...