- What are the keys of your Z02 index, can you remove the hint and analyze a SQL trace (S05)
- Can you fill the first internal table with MJAHR too when selecting data from MSEG
- Can you consider using a JOIN between MKPF and MSEG as FOR ALL ENTRIES get (very) bad performance when internal table size increases (So if Quality system is much smaller the problem will first arise in Production)
- If MKPF only purpose is to check the posting date, can you consider implementing Note 1516684 - MKPF fields added to MSEG - Performance optimization so MSEG will contain a
BUDAT_MKPF (and other MKPF fields) and you are no longer required to read MKPF
Regards,
Raymond