Hi, My question is " How to display 3rd highest salary
record from the internal table. The internal table has 2
fields named emno(Employee number) and salary.".
Send answer to my mail shaiksha.it@gmail.com.
Thanking you.
Answer Posted / dileep kumar chinnaiah
READ TABLE gt_emp INTO gw_emp INDEX 3.
Does not work's if two employees has same salaries. So stop
following this procedure.
The Interviewer exactly looking for Control break statements.
use Sort descending by salary & loop internal table. &
maintain a counter under "AT NEW" & catch the value of
employee ID, when your condition triggers.
| Is This Answer Correct ? | 15 Yes | 2 No |
Post New Answer View All Answers
What is the meaning of abap editor integrated with abap data dictionary? : abap data dictionary
Why do we need to code a loop statement in both the pbo and pai events for each table in the screen?
Is a logical database a requirement/must to write an abap/4 query?
What is the company code? : sap abap hr
What is sequence of event triggered in report?
How to upload data using catt ? : abap hr
What is the difference between commit-work and rollback-work tasks?
What is the process to enhance the Infotype
What is the difference between a structure and a table?
How do you find the tables to report from when the user just tell you the transaction he uses? And all the underlying data is from SAP structures?
What is a data element?
What is the function of a domain? : abap data dictionary
Did you create secondary index?
What are the problems in processing batch input sessions? How is batch inputprocess different from processing online?
What is erp? : sap abap hr