Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Open curser

Former Member
0 Likes
588

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.

3 REPLIES 3
Read only

former_member282823
Active Participant
0 Likes
558

create an secondary index on

BUKRS,GSBER and HKONT.

Hope this might help you.

Regards,

Ramesh.

Read only

0 Likes
558

how to create that.

guide me.

by

karthi.

Read only

0 Likes
558

you BSEG in cluster table

you cant create a index.