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

Explain the difference between open_form and close_form?

544


what is sap scriptview ?

1732


1 . how do u design technical documentation in abap ? 2 . what u currently devloped in sap abap ?

2565


Explain enhancements

869


Define database layer?

617






Define external layer? : abap data dictionary

690


What should be declared explicitly in the corresponding abap/4 statements to access internal tables without header lines & why?

593


What functions does a data dictionary perform? : abap data dictionary

618


What is maintenance view?

598


What is difference between check table and value table ?

642


How to read files and process BDC's automatically ?

1630


​​Can multiple abap systems connect to abap database?

601


What is filter dependent BADI?

927


Explain what is the difference between sy-tabix and sy-index? Where it is used?

559


Can i know some of the Realtime tickets that anyone has been faced ?

1662