‎2007 Jun 05 2:58 PM
hallow
i wont in my selection screen hours and days.
how i declare it
example
from hour to hour
same with day.
and in which field i catch the hour-low and high.
regards
‎2007 Jun 05 3:01 PM
‎2007 Jun 05 3:00 PM
Hi,
You can default the select-options values at INITIALIZATION event.
or
select-options: so_day for vtbbewe-atage default '1' to '2',
so_time for sy-uzeit default sy-uzeit to sy-uzeit.
Regards,
Ferry Lianto
‎2007 Jun 05 3:10 PM
hi ferry
if user wont to see report from 14:00 until 15:00.
where i find this fields becouse i use functin in my report and the function
wont date that the user put
regards
‎2007 Jun 05 3:01 PM
Hi Antonio,
I haven't clearly understood your requirement. But I guess, you need to display the the current date and time in the selection screen, whenever your program is executed. If that is the case, you can go for SY-UZEIT and SY-DATUM.
If not, specify your requirement a little more clearly.
Regards
Anil Madhavan
‎2007 Jun 05 3:01 PM
‎2007 Jun 05 3:07 PM
hi rich
yes somthing like that but
if user wont to see report from 14:00 until 15:00.
where i find this fields
regards
‎2007 Jun 05 3:10 PM
‎2007 Jun 05 3:12 PM
You can use the System field SY-UZEIT , This will have the current time.
use the INITIALIZATION event to set the required values to teh Select options based on Current time
Regards,
guarav
‎2007 Jun 05 3:13 PM
hi rich
this hours i have to move to function that i use in my report same is the day
like s_uzeit-low and high
where i find them
Regards
‎2007 Jun 05 3:17 PM
Within the Program an internal table will be created with the Name of the select option.
You can use the following
data : v_time1 type SYUZEIT,
v_time2 type SYUZEIT.
Loop at S_TIME.
move s_time-low to v_time1.
move s_time-HIGH to v_time2.
endloop.
Use the Variable V_TIME1 & V_TIME2 in the FM to pass these vaules.
Kindly be generous with points
‎2007 Jun 05 3:17 PM
‎2007 Jun 05 3:02 PM
You can try something like the following..
selection-screen begin of line.
selection-screen comment 2(20) 'From Date & Time'(t01).
selection-screen position 40.
parameters:
p_frdat like sy-datum.
selection-screen position 55.
parameters:
p_frtim like sy-uzeit.
selection-screen end of line.
selection-screen begin of line.
selection-screen comment 2(20) 'To Date & Time'(t02).
selection-screen position 40.
parameters:
p_todat like sy-datum.
selection-screen position 55.
parameters:
p_totim like sy-uzeit.
selection-screen end of line.
~Suresh
‎2007 Jun 05 3:06 PM
HI,
create structure which contains days and hours,
than use it in selct-options
reward if helpful,
regards,
Imran