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

Match Code Objects and ID's

bharath_mohan2
Participant
0 Likes
5,924

Hi,

Can you explain what is Match code objects and ID

Regards,

Bharath Mohan B

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,547

One use of MatchCode Objects is to attach search helps at program code level.

EG:

PARAMETERS : p TYPE char4 MATCHCODE OBJECT H_T001.

Though the paramter is of type char4 ( it wont have a F4 by default) , we can have a search help for company code attached to this parameter.

Hope this helps

8 REPLIES 8
Read only

Former Member
0 Likes
3,548

One use of MatchCode Objects is to attach search helps at program code level.

EG:

PARAMETERS : p TYPE char4 MATCHCODE OBJECT H_T001.

Though the paramter is of type char4 ( it wont have a F4 by default) , we can have a search help for company code attached to this parameter.

Hope this helps

Read only

Former Member
0 Likes
3,547

Match code objects are the search help (F4) for a selection field in the screen. We create it in se11.

Matchcode objects are being replaced by search helps. This is good as search helps are easy to create.

Read only

Former Member
0 Likes
3,547

Hi,

For many entry fields, but not all, SAP provides a search function called a Matchcode. Matchcodes allow you to select a value from a list or search for a value by categories of data if there are many possibilities.

Types of Matchcodes

Matchcodes fall into three basic categories:

1) Short list or hit list

The values are listed on one screen. For longer lists, you may need to scroll down to see all the values.

2) Restrict Value Range

Many entries are available for the field. A number of tabbed screens with different categories display so that you can enter your search criteria.

3) Calendar search

A calendar-type dialog box is displayed so that you can select day, month, and year. This is used in date fields such as invoice posting date.

Matchcodes were replaced with Search Helps starting with Release 4.0. Please use search helps to assign an input help to a field.

Existing matchcodes were automatically converted to search helps. A matchcode object is hereby converted to a collective search help with the same name. Each matchcode ID of the matchcode object is converted into an elementary search help with the same name and assigned to the collective search help created from the matchcode object.

A matchcode is a means of finding data records stored in the system. The matchcode is defined in the ABAP Dictionary in two steps:

You first define the relevant tables and fields for the search in a matchcode object. A matchcode object describes the set of all possible search paths for a search string.

You then create one or more matchcode IDs for a matchcode object. A matchcode ID describes a special search path for a search string. The matchcode ID defines the fields or field combinations to be used in the search.

http://www.sapdevelopment.co.uk/dictionary/shelp/shelphome.htmhttp://help.sap.com/saphelp_nw04/helpd...

This is also a good link

************************************************************************

  • A search help can be created in ABAP Dictionary ( tcode se11 )

  • Create a new search help (say myHelp) , choose Elementary search help (simple one), select Definitions tab, enter the table name(say myTable) in "Text Table" text box.

  • Then enter the column to be used (say myField) for this help in search help parameter, choose Import/Export, give Lpos as 1, and activate. ( You can add more columns from the same table here).

  • In report, code as

parameter p1 like myTable-myField matchcode object myHelp.

  • when you execute this report, p1 will have a f4 help enabled. The help list will have all values from myTable for field myField.

Don't forget to reward if useful......

Read only

0 Likes
3,547

Hi

The answers are helpful

Read only

former_member196299
Active Contributor
0 Likes
3,547

Hi Bharath,

below are some of the onformations about matchcode objects and ids :

Matchcode objects are used to provide f4 help.

A matchcode object is hereby converted to a collective search help with the same name. Each matchcode ID of the matchcode object is converted into an elementary search help with the same name and assigned to the collective search help created from the matchcode object.

A matchcode is a means of finding data records stored in the system. The matchcode is defined in the ABAP Dictionary in two steps:

You first define the relevant tables and fields for the search in a matchcode object. A matchcode object describes the set of all possible search paths for a search string.

You then create one or more matchcode IDs for a matchcode object. A matchcode ID describes a special search path for a search string. The matchcode ID defines the fields or field combinations to be used in the search.

Hope it helps ...

Don't forget to reward points for helpful answers !

Regards ,

Ranjita

Read only

Former Member
0 Likes
3,547

Hi Bharath,

Match Code Objects are used to Add search help to your fields. In Screen Area, You press F4 means, it Displays the all the possible values for the Particular Field.

For Example,

Your Filed name is Empname.

So follow this steps to Create a Search Help.

1. Go to SE11 and Click "Search Help" Field and give Some name Ex. zsearch.

2. Select the table inside and as well as select the filed.

3. Tick The check Boxes "IMP, EMP" and put 1, 2 in Lpos, Spos.

Than write your code in se38 Like,

Parameters : Empname match code object zsearch.

Thanks.

Reward Points If Helpful.

Read only

Former Member
0 Likes
3,547

Hi Bharath,

Matchcode object is used in order to retrieve the maximum possible values for the given range.

PARAMETERS : ABC TYPE char4 MATCHCODE OBJECT XYZ.

Matchcode object checks the database independently and it w'll check the relationship between the tables.

Regards,

Vara Prasad.

Read only

Former Member
0 Likes
3,547

Hi Bharat,

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