on 08-24-2009 10:27 AM
I defined this code in order to fill VALID_TO variable with 0P_KEYDT but it doesn't work. when I execute the query, it says "specify a value for variable". what is wrong? please help??
WHEN 'VALID_TO'.
data: yy(4).
IF i_step = 2.
LOOP AT i_t_var_range INTO loc_var_range
WHERE iobjnm = '0P_KEYDT'.
CLEAR l_s_range.
l_s_range-low = loc_var_range-low.
l_s_range-high = loc_var_range-high.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
endloop.
ENDIF.
WHEN 'VALID_TO'.
data: yy(4).
IF i_step = 2.
LOOP AT i_t_var_range INTO loc_var_range
WHERE iobjnm = '0P_KEYDT'.
CLEAR l_s_range.
l_s_range-low = loc_var_range-low.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
endloop.
ENDIF.
Can you try the above code ?
loc_var_range-high is available from variables which are intervals and not single values.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you try this, I am more used to "READ TABLE"
(or
in your code use VNAM instead of iobjnm.)
WHEN 'VALID_TO'.
data: yy(4).
IF i_step = 2.
READ TABLE I_T_VAR_RANGE INTO loc_var_range WITH KEY VNAM = '0P_KEYDT'.
IF SY-SUBRC = 0.
CLEAR l_s_range.
l_s_range-low = loc_var_range-low.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
ENDIF.
ENDIF.
P.S: I assume your loc_var_range is defined as below
DATA: loc_var_range TYPE RRRANGEEXIT.
Set a break point in your ABAP code and just run your query using VALID_TO and 0P_KEYDT variable via RSRT transaction.
Also, How have you defined VALID_TO ? What is the reference char you have used ?
when I look key figure definition, it shows different dates.
Where are you doing this ?
Query designer ? If so how ?
I defined variable at query designer.
processing by: customer exit
referance charactheristic: valid to (my cube has this value)
variable is: mandatory
variable is ready for input
I'm looking variable values via rsrt ->execute. at the key figure definition button, I can see key figure's value detail.
>
> referance charactheristic: valid to (my cube has this value)
> variable is ready for input
>
> I'm looking variable values via rsrt ->execute. at the key figure definition button, I can see key figure's value detail.
VALID_TO infoobject is referencing 0DATE ?
Make the variable "Not ready for input", so uncheck the check box.
First set the break point in the code, later execute query in RSRT, once you enter variable values and execute it should taken you to the break point this is where you can see the values.
Search some threads on debugging customer exit using RSRT.
Hi,
Did you check this settings for varaible ''VALID_TO'?
Variable should not be marked as u201Cready for inputu201D and should be set to u201Cmandatory variable entry".
Regards
Joe
Edited by: J.F.B. on Aug 24, 2009 12:12 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
9 | |
9 | |
7 | |
6 | |
6 | |
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.