‎2007 Jul 25 1:42 AM
Hi all,
How can I create a custom search help for a field? The search help will capture data from a custom table.
Please advice.
Thanks!
‎2007 Jul 25 1:53 AM
Basic Search Help
Creating a basic search help which allows you to provide the user with a selection help to select specific fields from a table or view is very straight forward. Simply create a search help with the desired table as the selection method and add the fields you want them to see/select into the search help parameters section. See below for details of how to create a search help for table TRDIR.
Step1: Execute transaction SE11
Step2: Create new search help called 'ZSH' (must be less than 5 chars long to be used as matchcode)
Step3: Enter the following details
Step4: Save and activate
Step5: Add following line into your program:
PARAMETER p_prog LIKE trdir-name MATCHCODE OBJECT zsh.
Or see other methods of adding a search help.
Please see this link for Screen shot of the Elementary search Help .
http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_elementary.htm
Check with below Link :
Thanks
Seshu
‎2007 Jul 25 6:12 AM
Hi
1) Elementary search helps describe a search path. The elementary search help must define where the data of the hit list should be read from (selection method), how the exchange of values between the screen template and selection method is implemented (interface of the search help) and how the online input help should be defined (online behavior of the search help).
2) Collective search helps combine several elementary search helps. A collective search help thus can offer several alternative search paths.
3)An elementary search help defines the standard flow of an input help.
4) A collective search help combines several elementary search helps. The user can thus choose one of several alternative search paths with a collective search help.
5)A collective search help comprises several elementary search helps. It combines all the search paths that are meaningful for a field.
6)Both elementary search helps and other search helps can be included in a collective search help. If other collective search helps are contained in a collective search help, they are expanded to the level of the elementary search helps when the input help is called.
CREATION:
Go to SE11 Tcode
select search help
give the 'z' search help name and create
select the selection method ur table name eg : 'mara'
dialog module 'display value immediately'.
add the field whatever u want and lpos = 1 and spos = 1 and check import and export parameter.
where left position when displaying and spos = search position
and then save and activate ..
See the links:
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee38446011d189700000e8322d00/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee45446011d189700000e8322d00/content.htm
https://forums.sdn.sap.com/click.jspa?searchID=3173469&messageID=2176485
https://forums.sdn.sap.com/click.jspa?searchID=3173469&messageID=3601619
pls go through this for search help creation
http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm
Search Help Exits:
<b>Reward points for useful Answers</b>
Regards
Anji
‎2007 Jul 25 6:34 AM
Hi,
There are two types of search Helps:
ELEMENTARY and CUMULATIVE:
You can easily create an ELEMENTARY search help with a single Table,in which that particular field was present.
Cumulative search help is combination of tables; Ex: check for MATERIAL search help, it is Cumulative.
In SAP Help it is clearly explained, how to create these search helps. Please go through the documentation.
The search help can be used by all screen fields that refer to the table field or structure field. The search help parameters and the fields of the table or structure must be assigned to one other in this type of attachment.
If an export parameter of the search help is assigned to a table field, the contents of this parameter are returned to the corresponding screen field as soon as the user has selected a line of the hit list in the input help. If an import parameter of the search help is assigned to a table field, the field contents are used for the value selection (see Value Transport for the Input Help).
Normally some parameters of the search help cannot be assigned to a table field. The assignment is thus left open for some search help parameters. A constant or any other field that is searched for in the module pool when the input help is called can also be assigned to a search help parameter.
http://help.sap.com/saphelp_nw2004s/helpdata/en/63/1b70bfc32111d1950600a0c929b3c3/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/63/1b70c2c32111d1950600a0c929b3c3/content.htm
Regards