cancel
Showing results for 
Search instead for 
Did you mean: 

Exit a loop when the condition in if succeed

Former Member
0 Kudos

Hello everbody:

LOOP ....

IF ...

"If the sentence here succeed I want to exit of the loop.

ENDIF.

ENDLOOP.

Some ideas please

Accepted Solutions (0)

Answers (1)

Answers (1)

felipe_loyolarodriguez
Active Contributor
0 Kudos

Hi

Try this

Loop ....

if 1=1

begin

     goto ExitLoop

end

ExitLoop:

Regards

Former Member
0 Kudos

goto? doesnt exist in abap