exit statement

 exit statement.


        REPORT ZEXIT_PROGRAM.
        data var type 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

bapi introduction

amdp

ABAP for all