04-17-2008 12:29 PM
I have a field called W_TEST-DTF01 in my application.As soon as user drills down no data is coming.
I wish tht calender should appear.As in std date fieds.How can i do so.
(Where i can define this domain........SYDATS) or suggest other way round.Its urgent.Plz guide.
Thanks
04-17-2008 12:33 PM
Hi,
Define this field with the type sy-datum.
Or if it is structure define this data element with the type of DATS.
Regards,
04-17-2008 12:33 PM
Hi,
Define this field with the type sy-datum.
Or if it is structure define this data element with the type of DATS.
Regards,
04-17-2008 12:35 PM
04-17-2008 12:48 PM
Make sure your field on the screen is 10 wide to handle MM/DD/YYYY.
Make sure the DOMAIN of the data element is DATUM.
04-17-2008 12:37 PM
Hi,
While Designing the module pool program declare the field as standard data element field available so that it will take the searchhelp and display the calender when u press F4.
Is that u r requrement.
04-17-2008 12:37 PM
hi this is for the f4 help for the date field..
report message-id zmsf.
DATA:
l_select_date LIKE workflds-gkday,
l_select_week LIKE scal-week.
pop up calendar.
CALL FUNCTION 'F4_DATE'
EXPORTING
date_for_first_month = sy-datum
IMPORTING
select_date = l_select_date
select_week = l_select_week
EXCEPTIONS
calendar_buffer_not_loadable = 1
date_after_range = 2
date_before_range = 3
date_invalid = 4
factory_calendar_not_found = 5
holiday_calendar_not_found = 6
parameter_conflict = 7
OTHERS = 8.
IF sy-subrc <> 0.
EXIT.
ENDIF.
Validate date - An invalid date is caused by using the cancel
button on the calendar
CALL FUNCTION 'DATE_CHECK_PLAUSIBILITY'
EXPORTING
date = l_select_date
EXCEPTIONS
plausibility_check_failed = 1
OTHERS = 2.
IF sy-subrc <> 0.
User has cancelled the calendar
EXIT.
endif.
regards,
venkat.