*&---------------------------------------------------------------------*
*& Report Z_STATIC
*&---------------------------------------------------------------------*
*& Program Written by GEEKSFORGEEKS
*&---------------------------------------------------------------------*
REPORT Z_STATIC.
* Loop for 8 times.
DO 8 TIMES.
* Perform addition Subroutine.
PERFORM addition.
ENDDO.
* Subroutine addition declaration and coding.
FORM addition.
* Initializing static variable.
STATICS lv_static TYPE I VALUE 99.
* Adding 1 to static variable.
lv_static = lv_static + 1.
* Display static variable.
WRITE: / lv_static.
ENDFORM.
Serkan AKKAVAK
Computer Engineer BSc
SAP Department Manager
Contact : serkurumsal@yandex.com
0 Comments