SAP Tutorials Blog


 


Conditional statements allow you to execute different blocks of code based on specified conditions. ABAP provides the following conditional statements:


IF Statement: The IF statement is used to perform a specific action if a condition is true.

      DATA lv_value TYPE i VALUE 42.

IF lv_value > 30.

  WRITE 'Value is greater than 30'.

ENDIF.


Serkan AKKAVAK

Computer Engineer BSc

Head of SAP & Software Department

Contact : serkurumsal@yandex.com