exit statement

 exit statement.


        REPORT ZEXIT_PROGRAM.
        data var type i value 1.
        while var <= 10.
      write : / var.
          var = var + 1.
          if var = 5.
            exit.
          endif.

       endwhile.

explanation:

        loop starts from 1 to 10.if var[variable] is equals         to 5 then break the loop.

Comments

Popular posts from this blog

ABAP for all

bapi introduction

amdp