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

F4 help for date field

Former Member
0 Likes
4,272

Hello All,

I am using DATS 8 as a domain for date field but f4 help is not coming

Help me.

What to do ?

Thanks ....................

Hello All,

I am using DATS 8 as a domain for date field but f4 help is not coming

Help me.

What to do ?

Thanks ....................

10 REPLIES 10
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
2,780

Where is it not coming? On a selection screen?

Regards,

Rich Heilman

Read only

Former Member
0 Likes
2,780

Is there a specfic reason for using DAT , because the F4 results can be obtained using SY-DATUM

Read only

prasanth_kasturi
Active Contributor
0 Likes
2,780

hi ,

Create the domain and dataelement of the field same as like of sy-datum.

It has F4 enabled

regards

prasanth

Read only

Former Member
0 Likes
2,780

Hello VJ.

If you need an F4 Help for a Date field, you can use the Data type as sy-datum.

It would serve the purpose.

Thanks.

Sruti

Read only

Former Member
0 Likes
2,780

Hi,

F4 help should automatically come if you are using DATS08 domain in data element definition. Please check if data element is activated or not.

Please reward if you find the answer useful.

Regards,

Kamesh

Read only

Former Member
0 Likes
2,780

HI,

If u are in Diallog Program then use 'F4_DATE' FM.

Example :

CALL FUNCTION 'F4_DATE'

EXPORTING

date_for_first_month = sy-datum

IMPORTING

select_date = wa_asgntkts-begda

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.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Or

If u are in Report Program then maintain ur data type as sy-datum.

Please give neccessary points if u help this..

Ranjith

Read only

Former Member
0 Likes
2,780

if you using module pool go on property field of that text box change its format to dats.

even if its not coming use calender object

Read only

Former Member
0 Likes
2,780

Hi V J

If you are using any dialog program then use the call function f4if_field_value_request at process at value-request.


call function f4if_field_value_request
    exporting
      tabname                   = ztable name
      fieldname                 = field name
   tables
     return_tab                = it_date

I think u got my point

Regards

Mihir

Read only

Former Member
0 Likes
2,780

In the screen painter attribute

Go to Program Tab.

In the "Poss Entries Key" select 2.

Read only

Former Member
0 Likes
2,780

hi,

if you are using a screen, then give BU_DATE_CHAR in the search help field.

you will get the required help for the date field.

Regards,

Sireesha