The SAP BW query exit RSR00001 is an Enhancement for Global Variables in Reporting. It is called up several times
during the execution of a report. The parameter I_STEP is populated with a number from 0 to 3 to specify at what point the enhancement is being called.
i.e.
If I_STEP = 1, then Call has taken place directly before any variable variable entry has been made. This can be used to pre populate selection variables
If I_STEP = 2, then then call has taken place directly after variable entry. This step is only started up when a variable is not input ready and could not be filled when I_STEP was equal to 1.
If I_STEP = 3, you can check the values of the variables. Triggering an exception (RAISE) causes the variable screen to appear once more. Afterwhich, I_STEP=2 is also called again.
If I_STEP = 0, then the enhancement is not called from the variable screen. The call can come from the authorization check or from the Monitor.
SAP BW Query Exit to populate authorisation dynamically