4/9/2023 0 Comments Apab lies of p![]() ![]() The conversion type is decided by the data type and the preference order of the data type. Automatic type adjustment is performed for either one or both of the values while comparing two values of different data types. Note − If the data type or length of the variables does not match then automatic conversion is performed. The condition becomes true if the contents of the variable have changed. The condition becomes true if the contents of the variable have not changed and it has been automatically assigned its initial value. Example (A <= B) is true.Ĭhecks whether a1 lies in between a2 and a3 (inclusive). Alternate form is LE.Ĭhecks if the value of left operand is less than or equal to the value of right operand. = (Greater than or equals) Alternate form is GE.Ĭhecks if the value of left operand is greater than or equal to the value of right Operand. Alternate form is GT.Ĭhecks if the value of left operand is greater than the value of right operand. If the values are not equal then the condition becomes true. Alternate form is NE.Ĭhecks if the values of two operands are equal or not. S.No.Ĭhecks if the values of two operands are equal or not, if yes then condition becomes true. Let’s discuss the various types of comparison operators for different operands. The above code produces the following output − Example: B / A will give 2.ĭivides left hand operand by right hand operand and returns the remainder. Example: A * B will give 800.ĭivides left hand operand by right hand operand. Multiplies values on either side of the operator. Subtracts right hand operand from left hand operand. S.No.Īdds values on either side of the operator. Assume integer variable A holds 20 and variable B holds 40. The following list describes arithmetic operators. All ABAP operators are classified into four categories −Īrithmetic operators are used in mathematical expressions in the same way that they are used in algebra. ![]() ABAP provides a rich set of operators to manipulate variables. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |