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: WL - Workflow: run-time messages
Message number: 106
Message text: Constants cannot begin with '%' or '&'
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.
WL106
- Constants cannot begin with '%' or '&' ?The SAP error message WL106, which states "Constants cannot begin with '%' or '&'," typically occurs in the context of ABAP programming when you are defining constants in your code. This error indicates that the constant you are trying to define starts with an invalid character, specifically '%' or '&', which are not allowed as the first character of a constant name.
Cause:
- Invalid Naming Convention: In ABAP, constants must adhere to specific naming conventions. They cannot start with special characters like '%' or '&'.
- Typographical Error: There may be a typographical error in the constant name where the programmer accidentally included an invalid character at the beginning.
Solution:
Rename the Constant: Change the name of the constant to ensure it does not start with '%' or '&'. For example, if your constant is defined as:
CONSTANTS: lv_example TYPE i VALUE 10.
Ensure that it does not start with invalid characters:
CONSTANTS: lv_example_value TYPE i VALUE 10.
Check for Typographical Errors: Review your code for any accidental inclusion of invalid characters at the beginning of constant names.
Follow Naming Conventions: Ensure that all constants follow the ABAP naming conventions, which typically allow letters (A-Z, a-z), numbers (0-9), and underscores (_), but not special characters at the beginning.
Related Information:
By following these guidelines, you should be able to resolve the WL106 error and prevent it from occurring in your ABAP programs.
Get instant SAP help. Sign up for our Free Essentials Plan.
WL105
Container element & is not loop element &
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
WL104
Binding definition inconsistent with (called) container definition &
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
WL107
Define a binding for the mandatory import element &
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
WL108
Expression & has object type & and not & (=reference object type)
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.