on 04-19-2006 11:19 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.