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


Please Help Members By Posting Answers For Below Questions

What is the difference between Exit and Stop?

615


Explain about workbench request and customization requests?

606


What is an rfc?

585


How do you populate data into a multiple line field? : abap bdc

617


What are two methods of modifying sap standard tables? : abap data dictionary

666






what is a text table ?

1805


What are the different methods of passing data?

591


What are the commands used for interactive reports?

562


What is the difference between get and get late?

589


Which transaction code is used executing a report (type 1 program)? : abap data dictionary

630


What is table buffer?

576


What are the advantages and disadvantages of ABAP query tool?

571


B -Credit Note report Selection Screen Ranges: Creation date Sales Org Sold to Party Selection condition: Document Category – VBTYP should be ‘O’ Table to be used: VBRK, VBRP,VBPA,ADRC List the CR order types or credit billing type by customer number (or selected customer) and displays the: - Billing Document date (FKDAT) - Customer number (KUNRG) - Name of the reseller (on top of the SAP No) (NAME1) - Billing document number,(VBELN) - order reason (AUGRU_AUFT) - Amount (NETWR) - Currency (WAERK) Group Currency wise, billing type wise sum of Net value. When user double click on field ‘Billing Document #’ , display the document in VF03 Do this using OO ABAP.

2453


What is the difference between a pool table and a transparent table?

532


What are the drill-down features provided by abap/4 in interactive lists?

587