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

time display

Former Member
0 Likes
622

Hi all,

I just want to display the selection screen as follows.

SELECT-OPTIONS : LOW TO HIGH.

HERE : HIGH = current time.

LOW = Current time - 1 hour.

How do i make this ?

Thanks

Krupali

1 ACCEPTED SOLUTION
Read only

JozsefSzikszai
Active Contributor
0 Likes
588

hi,

something like:

SELECT-OPTIONS : s_time FOR ...

INITIALIZATION.

s_time-sign = 'I'.
s_time-option = 'BT'.
s_time-low = s_time-high = sy-uzeit.
s_time-low = s_time-low - 3600.
APPEND s_time.

hope this helps

ec

4 REPLIES 4
Read only

JozsefSzikszai
Active Contributor
0 Likes
589

hi,

something like:

SELECT-OPTIONS : s_time FOR ...

INITIALIZATION.

s_time-sign = 'I'.
s_time-option = 'BT'.
s_time-low = s_time-high = sy-uzeit.
s_time-low = s_time-low - 3600.
APPEND s_time.

hope this helps

ec

Read only

Former Member
0 Likes
588

Hi

Actually ur syntex s wrong

Ex:

select-option:s_ lifnr for lfa1.

high low and all used for authority check.

Regards:

Prabu

Read only

Former Member
0 Likes
588

Hi

use this FM-CATT_ADD_TO_TIME

Read only

naveen_inuganti2
Active Contributor
0 Likes
588

Hi.....

It gives the times as you want...

data: g_time like sy-uzeit.
data: time1 like sy-uzeit,
      time2 like sy-uzeit.

select-options: time for g_time.

INITIALIZATION.
time1 = sy-uzeit.
time2 = sy-uzeit - 3600.
time-low = time1.
time-high = time2.
append time.
clear time.

Thanks,

Naveen.I