on 12-09-2011 4:14 PM
Hi,
The MultiProvider is built on InfoProvider 1, 2 & 3 and a variable on 0CALMONTH. If the 0CALMONTH is CURRENT month then it should get the data from InfoProvider 1 & 3 only, otherwise it should be from InfoProvider 2 &3. How could I accomplish it, please?
Thanks,
Venkat.
Hi Venkat,
You restrict Infoprovider (0INFOPROV) in your query on a selection option characteristic variable with Customer exit processing. In the exit, you can read the Calmonth variable in i_step = 2 in the exit to check if it is CURRENT, in which case restrict the exit variable to 1&3, else 2&3.
Hope it helps.
Thanks,
Abhishek.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Abhishek,
Do I have to create a Customer Exit processing Type variable ZINFOPR for 0INFOPROV and User Entry Type variable ZCALMNTH for 0CALMONTH where the user enters the Cal Month? Do I have to write user exit like the below:
WHEN 'ZINFOPR'.
IF i_step = 2. "after the popup
LOOP AT i_t_var_range INTO loc_var_range
WHERE vnam = 'ZCALMNTH''.
CLEAR l_s_range.
CLEAR e_t_range.
L_YEAR = sy-datum+0(4).
L_MONTH = sy-datum+4(2).
CONCATENATE L_YEAR L_MONTH INTO w_calmonth.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
l_s_range-high = w_infoprov3.
if w_calmonth = loc_var_range-low+0(6).
l_s_range-low = w_infoprov1.
else.
l_s_range-low = w_infoprov2.
endif.
APPEND l_s_range TO e_t_range.
EXIT.
ENDLOOP.
ENDIF.
Could you please check and correct if it requires any changes.
Thanks,
Venkat.
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.