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: 

HOW TO CREATE SEARCH HELP

Former Member
0 Kudos

Hi,

help me out in creating a <b>F1 help</b> for the fields. Its urgent

thanks ,

Shiva shekar k

1 ACCEPTED SOLUTION
7 REPLIES 7

Former Member
0 Kudos

Hi,

Try out this Function Module HELP_OBJECT_SHOW_FOR_FIELD and

HELP_OBJECT_SHOW

Regards,

Kasi S

Former Member
0 Kudos

Hi,

U need to use the event HELP-REQUEST:

- Dynpro

PROCESS ON HELP-REQUEST.

FIELD <MY_FIELD> MODULE HELP_F1.

- Report

AT SELECTION-SCREEN ON HELP-REQUEST FOR <MY FIELD> .

PERFORM HELP_F1.

In the routine you have to insert the code to display the text, it depends on how you want to create it.

For example I created a text by trx SO72 and this is the code to display it:

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.

DATA: PREF_SIMG(4) VALUE 'SIMG',

DOCID_HY LIKE DOKHL-ID VALUE 'HY'.

CONCATENATE PREF_SIMG 'Z_MY_DOC' 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.

Hope it helps.

Kumar.

Former Member
0 Kudos

You can refer the following code:

<b>1. For selection screen</b>

SELECTION-SCREEN BEGIN OF BLOCK process WITH FRAME TITLE text-001.

parameter: matnr like mara-matnr.

parameter: ernam like mara-ernam.

SELECTION-SCREEN END OF BLOCK process.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

if matnr is not initial.

select single ernam

from mara

into ernam

where matnr eq matnr.

endif.

MODIFY SCREEN.

ENDLOOP.

<b>For screen</b>

Here you have to code in 'POH' event.

0 Kudos

Another way is that you can create a search help in SE11 and use it in the code.

Ex :

PARAMETERS p MATCHCODE OBJECT mobj.

here mobj is the match code object.

Former Member
0 Kudos

Hi,

Try codes like this:

AT SELECTION-SCREEN ON HELP-REQUEST FOR WDATE.

CALL SCREEN 400 STARTING AT 10 5

ENDING AT 30 12.

  • Write your help in PBO of the screen 400

OR

refer to this program

demo_dynpro_f1_help

try FM FUNCTION DSYS_SHOW_FOR_F1HELP

Jogdand M B