‎2006 Feb 10 7:32 AM
Hi experts,
I have a select statement and it is taking lot of time.
How can i reduce it?
select aufnr xloek kzear into corresponding fields of table
t_det from resb for all entries in t_comp
where aufnr = t_comp-aufnr.
‎2006 Feb 10 7:34 AM
arrenge field in iternal table.....
select aufnr xloek kzear into table
t_det from resb for all entries in t_comp
where aufnr = t_comp-aufnr.
Message was edited by: kishan negi
‎2006 Feb 10 7:34 AM
arrenge field in iternal table.....
select aufnr xloek kzear into table
t_det from resb for all entries in t_comp
where aufnr = t_comp-aufnr.
Message was edited by: kishan negi
‎2006 Feb 10 7:38 AM
Hi Kaki,
use my below code..
data: begin of wa,
aufnr like resb-aufnr,
xloek like resb-xloek,
kzear like resb-kzear,
end of wa.
data itab like table of wa.
if not t_comp is initial.
select aufnr xloek kzear from resb into table itab for all entries in t_comp where aufnr = t_comp-aufnr.
endif.
Regards,
Abdul Hakim
‎2006 Feb 10 7:39 AM
Hi Kaki,
i hope t_det has only 3 fields, that are aufnr,xloek,kzear in the same order of select.
if not t_comp[] is initial.
select aufnr
xloek
kzear
into table t_det
from resb for all entries in t_comp
where aufnr = t_comp-aufnr.
endif.regards
vijay
‎2006 Feb 10 7:49 AM
‎2006 Feb 10 2:40 PM
If RESB is large, since you aren't using an index, this SELECT will always take a long time.
Rob