Code for Record Processing
Use
If you want to perform calculations or other operations not associated with additional fields when processing data records in a loop, use the code for record processing.
The code is a standard component of every query report generated for an InfoSet without an underlying database. It is transparent to the user when maintaining queries.
When you get to the field group maintenance screen, choose . This takes you to a screen that displays any existing code for record processing. It also displays or proposes (if new) the allocated sequence.
The code for record processing is placed, together with the code for additional fields and SELECT statements for additional tables, in the section of the generated query report containing the loop processing of data records. The sequence specifications control the order within this section. Usually, the code for record processing is used for initialization purposes and appears before the additional fields and SAP tables. For this reason, the system proposes 0 as the sequence number.
On the screen for defining the code for record processing, you can thus perform the same operations as when you define the GET/GET LATE code (see GET/GET LATE Code).
New Times for Code
Code can now be created for the ABAP events INITIALIZATION and AT SELECTION-SCREEN OUTPUT. This means there are new options allowing you to alter the contents of the selection screen. These coding segments are maintained in the same way as all other coding segments.

