Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

CL_GUI_CALENDAR problem

Dear Gurus ,

I used the CL_GUI_CALENDAR method to display a calendar in a dynpro that i made .

My problem is that i want the calendar to start and end at specific dates that i will say ...

Can i do this ..?

Look my code ...

CREATE OBJECT CONTAINER1

EXPORTING

CONTAINER_NAME = 'CALENDAR1'.

MY_CALENDAR1_STYLE = CNCA_STYLE_V_NAVIGATOR +

CNCA_STYLE_DTPICKER.

MY_CALENDAR1_STYLE = CNCA_STYLE_V_NAVIGATOR +

CNCA_STYLE_DTPICKER +

CNCA_STYLE_ALIGNMENT_FIT.

CREATE OBJECT MY_CALENDAR1

EXPORTING

PARENT = CONTAINER1

VIEW_STYLE = MY_CALENDAR1_STYLE.

Please help ....

Tags:
Former Member
Former Member replied

Hi,

When you create the object pass in the parameter FOCUS_DATE.

Regards,

Darren

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question