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
After running a BDC program in background, next day morning when you see the results, few records are not updated(error records). What will you do then ?
What happens if a function module runs in an update task?
What happens when you post goods issue after delivery? How does the inventory get reduced after the delivery?
What are the personnel administration related infotypes? : abap hr
What are the different message types available in the abap/4 ?
How the Sy-Mandt value gets updated in the table and Is this having any foreign key relationship.
How do you set up background jobs in sap? What are the steps?
What is the lock object?
Difference between sy-tabix and sy-index? Where it is used? Can you check sy-subrc after perform?
what is diff between ECC 5.0 AND ECC 6.0
What is the function of the transport system and workbench organiser? : abap data dictionary
What is the difference between sy-tabix and sy-index? Where it is used?
What are the attributes of the data? : abap data dictionary
How can you distinguish between different kinds of parameters?
How to write a bdc – how do you go about it?