‎2008 Jul 11 6:31 AM
Hi all,
I have a functional module for a BW variable, which i throwing an error.
The Code is
FUNCTION Z_V_PRE_RNACCONEWITMUS_PLAN.
*"----
""Local Interface:
*" IMPORTING
*" VALUE(I_VNAM) TYPE RSZGLOBV-VNAM
*" VALUE(I_VARTYP) TYPE RSZGLOBV-VARTYP
*" VALUE(I_IOBJNM) TYPE RSZGLOBV-IOBJNM
*" VALUE(I_S_COB_PRO) TYPE RSD_S_COB_PRO
*" VALUE(I_S_RKB1D) TYPE RSR_S_RKB1D
*" VALUE(I_PERIV) TYPE RRO01_S_RKB1F-PERIV
*" VALUE(I_T_VAR_RANGE) TYPE RRS0_T_VAR_RANGE
*" VALUE(I_STEP) TYPE I OPTIONAL
*" EXPORTING
*" VALUE(E_T_RANGE) TYPE RSR_T_RANGESID
*" VALUE(E_MEEHT) TYPE RSZGLOBV-MEEHT
*" VALUE(E_MEFAC) TYPE RSZGLOBV-MEFAC
*" VALUE(E_WAERS) TYPE RSZGLOBV-WAERS
*" VALUE(E_WHFAC) TYPE RSZGLOBV-WHFAC
*" CHANGING
*" VALUE(C_S_CUSTOMER) TYPE RRO04_S_CUSTOMER OPTIONAL
*"----
refresh: t_newitem.
clear: t_newitem.
select /BIC/GL_NEWMAT from /BIC/PGL_NEWMAT into table t_newitem
where /BIC/GSALESORG = 'NAU150' and ACN_NEWITM = 1. .
loop at t_newitem.
clear l_s_range.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
l_s_range-low = t_newitem-newitem.
Append l_s_range to e_t_range.
endloop.
The error i am getting is
Field "T_NEWITEM" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. "DATA" statement. "DATA" statement.
Kindly help
Edited by: snehith allamraju on Jul 11, 2008 7:31 AM
‎2008 Jul 11 6:35 AM
U have to assign a value to the variable t_newitem-newitem and pass it to the function.
Regards,
Sinu
‎2008 Jul 11 6:35 AM
U have to assign a value to the variable t_newitem-newitem and pass it to the function.
Regards,
Sinu
‎2008 Jul 11 6:36 AM
How can we do that..? I'm pretty new to ABAP..so can you kindly guide me ?
‎2008 Jul 11 6:38 AM
Hello Snehith,
In your first two lines on the FM you have used the variable "T_NEWITEM" without declaring inside the FM. First you need to declare that variable inside the FM.
Thanks,
Greetson
‎2008 Jul 11 6:46 AM