2008 Mar 18 11:56 AM
hi frds,
this is my statement, i have more than 5 lks record in BSEG table so i used open curser statement. but it still taking time to run.
give me any other help.
OPEN CURSOR WITH HOLD c for
SELECT BUKRS BELNR GJAHR BSCHL SHKZG GSBER WRBTR PSWSL VBELN
HKONT EBELN EBELP PROJK
FROM BSEG
WHERE BUKRS = COMPANY AND
GSBER = BUS_AREA AND
HKONT = GL.
FETCH NEXT CURSOR c INTO CORRESPONDING FIELDS OF TABLE IBSEG.
IF SY-SUBRC <> 0.
message 'No data Found for the selection ' type 'E'.
EXIT.
ENDIF.
CLOSE CURSOR C.
by
karthi.
create an secondary index on
BUKRS,GSBER and HKONT.
Hope this might help you.
Regards,
Ramesh.
2008 Mar 18 12:00 PM
create an secondary index on
BUKRS,GSBER and HKONT.
Hope this might help you.
Regards,
Ramesh.
2008 Mar 18 12:44 PM
2008 Mar 18 12:46 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |