I'm working on an exit to achieve the following in the RRI jump.
The parent query has the time characteristic calendar year quarter and the child query has fiscal year period. the queries are on different info providers.
I want to derive the Fiscal year period value from the cal quarter value that is being passed by the parent query. Inorder to achieve this i have written the following code in Exit_SAPLRSBBS_001.
Please let me know if the code given below is right.TIA
Start of Modification
DATA: l_s_thx_mapping type rsbbs_sx_map_by_exit,
l_s_range type RRRANGESID.
DATA: v_year(4) type c, v_period(3) type c, v_quarter(1) type c.
<l_sx_mapping> TYPE rsbbs_sx_mapping.
IF i_s_receiver-ronam = 'E3VK86AXRVSOOAVJ68WHGDM3F'. "=> Jump target query name
Assign Cal Quarter Info Object to the Field Symbol and read the
table which holds the mapping derived from the system
read table i_thx_mapping with key fieldnm = 'CALQUARTER'
check sy-subrc = 0.
v_year = CALQUARTER+0(4).
v_quarter = CALQUARTER+4(1).
v_period = '003'.
v_period = '006'.
v_period = '009'.
v_period = '012'.
CONCATENATE v_year v_period INTO FISCPER.
l_s_thx_mapping-fieldnm_from = <l_sx_mapping>-fieldnm. "Source field
l_s_thx_mapping-fieldnm_to = 'FISCPER'."Target field
insert l_s_thx_mapping into table e_thx_mapping.