satheeshv
24th August 2015, 14:52
Dear All,
I have a situation to export all customer (tccom010) information from baan 4 using exchange schema along with last doument date, amount. these fields are from tfacr200.
I created condition for document date and amount.
but the problem is total number of customer are around 16000 and number of records in tfacr200 are more than 20 lakhs. it is running more than 10 hrs for exporting data and client is not accepting customization session for exporting.
Condition maintained for Last document date:-
select tfacr200.docd
from tfacr200
where tfacr200._index2={:tccom010.cuno}
and tfacr200.trec =tfacr.trec.normal
or tfacr200.trec=tfacr.trec.invoice
or tfacr200.trec=tfacr.trec.anticipated
order by tfacr200.docd desc
as set with 1 rows
selectdo
return(tfacr200.docd)
endselect.
Could you please suggest me how to reduce the time.
advance thanks for your help.
Thanks,
sathish
I have a situation to export all customer (tccom010) information from baan 4 using exchange schema along with last doument date, amount. these fields are from tfacr200.
I created condition for document date and amount.
but the problem is total number of customer are around 16000 and number of records in tfacr200 are more than 20 lakhs. it is running more than 10 hrs for exporting data and client is not accepting customization session for exporting.
Condition maintained for Last document date:-
select tfacr200.docd
from tfacr200
where tfacr200._index2={:tccom010.cuno}
and tfacr200.trec =tfacr.trec.normal
or tfacr200.trec=tfacr.trec.invoice
or tfacr200.trec=tfacr.trec.anticipated
order by tfacr200.docd desc
as set with 1 rows
selectdo
return(tfacr200.docd)
endselect.
Could you please suggest me how to reduce the time.
advance thanks for your help.
Thanks,
sathish