4 Replies Latest reply: Mar 11, 2008 10:05 AM by Shibino .k RSS

F4 help for date field on screen painter

Ekta jain
Currently Being Moderated

Hi ,

 

I created a screen using dialog programming . I have a date field there which is defined as

 

itab-date.

 

The format for this field in Element list is DATS .

 

How do i get a drop down on the date field on the screen .

 

Please advise

 

Thanks !

  • Re: F4 help for date field on screen painter
    ADITYA MITTAL
    Currently Being Moderated

    HI

     

    Go to screen painet and go to attributes of field by DB clik on it. If you want to apply your own search help then give its name under ATTR-DICT-search help otherwise go to ATTR-PROGRAM-Poss.entries-2.

     

    Regards

    Aditya

  • Re: F4 help for date field on screen painter
    Mehul Shah
    Currently Being Moderated

    In Report u have to add,

     

    TYPES: BEGIN OF TY_F4HELP,                  

              ENAME  TYPE PA0001-ENAME,

              PERNR  TYPE PA0001-PERNR,

           END OF TY_F4HELP.

     

    Data:   IT_F4HELP TYPE STANDARD TABLE OF TY_F4HELP WITH HEADER LINE.

     

    *Begin of add F4 in Parameter field Ename.

    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_ENAME.

      DATA: IT_RETURN_TAB TYPE ddshretval OCCURS 0 WITH HEADER LINE . " Return table for F4 help

     

      SELECT DISTINCT ename pernr

        FROM PA0001

        INTO TABLE IT_F4HELP.

     

      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

        EXPORTING

          RETFIELD        = 'ENAME'

          VALUE_ORG       = 'S'

        TABLES

          VALUE_TAB       = IT_F4HELP

          RETURN_TAB      = it_return_tab

        EXCEPTIONS

          PARAMETER_ERROR = 1

          NO_VALUES_FOUND = 2

          OTHERS          = 3.

      READ TABLE it_return_tab INDEX 1.

      IF SY-SUBRC <> 0.

      ENDIF.

      IF sy-subrc = 0.

        MOVE it_return_tab-fieldval TO P_ename.

      ENDIF.

      CLEAR: it_return_tab.

    *End of add F4 in Parameter field Ename.

  • Re: F4 help for date field on screen painter
    Shibino .k
    Currently Being Moderated

    Hi,

     

    In field attribute,you can give the field name as syst-datum and click the check box from dictionary.Then you will get search help for that date field

     

    Reward if useful.

     

    Regards

    Shibin

Actions