Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Error in field level routine

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

replied

In field level routine SOURCE_PACKAGE cannot be used,instead replace it with  SOURCE_FIELDS-/BIC/ZRNL_VTPO.

Regards,

AL

1 View this answer in context
Not what you were looking for? View more on this topic or Ask a question