Entering content frameProcedure documentation IF ... ENDIF Condition Locate the document in its SAP Library structure

You can make the execution of CATT functions depend on the contents of a variable by setting a condition for its execution.

Enter IF in the Funct. column, and the condition (see : Use condition) in the Text column. The Object column remains empty.

IF <condition> )
... CATT Functions
ENDIF

The CATT functions specified between IF and ENDIF are only performed if the condition is satisfied.

Note

You can nest IF...ENDIF blocks and DO...ENDDO loops.

 

You can also make the execution of functions depend on alternative variable contents:

IF <condition>
... CATT Functions

ELSEIF <condition>
... CATT Functions

ENDIF

The CATT functions specified after ELSEIF are only performed if the IF condition is not fulfilled and the ELSEIF condition is fulfilled.

You can also specify the execution of CATT functions for the case that the value of the variables do not satisfy any condition:

IF <condition>
... CATT Functions

ELSEIF <condition>
... CATT Functions

ELSE CATT Functions

ENDIF

The CATT functions specified between IF and ELSEIF are only performed if the condition is satisfied. Otherwise the functions defined for ELSE are performed.

 

 

Leaving content frame