Hi Experts,
Need some advice!!!
We have a 2 select query on VICDCOND which should use index 6&9( provided by SAP), however they are not being used in select statement. Instead the DB goes for FULL TABLE SCAN.
Query 1
SELECT intreno FROM vicdcond APPENDING TABLE lt_intreno
WHERE objnrdistpara = id_objnr AND
conddelete = abap_false.
Query 2
SELECT intreno objnr FROM vicdcond
INTO TABLE lt_cond_int
FOR ALL ENTRIES IN lt_hier
WHERE calcrule = lt_hier-calcruleext.
The above query goes for full table scan even though index exist for CALCRULE(Index 9) and for objnrdistpara & conddelete(Index 6).
We even for DB stats updated but even that didn't change the result. Please share your thought on next course of action.
Is anyone aware of performance issues related to REFX or table VICDCOND or any other SAP Notes that might help.
PS : Both the queries are part of standard code.
Thanks,
Chirantan