2007 Feb 23 8:43 PM
Hi can any body tell me what is match code and wht is the use of it
and give me a sample program
thanks in advance
kp
2007 Feb 23 8:49 PM
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.
Regards
Naresh
2007 Feb 23 8:51 PM
Hi,
Which SAP version are you working on?
If you are on 4.6 onwards, I would recommend to use Search Helps instead.
Please check this links for more information.
http://help.sap.com/saphelp_erp2004/helpdata/en/cf/21ee2b446011d189700000e8322d00/frameset.htm and http://help.sap.com/saphelp_erp2004/helpdata/en/cf/21ee93446011d189700000e8322d00/frameset.htm for further information.
Regards,
Ferry Lianto