SAP Tutorials Blog



DATA(num) = 1 + 1.


"A simple condition: Checking if the value of num is 2

IF num = 2.

  ... "Statement block

      "Here goes some code that should be executed if the condition is true.

ELSE.

  ... "Statement block

      "Here goes some code that should be executed if the condition is false.

      "For example, if num is 1, 8, 235, 0 etc., then do something else.

ENDIF.


Serkan AKKAVAK

Computer Engineer BSc

SAP Department Manager

Contact : serkurumsal@yandex.com