Skip to Content
0
Former Member
Sep 29, 2005 at 02:08 PM

Update Rule Routine - How to exit or go to end

31 Views

I have a routine where I have a bunch of IF/END IF sections. I would like to know how to exit the routing from within one of these sections OR go to the end of the routine?

For example;

IF CONDITION1

RESULT = COMM_STRUCTURE-creditor.

EXIT ROUTINE OR GO TO END

ENDIF.

IF CONDITION2

RESULT = COMM_STRUCTURE-debitor.

EXIT ROUTINE OR GO TO END

ENDIF.

END

I know I can probably structure the IF statements so that they are nested in a way to avoid this but this example I give is simple but I have MANY IF statements and my code is a bit more complicated. I'm looking for an easy way to exit the routine...

Thanks!