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 Cursor - Deleting.

Former Member
0 Likes
705

Hi there , Guys could you help with the following plz:

LOOP AT ti_ref.

OPEN CURSOR WITH HOLD cursor1 FOR

SELECT * FROM erch

WHERE belnr = ti_ref-ref

and intopbel = '' .

if sy-subrc

DO.

  • " I want to erase register found from ti_ref*

  • " How Can I do that ???*

PACKAGE SIZE p_commit.

IF sy-subrc NE '0'.

CLOSE CURSOR cursor1.

EXIT.

ENDIF.

ENDDO.

ENDLOOP.

1 ACCEPTED SOLUTION
Read only

franois_henrotte
Active Contributor
0 Likes
464

you should not use a cursor to do that

at least you should not open a cursor in a LOOP as you do !

1 REPLY 1
Read only

franois_henrotte
Active Contributor
0 Likes
465

you should not use a cursor to do that

at least you should not open a cursor in a LOOP as you do !