Hi masoumeh,
Your select query is as below:
select objnr UDATE
from jcds
into table
where INACT = ' ' and STAT = 'I0009' and objnr like srch_str and
UDATE in budat
%_HINTS ORACLE 'INDEX("JCDS" "JCD~ZDA")'.
There are few thinks which needs to be considered :
a) what you are passing in srch_str? Instead of using jcds with search string it is much better to gather the exact object numbers and then pass them to JCDS to gather status transitions.
e.g: You need status changes of operations in a single day then get the operations changed from afvc or other tables first to get the object numbers and then pass them to jcds.Exact object numbers will speed up process.
b)TRACE your query in ST05, even with indexes this table normally contains larga data sets thus based on your requirement it would be better to tweak the query .