05-11-2007 8:10 AM
Hi,
help me out in creating a <b>F1 help</b> for the fields. Its urgent
thanks ,
Shiva shekar k
05-11-2007 8:16 AM
Hi,
Plz go through the below links..
http://informit.mit.edu/erp_manuals/gui_help/getstarted/gsHELP.html
http://help.sap.com/saphelp_xi20sr1/helpdata/en/73/69f02c55bb11d189680000e829fbbd/content.htm
Regards,
Nagaraj
05-11-2007 8:13 AM
Hi,
Try out this Function Module HELP_OBJECT_SHOW_FOR_FIELD and
HELP_OBJECT_SHOW
Regards,
Kasi S
05-11-2007 8:13 AM
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.
05-11-2007 8:14 AM
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.
05-11-2007 8:17 AM
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.
05-11-2007 8:16 AM
Hi,
Check the link below for creating collective search help
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee86446011d189700000e8322d00/content.htm
Check the ink below for creating elementary search help
http://help.sap.com/saphelp_erp2005/helpdata/en/cf/21ee5f446011d189700000e8322d00/content.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/3d/e53642e2a3ab04e10000000a1550b0/content.htm
05-11-2007 8:16 AM
Hi,
Plz go through the below links..
http://informit.mit.edu/erp_manuals/gui_help/getstarted/gsHELP.html
http://help.sap.com/saphelp_xi20sr1/helpdata/en/73/69f02c55bb11d189680000e829fbbd/content.htm
Regards,
Nagaraj
05-11-2007 8:36 AM
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