‎2006 Aug 24 11:08 AM
I used select statement in my coding as"
select kunnr parvw kunn2 pernr
into table loc_int_knvp
from knvp for all entries in t_reqd
where kunnr = t_reqd-kunnr
and ( parvw = wc_zn or parvw = wc_zi ).
But performance point of view it is taking somuch time .
So could u please give any alternative solution for that
Please send to jonam38@yahoo.co.in urgently
‎2006 Aug 24 11:14 AM
IF you are using FOR ALL ENTRIES addition to SELECT first check that table is not initial.
<b>if t_reqd[] is not initial.</b>
select kunnr parvw kunn2 pernr
into table loc_int_knvp
from knvp for all entries in t_reqd
where kunnr = t_reqd-kunnr
and ( parvw = wc_zn or parvw = wc_zi ).
<b>endif.</b>
‎2006 Aug 24 11:15 AM
sort the t_reqd table on kunnr field before the select.
sort t_reqd by kunnr.
select kunnr parvw kunn2 pernr
into table loc_int_knvp
from knvp for all entries in t_reqd
where kunnr = t_reqd-kunnr
and ( parvw = wc_zn or parvw = wc_zi ).
REgards,
Ravi
‎2006 Aug 24 11:15 AM
put like this.
if t_redq[] is not initial.
select kunnr parvw kunn2 pernr
into table loc_int_knvp
from knvp for all entries in t_reqd
where kunnr = t_reqd-kunnr
and ( parvw = wc_zn or parvw = wc_zi ).
endif.
and check WC_ZN also.
Regards
Prabhu
‎2006 Aug 24 12:24 PM
hi
good
wrong->
select kunnr parvw kunn2 pernr
into table loc_int_knvp
from knvp for all entries in t_reqd
where kunnr = t_reqd-kunnr
and ( parvw = wc_zn or parvw = wc_zi ).
write->
select kunnr parvw kunn2 pernr
into corresponding fileds of table loc_int_knvp
from knvp for all entries in t_reqd
where kunnr = t_reqd-kunnr
and ( parvw = wc_zn or parvw = wc_zi ).
it may reduse of the original time period as itis taking now .
thanks
mrutyun