In this activity you define matchcodes for vendor master records. If you want to change or display a vendor master record but do not know the account number, you can search for it using a so-called matchcode. The system saves certain fields from a vendor master record in the matchcode. You can search for the vendor account using these fields, the so-called matchcodes.
Matchcodes are set up in master data tables using database views and indexes (= update type I).
You are looking for a specific vendor account number, but you only know the long text name of the account and its relevant company code. Using a matchcode search with the company code or long text, you can identify the account number.
The standard system includes the following matchcodes for vendor accounts:
The matchcode object for vendor accounts is called KRED.
The matchcode object basically determines which database tables, and therefore which fields are required for matchcode IDs. One or more matchcode IDs can be created for a matchcode object. The matchcode ID determines which fields and/or combinations of fields are used for searches.
Since proper capitalization is required for searches using the name (NAME1) and city (ORT01) of a vendor, special substitute fields were created for these fields. All entries are automatically converted to capital letters in these substitute fields (MCOD1 for NAME1 and MCOD3 for ORT01). Therefore, when entering the name or city of the vendor within a matchcode selection, you do not need to take capitalization into account.
If you require other matchcode IDs than the ones supplied with the standard software, which should include the fields for the name or city of the vendor, you have to enter matchcode fields MCOD1 and MCOD3 for the search fields (NAME1 and ORT01) in the matchcode ID field list.
The substitute fields MCOD1 and MCOD3 are delivered with the standard SAP system for the search fields NAME1 and ORT01. The search field NAME2 is not contained in the standard matchcodes. Therefore you can configure a field other than the standard one. You can, for example, use the field STRAS (street) instead of NAME2 if you require the street as a search field. To do this, you must enter the field STRAS instead of NAME2 in the "Check search fields for matchcodes" step.
For more information on matchcodes, see the BC ABAP/4 Dictionary manual. You can find further information on classification in the relevant section of the Basis Implementation Guide.