Sunday, September 13, 2020

Control Break Statements, explain about them in SAP ABAP.

What are the Control Break Statements, explain about them?



Control Break Statements, explain about them in SAP ABAP.

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