Dear Experts,
We have an already developed zreport which was running fine before EHP7 Upgrade. But after the EHP7 Upgrade, after executing that zreport, its resulting in Time_Out Error dump. The Select Query of that report is as given below :
OPEN CURSOR C2 FOR
SELECT A~MBLNR "Material Document Number
A~ZEILE "Item in Material Document
A~BWART "Movement Typ
A~MATNR "Material Number
A~WERKS "Plant
A~AUFNR "Order Number
A~MENGE "Quantity
A~DMBTR "Amount in Local Currency
B~BUDAT "Posting Date in the Document
C~MTART "Material Type
C~MEINS "Unit of Measurement
FROM ( ( MSEG AS A
INNER JOIN MKPF AS B ON B~MBLNR = A~MBLNR
AND B~MJAHR = A~MJAHR )
INNER JOIN MARA AS C ON C~MATNR = A~MATNR )
WHERE A~WERKS IN S_WERKS
AND A~AUFNR IN S_AUFNR
AND A~AUFNR LIKE '000096%'
AND B~BUDAT IN S_BUDAT
AND ( A~BWART = '131' OR
A~BWART = '132' OR
A~BWART = '531' OR
A~BWART = '532' OR
A~BWART = '261' OR
A~BWART = '262' ).
DO.
FETCH NEXT CURSOR C2 INTO CORRESPONDING FIELDS OF WA_MSEG1. <-- Termination point is on this line in the dump
IF SY-SUBRC EQ 0.
APPEND WA_MSEG1 TO IT_MSEG1.
CLEAR WA_MSEG1.
ELSE.
CLOSE CURSOR C2.
EXIT.
ENDIF.
ENDDO.
So can anybody kindly suggest what changes needs to be done.
Thanks,
Satvik