Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Functional Module in BW throwing an error

Former Member
0 Likes
614

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
557

U have to assign a value to the variable t_newitem-newitem and pass it to the function.

Regards,

Sinu

4 REPLIES 4
Read only

Former Member
0 Likes
558

U have to assign a value to the variable t_newitem-newitem and pass it to the function.

Regards,

Sinu

Read only

0 Likes
557

How can we do that..? I'm pretty new to ABAP..so can you kindly guide me ?

Read only

Former Member
0 Likes
557

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

Read only

0 Likes
557

Ho can we do that ?