Skip to Content
0
Aug 13, 2015 at 04:49 AM

Error in field level routine

23 Views

Hi All,

I am getting the below error in field level routine.

E:Field "SOURCE_PACKAGE-/BIC/ZRNL_VTPO" is unknown. It is neither in one

of the specified tables nor defined by a "DATA" statement. "DATA"

statement.

Code in Start routine:

types : begin of ty_ztm_o46 ,

/BIC/ZRNL_VTPO type /BIC/OIZRNL_VTPO,

/BIC/ZINDX_TYP type /BIC/OIZINDX_TYP,

/BIC/ZINDX_VAL type /BIC/OIZINDX_VAL,

end of ty_ztm_o46 .

Data: t_ztm_o46 type standard table of ty_ztm_o46,

w_ztm_o46 type ty_ztm_o46.

if SOURCE_PACKAGE[] is not initial .

select /BIC/ZRNL_VTPO

/BIC/ZINDX_TYP

/BIC/ZINDX_VAL

from /BIC/AZTM_O4600 into table t_ztm_o46

for all entries in SOURCE_PACKAGE

where /BIC/ZRNL_VTPO =

SOURCE_PACKAGE-ZRNL_VTPO .

sort t_ztm_o46 by ZRNL_VTPO .

endif.

Code at field:

read table t_ztm_o46 into w_ztm_o46 with key /BIC/ZRNL_VTPO = SOURCE_PACKAGE-/BIC/ZRNL_VTPO.

IF SY-SUBRC = 0.

RESULT = w_ztm_o46-ZINDX_typ.

ENDIF.

Appreciate your inputs.

Thanks,

Naveen