Hi Guys
Help me how to write a customer for calculating the next quarter forecast based on the user enter the input..
to write a code from the fiscal period they enter....
*********START OF FIRST PROG
WHEN 'ZVAR_**** type as interval or selection*
CLEAR l_s_range.
IF i_step = 2. "after the popup
LOOP AT i_t_var_range INTO loc_var_range
WHERE vnam = ZPxxXXXX.
ENDLOOP.
IF loc_var_range-low = '001'
l_s_range-sign = 'I'.
l_s_range-opt = 'BT'.
l_s_range-low = "01"
l_s_range-low = "03"
ENDIF.
IF loc_var_range-low = '004'
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
l_s_range-low = "04"
l_s_range-low = "06"
ENDIF.
IF loc_var_range-low = '007'
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
l_s_range-low = "07"
l_s_range-low = "09"
ENDIF.
IF loc_var_range-low = '010'
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
l_s_range-low = "10"
l_s_range-low = "12"
"
ENDIF.
*****Until here I calculated the Quarterly months...if I am wrong correct me...
******then from here I need to caculate Next Quarter as mentioned below. which is requirement logic...
if they enter period
01 --- Quarter1
02---Q1
03--- Q2
04--Q2
05---Q2
06---Q3
07---Q3
08---Q3
09---Q4
10---Q4
11-Q4
12-Q4
This is how i need
Is it again I need to enter for each period as they enter????
.........
......
........
.......
....
...
pls help me with next part of coding???
APPEND l_s_range TO e_t_range.
Thanks a lot...
BI Learner