control break statements in ABAP?

Answer Posted / niranjan

The Control Break Statements are used to print headings,subheadings,totals and subtotal.
We must use this statements inside the loop.

1.AT FIRST...........ENDAT:It is useful to print headings.
-->it will triggered before starting a first record in a loop.

2.AT LAST............ENDAT:It is useful to print TOTALS.
-->it will triggered after the last record in a loop.

3.AT NEW ON..........ENDAT:It is useful to print subheadings.
-->it will triggered before starting a new value for that particular field.

4.AT END OF..........ENDAT:It is useful to display sub-totals.
-->it will triggered after heading the old value.

5.ON CHANGE OF.......ENDAT:It is same as 'AT FIRST' but the only difference is we can use 'ON CHANGE OF' in any kind of loop statements like loop.....endloop,select.....endselect,do.....enddo,while.....endwhile.
-->it will triggered before starting a new value.

Is This Answer Correct ?    16 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are different ABAP editors? What are the differences?

739


What are Table control and tab strip control in dialog programming ?

5413


What is the difference between open_form and close_form?

771


What are the user groups?

722


Can we use on change of between select and endselect?

730






What are the function modules used to create batch input session? : abap bdc

812


How to write a code for multiple transactions? : abap bdc

678


What is the difference between the function module and a normal abap/4 subroutine? : abap modularization

839


A field containing currency amounts (data type curr) must be assigned to a reference table and a reference field. Explain?

1076


In order to upload purchase order details, how you handle multiple values for a single field?

688


What is the difference between field-group header and other field groups? : abap modularization

713


What is difference between float and packed data type?

798


What is the syntax of packed number?

808


What are uses of foreign key?

725


hi i need detailed information on badi and bapi how can this work in real time senarios plz explain with exp

3367