Skip to Content
avatar image
Former Member

F4 Help In Module Pool Program

Hi experts,

How to create F4 help for an input field on selection screen in module pool program.'

I have developed a module pool program. On selection screen

when i press F4 on vbeln field then it should display and the order numbers along with item numbers i.e both VBELN AND POSNR VALUES.

Thanks & Regards

Neelesh

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Jun 21, 2008 at 10:51 AM

    If the field is of dictionary typr i.e vbrk-vbeln..the F$ value will itself come..

    Otherwise use VRM_SET_VALUES , to prepare a internal table with the values u want to be displayed as F4 values....

    Reward points if the above ans is helpful...

    Edited by: Rudra Prasanna Mohapatra on Jun 21, 2008 12:51 PM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 21, 2008 at 11:06 AM

    hi,

    try this one.......

    PROCESS ON VALUE-REQUEST.

    FIELD ZVLOAD_PROD_COMB-LOC_NO MODULE VALUE_LOC_NO.

    code inside MODULE -


    VALUE_LOC_NO

    DATA : BEGIN OF INT_TAB_ID OCCURS 0,

    TAB_ID TYPE ZALOAD_PROD_COMB-TAB_ID,

    END OF INT_TAB_ID.

    DATA : LOC_MAX TYPE ZALOAD_PROD_COMB-TAB_ID.

    CLEAR INT_TAB_ID.

    REFRESH INT_TAB_ID.

    SELECT MAX( TAB_ID) INTO (LOC_MAX) FROM ZALOAD_PROD_COMB.

    COUNT = LOC_MAX + 1.

    DO 10 TIMES.

    MOVE COUNT TO INT_TAB_ID-TAB_ID.

    APPEND INT_TAB_ID.

    COUNT = COUNT + 1.

    ENDDO.

    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

    EXPORTING

    RETFIELD = 'TAB_ID' u201C Internal table field name

    DYNPPROG = 'PROG_NAME u201C Program name

    DYNPNR = SY-DYNNR

    DYNPROFIELD = 'TAB_ID' u201C Field where u need F4 help

    VALUE_ORG = 'S'

    WINDOW_TITLE = u2018Any descriptionu2019

    TABLES

    VALUE_TAB = INT_TAB_ID. u201C Internal table name

    IF SY-SUBRC <> 0.

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

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

    ENDIF.

    reward points if useful.......:-)

    and mark the post answered once ur problem is solved .... 😊

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 21, 2008 at 01:33 PM

    Hi Neelesh,

    Go to the attributes of your VBELN field in SE51 (screen painter) and in the field for Search Help, mention search help WTY_F4_VBAP

    This search help returns Sales Document and Item along with some additional information.

    If this does not serve your purpose, go to Se11 and do a where used list on your data element for search helps. You will get a good hit list and select a suitable search help.

    Cheers,

    Aditya

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 16, 2011 at 02:58 PM

    thanks

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 16, 2011 at 02:58 PM

    thanks

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 16, 2011 at 02:58 PM

    thanks

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      I created table control in module pool, in that one particular field i need to give f4 help.How to create f4 help in table control firld

      Will u please help me