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: 

date problem

former_member1349771
Participant
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

Define this field with the type sy-datum.

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

Regards,

0 Kudos

done still not working

0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.