on 02-25-2014 11:10 AM
Hi Experts,
How to write Customer Exit.
Example -- User enter year- 2013
Then I want to display fiscal period 001.2013 to 004.2014.
If user enter - 2012
Then I want to display fiscal period 001.2012 to 004.2013.
I want to write customer exit, where user enters year dynamically, then I want to display fiscal periods
Thanks
Sunil
Hi Suil ,
You can write below code :
When '<Your Customer Exit variable name>'
IF i_step = 2.
Read table i_t_var_range INTO loc_var_range
WHERE vnam = 'Fiscal Year Input Variable'.
l_year = loc_var_range-low.
CONCATENATE l_year '001' INTO l_mmyy .
l_year = l_year + 1.
CONCATENATE l_year '004' INTO l_mmmyy .
l_s_range-high = l_mmmyy.
l_s_range-low = l_mmyy.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
ENDIF.
Hope this will help you.
Arvind .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sunil,
You can use following piece of code in CMOD for customer exit else achieve the same using filter if posting period is available in your data.
DATA: loc_var_range TYPE rrrangeexit,
l_year(4) TYPE c,
l_mmyy(7) TYPE c,
l_mmmyy(4) TYPE c.
.
WHEN 'customer exit variable'.
IF i_step = 2.
LOOP AT i_t_var_range INTO loc_var_range
WHERE vnam = 'Fiscal year input variable'.
l_year = loc_var_range-low.
CONCATENATE l_year '001' INTO l_mmyy .
CONCATENATE l_year '004' INTO l_mmmyy .
l_s_range-high = l_mmmyy.
l_s_range-low = l_mmyy.
l_s_range-sign = 'I'.
l_s_range-opt = 'BT'.
APPEND l_s_range TO e_t_range.
ENDLOOP.
ENDIF.
Regards,
Sakthi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.