cancel
Showing results for 
Search instead for 
Did you mean: 

RRI Exit

Former Member
0 Kudos

Hi,

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

METHOD IF_EX_SMOD_RSR00004~EXIT_SAPLRSBBS_001.

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.

FIELD-SYMBOLS:

<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'

assigning <l_sx_mapping>.

check sy-subrc = 0.

v_year = CALQUARTER+0(4).

v_quarter = CALQUARTER+4(1).

CASE v_quarter.

WHEN '1'.

v_period = '003'.

WHEN '2'.

v_period = '006'.

WHEN '3'.

v_period = '009'.

WHEN '4'.

v_period = '012'.

ENDCASE.

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.

ENDIF.

ENDMETHOD.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I have a similar scenario and trying to use the exit.

If you made it to work, could you please post the sample code.

Thanks in advance

SRK