Get Example source ABAP code based on a different SAP table
ARTICLE Standard SAP Help for COMPARISON_OPERATOR_G
rel_exp - Binary Relational Operators The following table shows the binary relational operators for comparisons between two operands (data objects or return values or calculation expressions) of any data types in comparison expressions. • = ABAP_LOGICAL_OPERATOR • EQ ABAP_LOGICAL_OPERATOR • <> ABAP_LOGICAL_OPERATOR • NE ABAP_LOGICAL_OPERATOR • < ABAP_LOGICAL_OPERATOR • LT ABAP_LOGICAL_OPERATOR • > ABAP_LOGICAL_OPERATOR • GT ABAP_LOGICAL_OPERATOR • <= ABAP_LOGICAL_OPERATOR • LE ABAP_LOGICAL_OPERATOR • >= ABAP_LOGICAL_OPERATOR • GE ABAP_LOGICAL_OPERATOR operatorMeaning ABAP_KEY =, ABAP_KEY EQEqual: True if the value of operand1 matches the value of operand2. ABAP_KEY <(><<)>>, ABAP_KEY NENot Equal: True if the value of operand1 does not match the value of operand2 . ABAP_KEY <(><<)>, ABAP_KEY LTLess Than: True if the value of operand1 is less than the value of operand2 . ABAP_KEY >, ABAP_KEY GTGreater Than: True if the value of operand1 is greater than the value of operand2 . ABAP_KEY <(><<)>=, ABAP_KEY LELess Equal: True if the value of operand1 is less than or equal to the value of operand2. ABAP_KEY >=, ABAP_KEY GEGreater Equal: True if the value of operand1 is greater than or equal to the value of operand2. The values are compared in accordance with the comparison rules.
ABAP_PGL Using consistent spelling
Notes
The operators =, <(><<)>>, <(><<)>, >, <(><<)>=, and >= are equivalent to EQ, NE, LT, GT, LE, and GE respectively. We recommend that you use only one of these types of operator within a program. If in doubt, the operators with characters =, <(><<)>, and > are considered to be more up to date, however they also overload these characters. Relational operators that consist of two letters, on the other hand, are better suited to other relational operators such as CO, CN , and so on that have no alternative forms.
Due to the comparison rules, the size comparisons shown here are not suitable for determining the textual order of character-like data objects.
The obsolete forms ><(><<)>, =<(> <<)>, and => may still appear outside of classes.