sap abap basic programming notes
There is mainly two types of statement which are using in ABAP:
1> Conditional statement
2> Lopping Statement.
Now in details:
Conditional statements:
1. if-else
Syntax:
if <condition 1>.
statements.
else-if <condition 2>.
statements.
----
elseif <condition n>.
statements.
else.
statements.
endif.
2. Case-endcase (similar to switch statement in 'C' lang)
Syntax:
case <variable>.
when <value 1>.
statements.
when <value 2>.
statements.
----
when others.
statements.
endcase.
3. Check:
Syntax:
check <condition>.
statements.
Looping statements:
1. While-endwhile
Syntax:
while <condition>.
statements.
endwhile.
2. Do-enddo
Syntax 1:
do.
statements.
<Exit condition>.
enddo.
Syntax 2:
do <n> times.
statements.
enddo.
3. Loop-endloop -Ã internal tables
syntax:
loop at <int.table> [condition].
statements.
endloop.
4. Select-endselect à database programming
Syntax:
select <query>.
statements.
endselect.
Note:- If anybody want some example of these all topic then kindly send/comment your mail id, i will send the all examples through mail in word format.
**Kindly like and share these all topic with your friends**
0 Comments