Hello all,
I would like to get some quick and best way to read the values from the internal table. I'll explain it with example scenario . I sincerely appreciate all your assistance.
ITAB1
Name | Department | Work Experience |
---|---|---|
Mark | Operations | 10 |
Daniel | IT | 12 |
David | HR | 14 |
Leo | IT | 15 |
Justin | IT | 17 |
Wilson | Operations | 20 |
I have a local variable which will have Work Experience.
Let say if my variable has Work Experience = 18. Then I need to fetch the nearest two records. So in the given example I would like to fetch the rows Justin and Wilson.
Similarly if my variable has Work Experience = 13. So in the given example I would like to fetch the rows Daniel and David.
Please let me know if it make sense!
Thank you,
Justin.