09-23-2008 4:57 AM
Hi ,
Requirement - One screen having calendar and seperate table control .
User will click on any date on calendar , that date will come in table control.
Suppose user click 3 time on 3 different date , then selected 3 date has to come in
table control .
Question : So please help me as how to dislpay Calendar on screen ?
How to get user selected date in table control ?
09-23-2008 5:01 AM
hi,
use SY-DATUM as refernce
you will get the calender automatically in F4 help
regards
prasanth
09-23-2008 5:03 AM
Hi,
We can give SY-DATUM for the field to display calendar
then in table control we can pass the value of sy-datum.
so make the field's type as SY_DATUM.
thanx.
09-23-2008 5:05 AM
09-23-2008 5:15 AM
Hi ,
Thanks for your response .
Please execute T-CODE: CATSXT_ADMIN enter any personnal no , after enter , screen will come
having date calendar(Time/key figures ) and table control . So their if click on date that date will come in table control .
So please help me how to display date calendar on screen ?
09-23-2008 6:35 AM
Hi rishu kumar,
U can do it using OO ABAP.
U need to create one Container in Screen and u hv to assign the calender control object for the container...
In Calender container Class cl_gui_calendar u r having many events
LEFT_CLICK_RUN Instance Event Public Left Mouse Button Pressed on Control in Run Mode
LEFT_CLICK_DESIGN Instance Event Public Left Mouse Button Pressed on Control in Design Mode
And Many other Events are present which is useful for ur need...
Refer below classes...
cal_navigator type ref to cl_gui_calendar,
cal_container_nav type ref to
cl_gui_custom_container,
calevent_receiver type ref to lcl_calendar_eh,
cal_navigator_grid type ref to cl_gui_calendar,
cal_container_grid type ref to
cl_gui_custom_container,
calevent_receiver_grid type ref to lcl_calendar_eh,
focus_date type cnca_utc_date,
Refer Include LCATSXTF05 for more information...
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7