Expanding on the subject last touched upon, following are a few more examples of how data declarations have been updated.
For a method, originally parameters would have to be individually declared prior to usage. Any change in the method of a class would have affected all the reports and function modules using the specific method. However, if suitable coded, the new format eliminates that risk.
<object_reference>-><method_name>( importing <parameter_1> = DATA(<importing_parameter _1) ).
Just like internal tables and work areas, field symbols can be defined as well.
LOOP AT <internal_table> ASSIGNING FIELD-SYMBOL(<field_symbol>).
READ TABLE <internal_table> ASSIGNING FIELD-SYMBOL(<field_symbol>).
In the next post, we will cover table expressions.