06-29-2006 6:35 AM
Hi all,
This is may be simple to u all, but i need the solution for this,
I want to show the Current date in the Screen, i am using the structure. but the calendar control showing when i run the program. But i want to show the current date as default.
Thanks
Shankar
06-29-2006 6:39 AM
Is this a screen or a report?
If its a report, try assigning DEFAULT sy-datum (to the parameter/select-option name)
If its a screen field, try writing this in the PBO:
IF fieldname IS INITIAL.
fieldname = sy-datum.
ENDIF.
Hope this helps.
Sudha
06-29-2006 6:39 AM
parameters: p_date like sy-datum value sy-datum
or
In INITIALIZATION.
p_date = sy-datum.
06-29-2006 6:39 AM
Is this a screen or a report?
If its a report, try assigning DEFAULT sy-datum (to the parameter/select-option name)
If its a screen field, try writing this in the PBO:
IF fieldname IS INITIAL.
fieldname = sy-datum.
ENDIF.
Hope this helps.
Sudha
06-29-2006 7:35 AM
Hi,
if you use class CL_GUI_CALENDAR use methodes:
1) SET_TODAY
or 2) SET_DAY_INFO
Andreas
06-29-2006 7:38 AM
06-29-2006 8:10 AM
Hi MP,
Copy and paste this code
parameters: p_date like sy-datum.
INITIALIZATION.
p_date = sy-datum.
execute your code.