Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

How to select by Range?

$
0
0

Hi Experts,

 

I want to get the data when people log in and  this data was save in two tables A and B.

A has the information but without the user_name

so I need to select the A table first and get the user_name in table B

And I also try to set a 5 sec buffer just in case

so here comes the problem!!!!!!!!!!

 

 

I use Range to set the buffer

 

r_utime-sign = 'I'.

r_utime-option = 'BT'.

r_utime-low = icd-utime.

r_utime-high = icd-utime + 000005.

 

 

   SELECT SINGLE * FROM B

   WHERE clas = icd-clas

   AND   id = icd-id

   AND   udate = icd-udate

   AND   utime IN r_utime

   .

For Example.

I have a data like below

   sign = I

    option = BT

   low = 141430

    high = 141435

 

But after execute the program,I still get a data which it's time = 141152

it should not in this report.Because 141152  not between  141430~141435.

Is any wrong happen in my program?


Viewing all articles
Browse latest Browse all 8332

Trending Articles



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