Skip to Content
author's profile photo Former Member
Former Member

F1-Help for Field

Hi all,

How do i add f1 i.e.,Documentation to a field which is given in Selection-screen.i.e., when i click f1 on a field it should give Documentation regarding it.

Thanks in Advance.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

7 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 23, 2008 at 05:04 AM

    Hi,

    Plz check the below code :

    DATA:  TEXT(30),
           VAR(4),
           INT TYPE I,
           LINKS TYPE TABLE OF TLINE,
           FIELD3, FIELD4.
    
    TABLES DEMOF1HELP.
    
    TEXT = TEXT-001.
    
    CALL SCREEN 100.
    
    MODULE CANCEL INPUT.
      LEAVE PROGRAM.
    ENDMODULE.
    
    MODULE F1_HELP_FIELD2 INPUT.
      INT = INT + 1.
      CASE INT.
        WHEN 1.
        VAR = '0100'.
        WHEN 2.
        VAR = '0200'.
        INT = 0.
      ENDCASE.
    ENDMODULE.
    
    MODULE F1_HELP_FIELD3 INPUT.
      CALL FUNCTION 'HELP_OBJECT_SHOW_FOR_FIELD'
           EXPORTING
                DOKLANGU                      = SY-LANGU
                DOKTITLE                      = TEXT-002
                CALLED_FOR_TAB                = 'DEMOF1HELP'
                CALLED_FOR_FIELD              = 'FIELD1'.
    ENDMODULE.
    
    MODULE F1_HELP_FIELD4 INPUT.
      CALL FUNCTION 'HELP_OBJECT_SHOW'
           EXPORTING
                DOKCLASS                      = 'TX'
                DOKLANGU                      = SY-LANGU
                DOKNAME                       = 'DEMO_FOR_F1_HELP'
                DOKTITLE                      = TEXT-003
           TABLES
                LINKS                         = LINKS.
    ENDMODULE.
    

    Document name that is passed as parameter is made by SE61.

    Even we have another function module :

    at selection-screen on help-request for p_name1.
    
    CALL FUNCTION 'DSYS_SHOW_FOR_F1HELP'
      EXPORTING
    *   APPLICATION              = 'SO70'
        dokclass                 = 'TX'
        DOKLANGU                 = SY-LANGU
        dokname                  = 'Z_DHANU_DEMO'
    *   DOKTITLE                 = 'This appears as bold title'
    *   HOMETEXT                 = ' '
    *   OUTLINE                  = ' '
    *   VIEWNAME                 = 'STANDARD'
    *   Z_ORIGINAL_OUTLINE       = ' '
    *   CALLED_FROM_SO70         = ' '
    *   SHORT_TEXT               = ' '
    *   APPENDIX                 = ' '
    * IMPORTING
    *   APPL                     =
    *   PF03                     =
    *   PF15                     =
    *   PF12                     =
     EXCEPTIONS
       CLASS_UNKNOWN            = 1
       OBJECT_NOT_FOUND         = 2
       OTHERS                   = 3
              .
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    

    'Z_DHANU_DEMO' is documentation made by Se61.

    hope this helps.

    plz reward if useful.

    thanks,

    dhanashri.

    Edited by: Dhanashri Pawar on Jul 23, 2008 7:09 AM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 23, 2008 at 04:52 AM

    use this in the flow logic .

    PROCESS ON HELP-REQUEST.

    FIELD NETPRIO MODULE F1NPHELP.

    module F1NPHELP input.

    CALL FUNCTION 'HELP_OBJECT_SHOW'

    EXPORTING

    dokclass = 'DE'

    DOKLANGU = SY-LANGU

    dokname = 'ZGRP22_NPHELP'

    DOKTITLE = 'HELP FOR NET PRICE'

    CALLED_BY_PROGRAM = 'ZGRP22_POST_PROJ_1'

    tables

    links = LINE

    • EXCEPTIONS

    • OBJECT_NOT_FOUND = 1

    • SAPSCRIPT_ERROR = 2

    • OTHERS = 3

    .

    IF sy-subrc <> 0.

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

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

    ENDIF.

    The docname given as parameter is the help file which u hv to create thru se61

    regards,

    kartik

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 23, 2008 at 04:54 AM

    hi,

    On event POH you have to create a module for the field for which you want help request and specify the screen number on which that field is present . Then use FM Use ''HELP_OBJECT_SHOW_FOR_FIELD' specifying the table and that field .

    PROCESS ON HELP-REQUEST.

    FIELD ITAB-NETPR MODULE NETPR_POH WITH '1000'.

    MODULE NETPR_POH INPUT.

    CALL FUNCTION 'HELP_OBJECT_SHOW_FOR_FIELD'

    EXPORTING

    CALLED_FOR_TAB = 'EKKO'

    CALLED_FOR_FIELD = 'NETPR'

    EXCEPTIONS

    OBJECT_NOT_FOUND = 1

    SAPSCRIPT_ERROR = 2

    OTHERS = 3.

    ENDMODULE.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 23, 2008 at 04:58 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 23, 2008 at 05:03 AM

    Hi Sharmishta.

    I would like suggest a few,

    1. Create a data element.

    2. Click on Documentation.

    3. Supply neccesary documentation and SAVE.

    4. Create a field in the table and use the created data element.

    5. Use any function module or BAPI or matchcode object definition for using.

    Hope that's usefull.

    Good Luck & Regards.

    Harsh Dave

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 23, 2008 at 05:14 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 23, 2008 at 05:19 AM

    hi sharmista,

    may this will be helpful to you

    MODULE MATNR_POH INPUT.

    CALL FUNCTION 'HELP_OBJECT_SHOW_FOR_FIELD'

    EXPORTING

    CALLED_FOR_TAB = 'MARA'

    CALLED_FOR_FIELD = 'MATNR'

    EXCEPTIONS

    OBJECT_NOT_FOUND = 1

    SAPSCRIPT_ERROR = 2

    OTHERS = 3.

    ENDMODULE.

    ''HELP_OBJECT_SHOW_FOR_FIELD' specifying the table and that field .

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.