ABAP
>> Advanced Business Application Programming Language.
>> The source code of ABAP ,consists of either a statement or comment.
>>A statement is a collection of operators , variables and keywords.
Operators:
In ABAP we have three types of operators .
a. Mathematical operators.
b.Comparative operators.
c.Relational /logical operators.
Mathematical operators :-
OPERATOR DESCRIPTION EXAMPLE
+ Addition 3 + 2 = 5
- Subtraction 3 - 2 = 1
* Multiplication 3 * 2 =6
** Exponential 3**2 = 3^2 =9
/ Division 4 / 2 =2
Mod Reminder of division 5 mod 2 = 1
of two integers
Comparitive operators :-
OPERATOR DESCRIPTION EXAMPLE
< (LT) Less Than a < b [a LT b]
< = (LE) Less Than or Equal a < = b [a LE b]
> (GT) Greater Than a > b [a GT b]
= (Eq) Equal a = b [a Eq b]
< > (NE) Not Equal a < > b [a NE b]
Relational Logical operators :-
OPERATOR DESCRIPTION EXAMPLE
and and a < b and a<c
or or a < b or a <c
not not -----------------
Operands:
This are the variables which need to perform the particular operations
eg: C = A + B , = + (Operators) , C A B (Operands), c=a+b (operation)
Variable:
These is the name given to the memory location. eg [A ,B,C]
Keywords:
Keywords are used to identify the type of the statement .
keywords are (C C D D D E O).
1.Calling Keyword.
2.Controlling Keyword.
3.Declarative Keyword.
4.Definition Keyword.
5. Database Keyword.
6. Event Keyword.
7. Operational Keyword.
Declarative Keyword:
Declarative keywords are used to declare the variables in ABAP .Some of the declarative keywords are
1. DATA
2. PARAMETER
3. TYPES
4. TABLES
Comments:
Comments are non executable statements .These are used to improve the readability of program.
If you want to use comment ,then at begining of a line you must place * in the first column of the line.
ex: * comments.
If you want to comment the part of the line then we use " , from '' here on wards it reads as comment.
Comments
Post a Comment