Do you have any question about this error?
Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now →
Message type: E = Error
Message class: MC - Aggregate: views, matchcodes, lock objects
Message number: 062
Message text: Field &-& (data type & not allowed in matchcodes)
The field you are trying to include in the matchcode object has a data
type that is not permitted in matchcode fields.
As only data types allowing an associative search (i.e. those that can
be shown in CHAR format) may be used in matchcodes, the system will not
allow inclusion of this field in the matchcode object.
Use only fields of data types CHAR, NUMC, ACCP, CLNT, CUKY, DATS, DATE,
TIMS, LANG, UNIT in the matchcode object.
Error message extract from SAP system. Copyright SAP SE.
MC062
- Field &-& (data type & not allowed in matchcodes) ?The SAP error message MC062, which states "Field &-& (data type & not allowed in matchcodes)," typically occurs when there is an issue with the data types of fields being used in a matchcode. Matchcodes in SAP are used to create search helps for users, allowing them to find data more easily.
Cause:
The error is usually caused by one of the following reasons:
- Incompatible Data Type: The field you are trying to use in the matchcode has a data type that is not supported for matchcode creation. For example, certain data types like LOB (Large Object) or complex structures may not be allowed.
- Field Configuration: The field may not be properly configured in the database or in the data dictionary (DDIC).
- Field Length: The length of the field may exceed the maximum allowed length for matchcodes.
Solution:
To resolve the MC062 error, you can take the following steps:
Check Data Types: Review the data types of the fields you are trying to include in the matchcode. Ensure that they are compatible with matchcode requirements. Commonly allowed data types include CHAR, NUMC, DATS, etc.
Modify Field Configuration: If the field is not suitable for matchcode usage, consider using a different field that meets the criteria or modifying the existing field's data type if feasible.
Adjust Field Length: If the field length is too long, consider using a shorter field or truncating the data if possible.
Review Matchcode Object: Check the matchcode object configuration in transaction codes like SE11 (Data Dictionary) or SE80 (Object Navigator) to ensure that all fields are correctly defined.
Consult Documentation: Refer to SAP documentation or help resources for specific guidelines on matchcode field requirements.
Testing: After making changes, test the matchcode to ensure that it works as expected without generating the error.
Related Information:
If the problem persists after following these steps, it may be beneficial to consult with an SAP Basis or ABAP consultant for further assistance.
Get instant SAP help. Sign up for our Free Essentials Plan.
MC061
Field &-& not found
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
MC060
Field name & not unique
What causes this issue? When you define aggregates (views, lock objects or matchcode objects), you can assign the aggregate fields your own names (th...
MC063
Data element for field &-& has changed
What causes this issue? If a particular data element is not assigned to a view field, the view field uses the data element of the base field. If the ...
MC064
The domain of field &-& has changed
INCLUDE 'MC063' OBJECT DOKU ID NAError message extract from SAP system. Copyright SAP SE. ...
Click on this link to search all SAP messages.