Dear Gurus,
I need to fill a customer exit 0FISCPER variable. The code given below did not work at i_step2 but it worked in i_step3. Can someone explain why and how?
******************Below code did not work for i_step2 but worked for i_step3***********************************************
CASE i_vnam.
WHEN 'ZCEV_OP_BAL1'. " Variable of type Customer Exit ( this is added in the Query)
if i_step = 3.
loop at i_t_var_range into loc_var_range where vnam = 'ZV_FY_PER'. " Variable of type User Entry (fiscper)
zcalyear = loc_var_range-low+0(4). "take only year
zcalyear = zcalyear - 1.
l_year2+0(4) = zcalyear.
l_year2+4(3) = '016'. " now l_year2 is the previous year with period 16
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
l_s_range-low = l_year2.
append l_s_range to e_t_range.
endloop.
endif.
********************************************************************************************************************************************
To supply value to a customer exit variable do we need to use i_step2 or i_step3??
Please do clarify.
I have already gone through the given below in help.sap.com,its no where mentioned where to fill the customer exit variable!!!!
The following values are valid for I_STEP:
Call takes place directly before variable entry
Call takes place directly after variable entry. This step is only started up when the same variable is not input ready and could not be filled at I_STEP=1.
In this call, you can check the values of the variables. Triggering an exception (RAISE) causes the variable screen to appear once more. Afterwards, I_STEP=2 is also called again.
The enhancement is not called from the variable screen. The call can come from the authorization check or from the Monitor.