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
What is pakey structure, pshd1 structure and what type of fields it contains? : abap hr
What is difference between inner join and outer join?
How to read files and process BDC's automatically ?
What are the different functions used in sap script? What are the parameters used in each function?
Why do we use FOR ALL ENTRIES and what is the pre-requisite
how to genernate 21 sencondary index
Why is pretty printer user in abap?
How to handle error in session method? : abap bdc
What is a transport?
Explain what are interactive reports?
What are the fields in the memory table ‘screen’?
Kindly help me to Know the process of mapping in EDI from R/3 to a convertor(third party which translates IDoc flatfile to EDIFACT /XML / FTP /HTTP ) ?
Explain Catch Command in ABAP?
Hi to all abap gurus iam new to abap and my querry is as follows . and i feel so happy if u give exact anwers ? Querry1: i have one page( named "page1" )in my script with three windows(logo,adress,main windows) my requirement is to display some dynamic data in the script that is list of orders of the customer whn u give the customer number in selction-screen .then we can go for main window only to dispaly dynamic data ? or is there any other option ? then what should we give as apage number in the next page attribute in the header information. suppose if i dont give "page1" in the next page attribute as anext page what will happen ? i mean that dynamic data will be displayed or not ? Querry2: one one more querry incase if we have two pages in my layout .in page1 (3 windows as said above ) and page2 ( only logo and address window ) and no main window in page2. now if we give "page2" as next page in the next page attribute of page1 then that dynamic data will be displayed or not ?
Can a transparent table exist in the data dictionary but not in the database physically?