SAP StackFICOHRMMSDPMPSABAPNetWeaverTablesTcodes ☰MENU

EXIT in ABAP

EXIT statement is used for terminating the loops or exit from the current processing blocks.

Syntax:

EXIT.

Here are some important notes about ABAP EXIT statement

Sample Program

DATA count TYPE i VALUE 100.

DO.

IF sy-index > count.

EXIT.

ENDIF.

WRITE / sy-index.

ENDDO.

In this program, the loop will terminate when the system field sy-index value greater than the count variable field (here it is 100).

Also Read : View Other ABAP Keywords & Syntax -> ABAP Transaction codes

SAP ALECRMSCMSRMSAP Solutions SAP ReferencesSAP BasicsPP ModuleWMSAP Partners
HomeContact & Privacy PolicyTwitter
All of the product names here are trademarks of their respective companies. The site sapstack.com is not affiliated with SAP AG.
©2018 sapstack.com