Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3441

Internal table - data fetch

$
0
0

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

NameDepartmentWork Experience
Mark Operations10
DanielIT12
David HR14
LeoIT15
JustinIT17
WilsonOperations20

 

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.


Viewing all articles
Browse latest Browse all 3441

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>