on 06-28-2007 11:07 PM
Hi Gurus,
I need to use a Customer Exit Variable to read the values for a characteristic. Based on one indicator I have to include or exclude a value. I am trying to use the code as below. But, it is saying "AError for variable in customer enhancement ...".
Code
the variable is a multiple single values customer exit variable
zl_s_range-low = z_placc.
CLEAR zl_s_range-high.
if z_pl_ind = '1'.
zl_s_range-sign = 'I'.
elseif z_pl_ind = '2'.
zl_s_range-sign = 'E'.
endif.
zl_s_range-opt = 'EQ'.
APPEND zl_s_range TO e_t_range.
Please help me to solve the issue,
Thanks in advance,
Regards,
aarthi
Hi Aarthi,
The code you have given seems to be fine.
There can be some error in the code other than what you have displayed here.
What is z_placc.? is it a variable? if so what type of variable it is?
If its multiple single values and not just a single value then you need to use
LOOP and END LOOP to cover all the multiple single values.
Either copy the entire code in Customer exit here to help us understand.
or
Debug the code by setting a break point in the customer exit. and executing the query using transaction RSRT.
Assign points if helpful,
Regads, Uday
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Uday,
Thanks for your response.
Below is the complete code.
WHEN 'ZV_CSS11'.
IF I_STEP = 1. "Before Pop-up
select * into table i_tp_tab_pl from /BIC/QZ_TP_PLAC
where /BIC/Z_TP_PLAC = '11' and
DATEFROM <= sy-datum and DATETO >= sy-datum.
if sy-subrc = 0.
LOOP AT i_tp_tab_pl.
clear zl_s_range.
z_placc = i_tp_tab_pl-/BIC/Z_PLACC.
z_pl_ind = i_tp_tab_pl-/BIC/Z_PGLA_IND.
zl_s_range-low = z_placc.
if z_pl_ind = '1'.
zl_s_range-sign = 'I'.
else.
zl_s_range-sign = 'E'.
endif.
zl_s_range-opt = 'EQ'.
APPEND zl_s_range TO e_t_range.
clear z_placc.
clear z_pl_ind.
ENDLOOP.
endif.
endif.
Thanks in advance,
Regards,
aarthi
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.