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
7,490

Hi,

I have a field in selection-screen. That field is date field type d. I need to provide F4 help for that. can any one help me in this regard.

Regards,

Pavankumar.

Hi,

I have a field in selection-screen. That field is date field type d. I need to provide F4 help for that. can any one help me in this regard.

Regards,

Pavankumar.

7 REPLIES 7
Read only

Former Member
0 Likes
3,543

Hi Pavan,

Use the Function Module " F4_DATE ". It will solve your problem.

&******** Reward Point if helpful***********&

Read only

Former Member
0 Likes
3,543

Hi

Use this Function Module:-

F4_DATE

displays a calendar in a popup window and allows user to choose a date, or it can be displayed read only.

Reward if help.

Read only

Former Member
0 Likes
3,543

Hi,

In select optins use:

SELECT-OPTIONS: w_date For sy-datum.

Then F5 will be automatically availabel. No need to do anything extra.

Regards

Raju Chitale

Read only

Former Member
0 Likes
3,543

Declare the field of TYPE sy-datum instead of TYPE d, F4 help is provided by default.

Read only

Former Member
0 Likes
3,543

Hi,

It can be done in two ways.

1. By declaraing the parameter of type sy-datum this will by default give the F4 help.

PARAMETERS: P_DATE TYPE sy-datum

.

Or.

2. By using function module

DATA: DATE1 LIKE WORKFLDS-DAY.                          "new
  
CALL FUNCTION 'F4_DATE'
       EXPORTING
            DATE_FOR_FIRST_MONTH         = SY-DATUM
       IMPORTING
            SELECT_DATE                  = DATE1
       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 NOT DATE1 IS INITIAL.
    WRITE DATE1 TO Q0002-GBPAS DD/MM/YYYY.
  ELSE.
    CLEAR Q0002-GBPAS.
  ENDIF.

This will help you.

Plz reward if useful.

Thanks,

Dhanashri.

Edited by: Dhanashri Pawar on Jun 19, 2008 7:09 AM

Read only

Former Member
0 Likes
3,543

Hi,

try using this

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-008.

PARAMETER : path LIKE sy-datum.

SELECTION-SCREEN END OF BLOCK b1.

reward points if useful

Nitin Sachdeva

Read only

Former Member
0 Likes
3,543

Hi

To provide F4 help for field on selection screen just refer to type sy-datum. like

parameters p_date type sy-datum.

If the field is to select in range give as select options.

SELECT-OPTIONS s_date for sy-datum.