Application Development and Automation 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: 
Read only

Diff Between Matchcode&Search help

Former Member
0 Likes
967

Hi Folks,

Wt is the diff between serachhelp&Matchcode?

Tell me the Searchhelp creation steps?

Which is better one?

Thanks

P.SRIKANTH

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
927

Hi srikanth,

SearchHelp

http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee38446011d189700000e8322d00/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee45446011d189700000e8322d00/content.htm

Matchcode

check this link

http://help.sap.com/saphelp_40b/helpdata/en/cf/21ef46446011d189700000e8322d00/content.htm

Creating Search Help:

Go to SE11. Give a Search help name and create.

Give a description in the next screen.

In the field 'Selection Method' of the Definition tab, give the table name from which you want to fetch the values.

In the table displayed below, under the Search help Parameter, give the field name for which you require the Search help. Give the data element of that field also. Check the boxes IMP and EXP. Give LPos and SPos as 1.

Save and activate.

Regards,

Priyanka.

7 REPLIES 7
Read only

Former Member
0 Likes
927

Hi,

The predecessors of search helps in the ABAP Dictionary were called matchcode objects.

Search helps are used in new version and match code in earlier versions(before 4.7) .

Existing matchcode objects are still supported.

Rgds,

Prajith

Read only

Former Member
0 Likes
927

pls go through this

<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm</a>

regards

shiba dutta

Read only

Former Member
0 Likes
927

Hi,

In older versions of SAP match codes are used.

In the latest versions search helps replaced the match codes:

there are 2 types of search helps

<b>elementary</b> which refers to a single table

<b>collective</b> -which refers to more than one table.

you can create the search helps from SE11.

enter the search help with some Zname and create in SE11.

give description, and Table name in SELECTION METHOD

and enter the Paramters(fields) in down, save and execute.

reward if useful

regards,

Anji

Read only

Former Member
0 Likes
928

Hi srikanth,

SearchHelp

http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee38446011d189700000e8322d00/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee45446011d189700000e8322d00/content.htm

Matchcode

check this link

http://help.sap.com/saphelp_40b/helpdata/en/cf/21ef46446011d189700000e8322d00/content.htm

Creating Search Help:

Go to SE11. Give a Search help name and create.

Give a description in the next screen.

In the field 'Selection Method' of the Definition tab, give the table name from which you want to fetch the values.

In the table displayed below, under the Search help Parameter, give the field name for which you require the Search help. Give the data element of that field also. Check the boxes IMP and EXP. Give LPos and SPos as 1.

Save and activate.

Regards,

Priyanka.

Read only

Former Member
0 Likes
927

Hi,

Match codes are being replaced with Search help in the latest version. From a functionlality aspect nothing much is changing, its just the terminology.

A Search help is a ABAP Dictionary object used to define possible values (F4) help. There are two kinds of search help - elementary and collective.

- An elementary search help uses a search path to determine the possible entries.

- A collective search help consists of two or more

elementary search helps, and thus provides more than one possible search path.

Matchcode object is used to call a particular search help and given along wirth the declaration of any parameters or select-options.

In older versions, search helps were called as matchcode object. Now they are obsolete and search helps have come in place of them.

But still when we want to assign f4 help, we use Mactcode ID with parameters and select-options,

following the syntax which is not changed.

CHECK THIS LINK TO CREATE A SEARCH HELP.

http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_basic.htm

CHECK THIS LINK TO CREATE A MATCHCODE OBJECT

http://searchsap.techtarget.com/tip/1,289483,sid21_gci553386,00.html

Regards

Sudheer

Read only

Former Member
0 Likes
927

Hi Srikanth,

Match codes are being replaced with Search help in the latest version, they are the pre-decessors of search help and also the functionality is the same.

Creating Elementary Search Helps

Procedure

In the initial screen of the ABAP Dictionary, select object class Search help, enter the name of the search help and choose Create.

A dialog box appears in which you must select the type of search help.

Select Elementary search help and choose .

The maintenance screen for elementary search helps appears.

Enter an explanatory text in the field Short text.

You can for example find the search help at a later time using this short text.

In the Definition tab page enter the selection method of the search help.

You can enter the name of a table or a view (database view, projection view or help view) here. If you enter a table that has a text table, the name of the text table is automatically entered in the corresponding field.

Using the input help (F4 help), select fields of the selection method as parameter in the Search help parameter area. Select the fields that should be used in the dialog box for value selection or in the hit list.

If the selection method is a table that has a text table, both the fields of the table and the fields of the text table are offered in the input help.

The data element of the parameter is automatically copied from the selection method. The data element defines the output attributes and the F1 help of the parameter in the hit list and in the dialog box for value selection.

You can assign the parameter another data element. To do so, select the Mod flag. The Data element field is now ready for input. Then select a data element with the input help (F4 help). Only data elements whose data type, length and number of decimal places is the same as those of the previous data element can be assigned.

This removes the link between the data element of the search help parameter and the data element of the selection method field having the same name. If you cancel the Mod flag, the data element of the assigned table field is used again.

Define the attributes of the search help parameters.

Select the IMP flag if it is an import parameter. Select the EXP flag if it is an export parameter.

You can define the dialog for the input help with the fields LPos, SPos and SDis. Enter the parameter position in the hit list in LPos. If you enter nothing or the value 0 here, the parameter is not displayed in the hit list.

Enter the parameter position in the dialog box for value selection in SPos. If you enter nothing or the value 0 here, the parameter is not displayed in the dialog box for value selection.

Set the SDis flag if the parameter should be a pure display field in the dialog box for value selection. The user is thus informed that the contents of the parameter restrict the value, but he cannot change this restriction. This makes sense for example when the parameter is an import parameter or if it has a default value.

You can assign the parameter a default value in the Default value field.

Select the dialog type of the search help.

The dialog type defines how the hit list is displayed in the input help.

Save your entries.

A dialog box appears in which you have to assign the search help a development class.

Choose .

Do not forget to link the search help to a screen field. The search help attachment is not part of the search help definition; it is part of the object definition to which the search help is attached.

Result

The search help is activated. You can find information about the activation flow in the activation log, which you can display with Utilities ® Activation log. If errors occurred during activation, the activation log is automatically displayed.

Other Options

Assign a hot key: If the search help is to be accessed with a hot key, you must enter a one-place ID in the Hot key field. All the elementary search helps contained in a collective search help should have different short cuts.

Assign a search help exit: In exceptions, you might have to change the standard flow defined by the search help with a search help exit. In this case enter the name of the search help exit in the corresponding field.

Test the search help: You can test the flow of an input help defined by the elementary search help with . A dialog box appears in which you can simulate the behavior of the search help under different conditions. You can obtain information about the options provided in this window with .

Hope this resolves your query.

Reward all the helpful answers.

Regards

Read only

Former Member
0 Likes
927

Match code can contain fields from several tables whereas an index can contain fields from only one table.

Match code objects can be built on transparent tables and pooled and cluster tables.

For most data fields, SAP provides a Matchcode, or search, feature. The Matchcode function

allows you to select from a list of possible entries for a field if the list is short enough, or if the

available list is too numerous to display, to search for information in a variety of ways.

<b>If more than one field is exported by the matchcode module, GuiXT takes the first one. You can also specify the name of the desired field with the shname= option.</b>

regards

ravish

please reward if helpful