MIRO, MIR7 and MIR4 performance is very poor and giving TIME_OUT DUMP(at peak times). All Dumps are showing same Select Statement.
>>>>> SELECT * FROM mseg WHERE lfbja = yydrseg-lfgja AND
265 lfbnr = yydrseg-lfbnr AND
266 lfpos = yydrseg-lfpos.
267 IF sy-subrc EQ 0 AND mseg-bwart = '105'.
268 rdoc2 = mseg-mblnr.
269 ryear2 = mseg-mjahr.
270 ritem2 = mseg-zeile.
MSEG table having Standard Index only. no Z index.
And this transactions have
Enhancement LMR1M001--> EXIT_SAPLMRMP_010 --> INCLUDE ZXM08U16 and
BAPI --> MRMBADI_HEADER_CHECK.
above enhancement and bapi having almost same code. here i have one doubt, both are having same code know, both are required? if required in which stages those are executing. please explain me.
(above select statement not is there in enhancement or bapi)