Application Development and Automation 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 only

last two hours data

Former Member
0 Likes
499

Hi,

for every run of the program i want to take last two hours data of vbak table.

how to achieve this

3 REPLIES 3
Read only

jayakummar
Active Participant
0 Likes
468

hai ,

do below code,

data : cur type sy-uzeit value sy-uziet.

data : per type sy-uzeit value sy-uzeit.

per+find the correct possition of hours) = per - 2.

select * from vbak into table inttable where erzet le cur and erzet ge per.

reward if useful.

regards,

jai.m

Read only

0 Likes
468

Hi Jayakumar,

thanks for the input

Issue has been resolved and written as below

RANGES : o_cr_time FOR sy-uzeit.

o_cr_time-low = sy-uzeit - 7200.

o_cr_time-high = sy-uzeit.

o_cr_time-option = 'BT'.

o_cr_time-sign = 'I'.

APPEND o_cr_time.

Select a b c into itab where erzet in o_cr_time.

Read only

0 Likes
468

issue resolved, closing the thread