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
hi to all abap interview guys please notify this .. first if u have any doubts please go through google search or else please do debugging with some sample programs . but don't post even silly questions too. thanking you.
What are logical databases? : abap hr
Can you delete data element, which is being used by table fields. : abap data dictionary
How are the date abd time field values stored in sap?
What is the difference between a dialog program and a report?
What is lock mechanism? How do we create lock objects in abap?
Can a posting run be deleted? : sap abap hr
Difference between top-of-page and top-of-page during at line- selection?
What is direct input method ?
Can you set up background processing using call transaction?
What are the different function modules used in sapscript?
What is the function module to popup contents in the internal table?
What is sql trace? : abap data dictionary
A field containing currency amounts (data type curr) must be assigned to a reference table and a reference field. Explain?
Explain client-dependent and client-independent tables.