Start of Content Area

Syntax documentation Entering Intervals  Locate the document in its SAP Library structure

You can enter intervals in round parentheses and in square parentheses. However, round parentheses can be ambiguous, because (1-5) could be either an interval or an arithmetic operation with the result -4.

You can express upper and lower limits in intervals using the following comparison operators:

Upper Limit

Option 1

Option 2

Option 3

Description

>

 

GT

Greater than

>=

=>

GE

Greater than or equal to

 

Lower Limit

Option 1

Option 2

Option 3

Description

<

 

LT

Less than

<=

=<

LE

Less than or equal to

 

Syntax for Entering Intervals

Use the expression IN to enter intervals:

LENGTH IN (5 - < 10)

from 10 to 5, such that 10 is part of the interval but 5 is not

LENGTH IN (5 - 10)

from 5 to 10, such that 5 and 10 are part of the interval

LENGTH IN (> 5 - < 10)

from 5 to 10, such that neither 5 nor 10 is part of the interval

LENGTH IN (> 5 - 10)

from 5 to 10, such that 10 is part of the interval but 5 is not

LENGTH IN (5 - 10, >20, 40)

All lengths from 5 to 10, greater than 20, or 40