The START-OF-SELECTION event must be defined in the MDR Main report. However, unlike standard ABAP reports this event does nothing except execute an MDR statement. This statement must immediately follow the START-OF-SELECTION keyword and nothing else should follow it. In effect, this single MDR statement begins processing the entire report. The following is a sample of how the START-OF-SELECTION event should appear:
*---------------------------------------------------------------------------------*
* START-OF-SELECTION event
*---------------------------------------------------------------------------------*
START-OF-SELECTION.
mdr_program_initialize.
This statement will begin execution of the MDR program. Intervals will be generated (or retrieved) and one or more jobs started. For each interval, the interval processing subroutine will be called (defined next).
Post your comment on this topic.