Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

A database table contains 3
fields(Student_no,Section,Total_marks).I want retrieve top 10
students from each section.Note:(Section contains data like
A,B,C.Each section contains more than 10 students).

Answer Posted / balamurugan

REPORT zscenario.
DATA itab LIKE zabc OCCURS 10 WITH HEADER LINE.
SELECT * FROM zbad5 INTO TABLE itab.
SORT itab BY sclass smarks.
LOOP AT itab.

AT NEW sclass.

WRITE: / itab."-sno1 itab-sclass itab-smarks.

ENDAT.
This display the report based upon the class.But i don't know how to retrieve 10 records from each class.

ENDLOOP.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between check table and value table ?

1104


What are the different modules of sap? : sap abap hr

1018


What are authorization objects and what statement is used to perform an authorization check in an abap program?

985


In the MM module for finding out the standard cost what is the view one has to look at?

1025


Can we include customizing include or an append structure with pooled or cluster tables?

1162


What is pass by value and what is pass by reference? Which is better?

1377


when do you need to create an internal table with header line ? and with out a header line?

2000


What are the steps to execute session method?

1046


How can an internal table with header line and one without header line be distinguished when passed to a subroutine? : abap modularization

1076


What is a help view? : abap data dictionary

1067


What are the domains and data element?

1011


what is difference between user exit, customer exit and badi?

5174


What is the function of a data element? : abap data dictionary

1055


Explain what is the difference between sy-tabix and sy-index? Where it is used?

1021


What is the collect statement?

1124