Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

"read" command

Former Member
0 Kudos

how can i execute the "read" command with more then 1 key ???

thanks

1 ACCEPTED SOLUTION

former_member188685
Active Contributor
0 Kudos
sort it_data by  vbeln posnr.
"when you use binary search you need to sort
"use binary search to improve performance
read table it_data with key vbeln = somevbeln 
                                       posnr = someposnr
                             binary search.

or you can do this ,

read table it_data with key vbeln = somevbeln 
                                       posnr = someposnr.

1 REPLY 1

former_member188685
Active Contributor
0 Kudos
sort it_data by  vbeln posnr.
"when you use binary search you need to sort
"use binary search to improve performance
read table it_data with key vbeln = somevbeln 
                                       posnr = someposnr
                             binary search.

or you can do this ,

read table it_data with key vbeln = somevbeln 
                                       posnr = someposnr.