on 08-13-2015 5:49 AM
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
In field level routine SOURCE_PACKAGE cannot be used,instead replace it with SOURCE_FIELDS-/BIC/ZRNL_VTPO.
Regards,
AL
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Anshu said correct.
wrtie below like this
from /BIC/AZTM_O4600 into table t_ztm_o46
for all entries in SOURCE_FIELDS
where /BIC/ZRNL_VTPO =
SOURCE_PACKAGE-ZRNL_VTPO .
sort t_ztm_o46 by ZRNL_VTPO .
Code at field:
read table t_ztm_o46 into w_ztm_o46 with key /BIC/ZRNL_VTPO = SOURCE_FIELDS-/BIC/ZRNL_VTPO.
IF SY-SUBRC = 0.
RESULT = w_ztm_o46-ZINDX_typ.
ENDIF
Thanks,
Phani.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I agree with AL finding - that will resolve the issue.
Also just to add,
Use binary search at the end of read statement will make it more fast, as you have already used the sort after select in start routine.
Regards,
VB
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
And from you code it seems in your Source Package you dont have the Field /BIC/ZRNL_VTPO instead you have the Field ZRNL_VTPO. So try using SOURCE_FIELDS-ZRNL_VTPO.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.