Application Development 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: 

F1 help on a field in module pool programming

Former Member
0 Kudos
1,407

I want to create f1 help on a field in module pool programming. How to use POH event. where should i write the help documentation. Before using this f1 help on a field i have to set some properties on GUI interface Editor. Please clearly mention the steps i have to follow.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
340

Hi Sasi,

Which particular field are you trying to show the help for? In case its a field from yor Z table, you can create the text for the field at the <b>Data Element Level</b>. This gets called automatically when you press F1 on the screen. In case its a standard field, then too the documentation will show automatically if it has been defined in standard SAP. All you need to ensure is that the variable attached tot he field is derived from the Data Element where the documentation has been defined.

Otherwise you can use the following method:

1) Create standard text in SO10.

2) Read this text into and internal table using FM READ_TEXT.

3) Display this information on a screen and call that screen in your POH Module specifying Height and Width parameters.

Please let me know in case you need any further information.

Regards,

Madhur

NB: Please so award points if found helpful.

8 REPLIES 8

hymavathi_oruganti
Active Contributor
0 Kudos
340

in POH,

CALL THE FN MODULE

POPUP_DISPLAY_TEXT.

EXAMPLE

DATA: info_msg LIKE DOKHL-OBJECT

VALUE 'BC_SEC_USR_GUM_INFO'.

************************************************************************

  • Deaktivation of Golbal User Manager note 433941 *

************************************************************************

CALL FUNCTION 'POPUP_DISPLAY_TEXT'

EXPORTING

LANGUAGE = SY-LANGU

POPUP_TITLE = 'Wichtige Systeminformation'

  • START_COLUMN = 10

  • START_ROW = 3

TEXT_OBJECT = info_msg

  • HELP_MODAL = 'X'

  • IMPORTING

  • CANCELLED =

EXCEPTIONS

TEXT_NOT_FOUND = 1

OTHERS = 2.

Message was edited by: Hymavathi Oruganti

0 Kudos
340

PROCESS ON HELP-REQUEST.

FIELD P_LFA1 MODULE HELP_F1_LIFNR.

MODULE HELP_F1_LIFNR INPUT.

PERFORM SHOW_HELP_F1 USING 'ZFAG_DOC1'.

ENDMODULE. " help_f1_lifnr INPUT

FORM SHOW_HELP_F1 USING P_OBJECT.

  • Dati testo help

DATA: T_LINE LIKE TLINE OCCURS 0,

XHEAD LIKE THEAD,

HELP_INFO LIKE HELP_INFO,

TEXC LIKE SY-UCOMM OCCURS 0,

V_OBJECT LIKE DOKHL-OBJECT.

  • Costante

DATA: PREF_SIMG(4) VALUE 'SIMG',

DOCID_HY LIKE DOKHL-ID VALUE 'HY'.

  • Testo

CONCATENATE PREF_SIMG P_OBJECT INTO V_OBJECT.

  • Estrazione testo

CALL FUNCTION 'DOCU_GET_FOR_F1HELP'

EXPORTING

ID = DOCID_HY

LANGU = SY-LANGU

OBJECT = V_OBJECT

IMPORTING

HEAD = XHEAD

TABLES

LINE = T_LINE

EXCEPTIONS

RET_CODE = 1

OTHERS = 2.

CASE SY-SUBRC .

WHEN 0.

  • Visualizzazione testo

GET CURSOR FIELD HELP_INFO-DYNPROFLD.

HELP_INFO-DOCUID = DOCID_HY.

HELP_INFO-DOCUOBJECT = V_OBJECT.

HELP_INFO-SPRAS = SY-LANGU.

HELP_INFO-PROGRAM = SY-REPID.

HELP_INFO-DYNPRO = SY-DYNNR.

HELP_INFO-DYNPPROG = SY-REPID.

HELP_INFO-PFKEY = SY-PFKEY.

HELP_INFO-FIELDNAME = HELP_INFO-DYNPROFLD.

CALL FUNCTION 'HELP_DOCULINES_SHOW'

EXPORTING

HELP_INFOS = HELP_INFO

OVERLAY_HEADER = XHEAD

TABLES

EXCLUDEFUN = TEXC

HELPLINES = T_LINE.

WHEN OTHERS. MESSAGE S720(SH).

ENDCASE.

ENDFORM. " SHOW_HELP_F1

Former Member
0 Kudos
340

Hi Sasi,

Syntax for the same.

AT SELECTION-SCREEN ON HELP-REQUEST FOR p_carr_2.

CALL SCREEN 100 STARTING AT 10 5

ENDING AT 60 10.

For more details check the examples in ABAPDOCU.

Cheers

Sunny

former_member186741
Active Contributor
0 Kudos
340

I think the easiest way is to use a dictionary defined field on your screen and the dictionary documentation will be automatically picked up. i.e. don't use an internally defined data variable such as w_my_field, use ztable-zmyfield instead and have the doco in se11.

Former Member
0 Kudos
341

Hi Sasi,

Which particular field are you trying to show the help for? In case its a field from yor Z table, you can create the text for the field at the <b>Data Element Level</b>. This gets called automatically when you press F1 on the screen. In case its a standard field, then too the documentation will show automatically if it has been defined in standard SAP. All you need to ensure is that the variable attached tot he field is derived from the Data Element where the documentation has been defined.

Otherwise you can use the following method:

1) Create standard text in SO10.

2) Read this text into and internal table using FM READ_TEXT.

3) Display this information on a screen and call that screen in your POH Module specifying Height and Width parameters.

Please let me know in case you need any further information.

Regards,

Madhur

NB: Please so award points if found helpful.

Former Member
0 Kudos
340

The most easy way to create F1 help is from Data element. Make F1 help on the data element of that Field.

1. Go to SE11.

2. Write the data element name in Data type.

3. open in change mode.

4. click on Documentation.

5. Write Your Text there.

Regards

Ravi Arora

vinod_gunaware2
Active Contributor
0 Kudos
340

Hi

HELP_VALUES_GET_EXTEND

HELP_START

POPUP_GET_VALUES_USER_HELP

use above two function.

regards

vinod

Former Member
0 Kudos
340

Hi,

Please see the below mention syntax, if it helps please award suitable points and close the thread.

Regards,

Irfan Hussain

****************

syntax

process on help-request.

field sflight-carrid module help-for-carrid.

In the module pool program

Module Help.

Write:/'This field is from sflight table'.

write:/'This is of four character'.

endmodule.

when the user press F1 on this particular field then this mesaage will be displayed on the screen.