Hi friends,
We are writing lookup code in endroutine at Infocube level. But we are getting some error.Please suggest me how to resolve those errors.We are new to ABAP.
Code:
types: begin of ls_sony,
sid type /bic/adso_stoc00-/bic/sid,
pid type /bic/adso_stoc00-/bic/sid,
end of ls_sony.
data: it_stoc type table of ls_sony,
wa_stoc type ls_sony.
select sid pid from /bic/adso_stoc00 into table it_stoc for all entries in result_package
where sid = result_package-/bic/sid.
loop at result_package assigning <result_fields>.
read table it_stoc into wa_stoc with key sid = <result_fileds>-/bic/sid.
if sy-subrc = 0
<result_fileds>-pid = wa_stoc-/bic/pid.
endif.
endloop.
error:
unknown column name "sid" untill runtime, you cannot specify a field list.
Regards
Bhaskar