What are the Control Break Statements, explain about them?.
Ans
:-
Control Break statements:
- They are used to control the data flow of an internal table.
Ø The Control break statements
start with AT and ends with ENDAT.
Ø These statements should be
used within the LOOP statements only
Ø Following are the different
types of Control break statements.
·
AT
FIRST:
- This event is triggered at the first record of an internal table. This is
used to display the Header information.
·
AT
NEW: -
This event is triggered at the first record of each block. This is used to
display the individual headings.
·
AT
END OF:
- This event is triggered at the last record of each block. This is used to
display the total/sub totals in the internal table.
·
AT
LAST:
- This event is triggered at the last record of an internal table.
·
ON
CHANGE OF:
- It is a special control break statement which can be used outside of the loop statement also.
Ø It is almost similar to AT
NEW statement but it doesn't consider the preceding fields.
Ø It can be used on the
multiple fields using SET operators (AND, OR, BETWEEN).
No comments:
Post a Comment