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 are base tables of an aggregate object? : abap data dictionary

1082


How many default tab strips are there? How to insert more tabs in it?

1130


Value table VS check Table.

1479


What are plan versions used for? : sap abap hr

1058


What are the features of abap/4 dictionary? : abap data dictionary

1074


when does a list get sent to the screen on the presentation layer?

1958


What is difference between inner join and outer join?

1095


What are the commands used for interactive reports?

1096


In a loop of an internal table, what is the use of at first & at last statements?

1971


Define database layer?

1044


Can you assign a matchcode object to a parameter? If so how?

1051


What is the company code? : sap abap hr

1100


How do we handle multiple line items in BDC's.

7600


How are BAPI different from Normal function modules ?

2145


What is synchronous update?

1022