04-10-2006 8:41 AM
Hi
How to assign a search help for the particular field
in any screen.
By
Prashanth
04-10-2006 8:44 AM
Hi
There are several ways to do that.
Anayway if you're speaking about a dynpro you can assign it in the attribute of that field by screen-painter (trx Se51):
do doubleclick on your field and assign the help in the Dictionary tab.
If you're speaking about selection-screen you shoult use the event AT SELECTION-SCREEN ON VALUE-REQUEST and here use the fm F4IF_FIELD_VALUE_REQUEST
Max
04-10-2006 8:44 AM
Hi
There are several ways to do that.
Anayway if you're speaking about a dynpro you can assign it in the attribute of that field by screen-painter (trx Se51):
do doubleclick on your field and assign the help in the Dictionary tab.
If you're speaking about selection-screen you shoult use the event AT SELECTION-SCREEN ON VALUE-REQUEST and here use the fm F4IF_FIELD_VALUE_REQUEST
Max
04-10-2006 8:47 AM
04-10-2006 8:49 AM
Hi Prashanth,
Attaching a search help to a screen field is easy..
In screen Painter,double click on the field,
In the search help section, give the search help name.
Done...
Regards,
SP.
04-10-2006 9:00 AM
Hi Prashant
there are many ways to assign search help to a field
you can assign search help to the data element of that field in the dictionary.. so that in all the fields refering to that data element this help will be displayed..
or you can directly assign it in the sceen painter by double clicking the field..
but the disadvantge of this is.. it is not reusable
04-10-2006 9:13 AM
Others have already filled in with inputs however, if you have a parameter or select-option and you want to add a search help to it, (assuming you have already created the search help) use this addtion while declaring parameter/Select-option
PARAMETER p_parameter [TYPE/LIKE] MATCHCODE ID <Search help name>
04-10-2006 9:25 AM
04-10-2006 9:32 AM
Hi,
**How to assign a search help for the particular field
in any screen.
- insert the event PROCESS ON-VALUE-REQUEST in the program and add a field statement for the field that should trigger the F4 help. In the mdoule called from <b>PROCESS ON-VALUE-REQUEST</b>, call function module
F4IF_FIELD_VALUE_REQUEST.
<b>Samples code:</b>
PROCESS ON VALUE-REQUEST.
FIELD it_zsd00003-prctr MODULE f4_help_for_pctr.
MODULE f4_help_for_pctr INPUT.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = 'ZSD00003'
fieldname = 'PRCTR'
SEARCHHELP = ' '
SHLPPARAM = ' '
dynpprog = 'ZSD00002_BRUGERKONV_LISTE'
dynpnr = '0100'
dynprofield = 'IT_ZSD00003-PRCTR'
STEPL = 0
value = '50*'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
SUPPRESS_RECORDLIST = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
TABLES
RETURN_TAB =
EXCEPTIONS
FIELD_NOT_FOUND = 1
NO_HELP_FOR_FIELD = 2
INCONSISTENT_HELP = 3
NO_VALUES_FOUND = 4
OTHERS = 5
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
There is <b>on more example with code</b> , just copy and paste the code and design the screen and you will be able to find ur search help.
Find the code:
Hope this will help you.
Cheers
Sunny
Rewrd points, if found helpful
04-10-2006 9:41 AM
Hi,
You can do that, is it custom screen?
Check these demo programs
<b>DEMO_DYNPRO_F4_HELP_DYNPRO
DEMO_DYNPRO_F4_HELP_MODULE </b>
Regards
vijay