Message type: E = Error
Message class:  ACC_ROLES - Messages for Type Concept Financials 
Message number: 022
Message text: Role &1 requires a reference type (&2)
Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of messages in the SAP system have a message text, however this is frequently insufficient to comprehend or resolve the problem.
To make things easier, more detailed information is frequently added to describe the issue, how to fix it, and the necessary steps or configuration modifications.
Unfortunately, there isn't any extra information in this error notice.
First, use our AnswerBot below to get a possible cause and solution (requires a premium subscription).
Also, review the in-depth Common Questions & Answers listed below; you could discover a solution there or be able to connect with others who have faced similar challenges.
You can also try searching the SAP support portal (support.sap.com) but you need a special user ID to access it. It is possible that an SAP support note exists that provides additional details about the mistake or even steps for fixing it.
The SAP error message ACC_ROLES022 indicates that a role you are trying to create or modify requires a specific reference type, but that reference type is not being provided or is incorrect. This error typically occurs in the context of role management within the SAP system, particularly when dealing with authorization roles.
Cause: The error is caused by one of the following reasons: Missing Reference Type: The role you are trying to create or modify is configured to require a specific reference type (e.g., a user, a position, or an organizational unit), but this reference type has not been specified. Incorrect Configuration: The role may be incorrectly configured, or the reference type may not be compatible with the role's requirements. Authorization Issues: The user attempting to create or modify the role may not have the necessary authorizations to do so.
Solution: To resolve the error, you can take the following steps: Check Role Configuration: Go to the role maintenance
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
ACC_ROLES021 Role &1 is fixed and does not allow any registration
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
ACC_ROLES020 Role &1 cannot be registered several times (&2 &3 &4)
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
ACC_ROLES023 Role &1 does not require a reference type (&2 &3)
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
ACC_SYSTEM000 No accounting system selected
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
Click on this link to search all SAP messages.