SAP ABAP Data Element AQ_BED (SAP Query: Condition)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-SRV-QUE (Application Component) SAP Query
     SQUE (Package) Application Development R/3 SAP Query
Basic Data
Data Element AQ_BED
Short Description SAP Query: Condition  
Data Type
Category of Dictionary Type D   Domain
Type of Object Referenced     No Information
Domain / Name of Reference Type AQS_C60K    
Data Type CHAR   Character String 
Length 60    
Decimal Places 0    
Output Length 60    
Value Table      
Further Characteristics
Search Help: Name    
Search Help: Parameters    
Parameter ID   
Default Component name    
Change document    
No Input History    
Basic direction is set to LTR    
No BIDI Filtering    
Field Label
  Length  Field Label  
Short 10 Condition 
Medium  
Long  
Heading 55 Condition 
Documentation

Definition

To calculate the value of a local field, you can specify a calculation formula. Since the general rules governing such formulae can be found in the online help, the following description covers only special information about conditions.

Conditions are special formulae which always result in a declaration indicating whether the condition was satisfied (true) or not (false). Depending on the outcome, the formula is then used to calculate the value of the local field or the next condition is evaluated.

In its most basic form, a condition consists of just one comparison, but you can link several comparisons together using logical operators.

A comparison comprises two operands linked by one of the following operators:

- = Equal
- <>, >< Not equal
- < Less than
- <=, =< Less than or equal
- > Greater than
- >=, => Greater than or equal

Valid operands are formulae which have the same structure as the formulae specified to calculate the value of a local field.

The following operators are valid for linking comparisons:

- NOT (negation of result of subsequent comparison)
- AND (AND link of two comparisons)
- OR (OR link of two comparisons)

The processing sequence conforms to the usual rules, i.e. negations (NOT operations) take priority over AND operations which in turn take priority over OR operations. However, you can change this sequence to suit your own requirements by using parentheses.

As an example, you could formulate the condition that a particular date must fall in the years 1990 to 1992 as follows:

1990 <= DATE[YEAR] AND DATE[YEAR] <= 1992

Supplementary Documentation - AQ_BED 0220

Use

Procedure

Examples

Dependencies

If the fields provided on the screen for the formula and the condition are sufficient to allow full specification of the calculation formula for the local field, you can use these fields for input. Otherwise, use the Complex calculation function, which branches to an editor where you can enter all the necessary calculations.
If you used the editor earlier to enter a calculation formula that was too complex to be entered in the fields on the screen, these fields are not ready for input. To change the calculation formula, you must use the Complex calculation function.

History
Last changed by/on SAP  20010130 
SAP Release Created in