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 object

Former Member
0 Likes
1,671

hi all,

pls tell me how i can create match code object.

tell me full detail.

and how i can use that.

thanks and regards

vikas.

2 REPLIES 2
Read only

Former Member
0 Likes
983

Matchcodes are an SAP technique to help users find information, normally in connection with the F4 key on an input field. Information from one or more tables can be combined and queried on using various search criteria: for example, all companies whose name starts with "TATA" and whose location is"INDIA."

Traditionally, matchcodes were implemented as redundant collections of data in pool tables, as illustrated in the following:

Company header table Company detail table Matchcode pool table (TAB1) (TAB2) (M_POOL)

The advantage of the old pool matchcodes was a quick and easy search, as long as the significant fields were entered by the end user (in this case, company name and location). The disadvantage was that for every change in the master tables, the system had to make redundant updates in the matchcodetables. In addition, it was impossible to search in a pool matchcode for anybut the significant fields, i.e., it would have been very CPU intensive to search for all companies in San Francisco.

This limitation led to the creation of matchcodes (more precisely, in SAP terms, "matchcode IDs") for every possible query you could expect from end users (one with company name as the significant field, one with location, yet another with customer number, and so on). Customers with a very high number of debitors, for example, soon found that their pool matchcode tables

grew to unmanageable sizes.

As of release 2.1, it is now possible to define so-called transparent or view matchcodes. Transparent matchcodes are implemented by defining a database view for the information that should be queried. Database views are not redundant containers of data, but are merely definitions of paths to obtaining that data. In the example:

Company header table Company detail table Database view:

(TAB1) (TAB2) (M_VIEW)

Advantage

The advantage of this new technique is that it is no longer necessary to maintain redundant matchcode data: a view takes only a small amount of database dictionary space. Using this technique, the query is converted by the database to a query against the original tables, so it becomes very important that access be supported by the proper indexes.

How to create

Macro Choosefields (&Fieldname [Choose)... [Copy EndMacro

/SE11 "ABAP Data Dictionary

<Object name "the name of the Match Code Object

*Matchcode objects

[Create ><Short Text ><Primary Table

[Tables

[Yes "Save before terminating Editing?

<Development Class [Save

[Choose Sec. Tab. "presents candidate list

(&Tablename [Choose)... [Copy

[Fields

[Yes "Save before terminating Editing?

[Enter

(&Tablename [Choose Fields #Choosefields)..

[Save [Back [Activate

"Match Code Object is now created and activated.

CHECK THIS LINK

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

http://web.mit.edu/sapr3/docs/webdocs/dontindex/pdf/mcqc.pdf

Reward if useful

Read only

Former Member
0 Likes
983

Match code objects are same as Search helps, where they are used in Previous versions of SAP.

Now in the newer versions Search helps are replaced them.

Search Helps

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.

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

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

pls go through this for search help creation

http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm

How to create Search Help For Ztable fields

This is how u can create "Search Help" for the fields of the ztables that u have created.

SE11- Create Search Help for 1 field, "Selection Method" box put the Table name to which the field belongs to. "Dialog Type" box write: "Display Value Immediately".

Search Help Parameter is the Field name for which u want the Help. Tick Imp & Exp options and assign LPOS = 1 and Enter. , save and Activate.

SE11- Go to the table , Click on the Field that needs to be assigned a search Help....Click at the left side of the Field so that all the corresponding data Elements, Key field etc also gets selected.

Click on the "Search Help tab" just above the "Data Type " column.

Put the "Search Help" name that u just created. Mention the Field and Enter. it takes up the required values. Now Copy.

U can repeat the process for whatever fields u want to assign a Search Help.

se51- Go to Screen Painter, Select Fields from Dictionary table to which u want search help to be assigned.

Double click on the Text box of the corresponding field,......> Screen Painter Attributes.......> Search help Text box.........> Enter the name of the Search help that u created for a field.

Ok....>Save.........> Activate

Now u should be able to get the Search help for the fields that u wanted to.

Search Help Exits: