Application Development and Automation 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: 
Read only

date problem

Former Member
0 Likes
677

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
638

Hi,

Define this field with the type sy-datum.

Or if it is structure define this data element with the type of DATS.

Regards,

5 REPLIES 5
Read only

Former Member
0 Likes
639

Hi,

Define this field with the type sy-datum.

Or if it is structure define this data element with the type of DATS.

Regards,

Read only

0 Likes
638

done still not working

Read only

0 Likes
638

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.

Read only

Former Member
0 Likes
638

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.

Read only

Former Member
0 Likes
638

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.