Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Add a f4 Search help to standard program screen-field

I want to add f4 search help to a standard program screen-field of T.code FV50 ,on Doc header text field, please guide me i  searched google but couln't find a satisfactory answer please help me on this regard as whether I should go for field enhancement or any other technique. As I am working on standard program very first time so your help would be highly appreciated .

Tags:
Former Member
replied

Hi Amir,

Instead of going for the Access Key iwould suggest you to go for an implicit enhancement where you can have the flexibility during upgrade.

Use Function Module HELP_START in se37 -Go to -> Enhancement Operations ->Show Implicit enhancement Options

Then you will shown the enhancement possibilities by """"""""""""""""""""""""""""""""""""""""""""""""""" line

click the Enhace button on application tool bar and

at the start of the FM right click on the line above and ->Enhancement Operations->Create Implementation

There you call pass the search help as per your requirement.

You can refer the following code here i tried giving F4 help in reservation unloading point field  with equipment no.

IF ( SY-TCODE = 'MB21' OR SY-TCODE = 'MB22' ) AND

         HELP_INFOS-FIELDNAME = 'ABLAD' AND HELP_INFOS-DYNPROFLD = 'RESB-ABLAD'

         AND HELP_INFOS-DYNPPROG = 'SAPMM07R'.

      DATA: tl_return TYPE STANDARD TABLE OF ddshretval,

            wl_return TYPE ddshretval.

CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'

   EXPORTING

     tabname                   = 'RESB'

     fieldname                 = 'ABLAD'

    SEARCHHELP                = 'EQUI'

    SHLPPARAM                 = 'EQUNR'

    DYNPPROG                  = sy-cprog

    DYNPNR                    = sy-dynnr

    DYNPROFIELD               = 'RSEB-ABLAD'

*   STEPL                     = 0

    VALUE                     = 'X'

*   MULTIPLE_CHOICE           = ' '

*   DISPLAY                   = ' '

*   SUPPRESS_RECORDLIST       = ' '

*   CALLBACK_PROGRAM          = ' '

*   CALLBACK_FORM             = ' '

*   CALLBACK_METHOD           =

*   SELECTION_SCREEN          = ' '

* IMPORTING

*   USER_RESET                =

  TABLES

    RETURN_TAB                = tl_return

  EXCEPTIONS

    FIELD_NOT_FOUND           = 1

    NO_HELP_FOR_FIELD         = 2

    INCONSISTENT_HELP         = 3

    NO_VALUES_FOUND           = 4

    OTHERS                    = 5.

      IF sy-subrc = 0 AND LINES( tl_return ) = 1.

        READ TABLE tl_return INTO wl_return INDEX 1.

        selection = 'X'.

        select_value = wl_return-fieldval.

        EXIT.

      ENDIF.

ENDIF.


try and revert if any issues.


Regards,

Pavan

1 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question