SAP Tutorials Blog

 

*&---------------------------------------------------------------------*

*& Report  Z_LOCAL

*&---------------------------------------------------------------------*

*& Program Written by GEEKSFORGEEKS

*&---------------------------------------------------------------------*


REPORT  Z_LOCAL.


* Loop for 10 times.

DO 10 TIMES.


* Perform Subtraction subroutine.

  PERFORM subtraction


ENDDO.


* Subroutine subtraction coding.

FORM subtraction.


*  Initializing local variable.

   DATA lv_local TYPE I VALUE 101


*  subtracting 1 to local variable.

   lv_local = lv_local - 1.


*  Display local variable.

   WRITE: /  lv_local.


ENDFORM.


Serkan AKKAVAK

Computer Engineer BSc

SAP Department Manager

Contact : serkurumsal@yandex.com