Application Development 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: 

How to dislpay calendar on screen ?

Former Member
0 Kudos

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 ?

5 REPLIES 5

prasanth_kasturi
Active Contributor
0 Kudos

hi,

use SY-DATUM as refernce

you will get the calender automatically in F4 help

regards

prasanth

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi Rishu,

Check this one:

Regards,

Chandra Sekhar

Former Member
0 Kudos

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 ?

former_member387317
Active Contributor
0 Kudos

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