Professional Documents
Culture Documents
1.control Break Events
1.control Break Events
1.AT-FIRST - Statements are executed before any processing started and is executed
only once
For Eg: so in item details if there are multiple records of vbeln = 002 so it will
group all 002.
4.AT-END OF FIELD NAME- Statements are executed at the end of the group after
matching values are grouped.
*******************************************************************************
Report zcontrol_break_events
Types:begin of lty_data,
vbeln type vbeln_va,
netwr type netwr_ap
end of lty_data.
***************************************************************************
Selection-Screen
***************************************************************************
selection-screen:end-of-block b1.
****************************************************************************
AT FIRST. ********
Write:/ 'Sum of all the sales doc is printed below'. " '/' gives us the output in
different line.
ENDAT.**********
AT LAST. *********
Write:/ 'sum of sales order number'.
ENDAT.***********
AT NEW VBELN.**********
Write:/ ls_data-vbeln.
ENDAT.***************
AT END OF VBELN.
ENDAT.
ENDLOOP.