Symptom
Error "Missing metadata for authorization field XXXX" occurs when activating a restriction field based on a custom authorization field.
Environment
- SAP S/4HANA Cloud Public Edition
- ABAP Developer Tools
Reproducing the Issue
- Define a custom authorization field in ABAP Development Tools.
- Create a restriction field based on this authorization field.
- Activate the restriction field.
- Observe the error: "Missing Metadata for authorization field XXXX".
Cause
There are several reasons which may cause the issue.
- The check table of authorization field contains data types different than:
* C Character string
* N Character string with digits only
* D Date (Date: YYYYMMDD)
* T Time (Time: HHMMSS)
- The check table must contain a field with the exact same name of authorization field.
- In the check table, the first column with a data element identical to the authorization field is suitable for value selection. Or, if no matching data element exists, the first column with a matching domain should be used for the value selection.
Resolution
For cause 1#: Delete the field which type is different than C/N/D/T from the check table of authorization field.
For cause 2#: Include a field with the same name of authorization field in the check table.
For cause 3#: Ensure that in the check table, the first column with a data element identical to the authorization field is suitable for value selection, Or the first column with a matching domain is used for the value selection.
See Also
Keywords
missing metadata for authorization field, restriction field activation error, authorization field metadata, check table field missing, custom authorization field, restriction field, iam, business roles, catalogs, adt, s/4hana cloud public edition, identity and access management, value help not shown, metadata generation, z* authorization field , KBA , BC-SEC-AUT-TOO , Maintenance Transactions (SU20 - SU25) , BC-SRV-APS-IAM , Identity and Access Management , Problem
SAP Knowledge Base Article - Public