in a loop of an internal table, what is the use of at first &
at last statements?
Answer Posted / p.lokesh
These come under Control Break Statements :
At FIRST :
This is used for system Field Heading in ABAP program
At NEW :
This is used to display the fields.
Ex At New Carrid.
write : /Carrid.
endat.
when ever the new carrid is reached, carrid wiil be
written.
At END :
This is used for row-wise Calculation i.e, Sub-total.
Ex : At End Carrid.
uline.
Endat.
The end of carrid is reached, a line will be drawn.
At LAST :
This is used for Calculation of Grand total
Ex: At Last.
wirte : / Grand-Total.
Endat.
When entire processing of entire internal table is
over.
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
On ABAP, Did you set up a workflow? Are you familiar with all steps for setting up a workflow?
What are the disadvantages of using explicit enhancement?
What do is landscape in sap project, I think its related to no. Of servers used, pls correct me if I am wrong, or what it is? : sap abap hr
How do you find if a logical database exists for your program requirements?
What is the logo in sap script?
How to create a check box/option button in a list?
What are the advantages of different types of bdc's?
Type casting and error handling
What is meant by hot spots? : abap data dictionary
Differentiate screen painter from menu painter.
how to track records from data dictionary?
What are the events driven batch jobs?
Can you show multiple alvs on a single screen?
Does SAP has a GUI screen painter or not? If yes what operating systems is it available on? What is the other type of screen painter called?
Can a domain, assigned to a data element be changed? : abap data dictionary