In this activity you define matchcodes for customer master records. If you want to change or display a customer 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 customer master record in a matchcode. You can search for the customer account using these fields, the so-called matchcodes.
Matchcodes are set up in the master data tables using database views and indexes (= update type I).
You are looking for a specific customer account number, but know only the long text name of the account and its relevant company code. You can find the account number with the help of a matchcode search using the company code or long text.
The standard system includes the following matchcodes for customer accounts:
The matchcode object for customer accounts is called DEBI.
It determines which database tables and fields are required for the matchcode ID. You can create several matchcode IDs 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 customer, 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 customer 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 customer, 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.