Do you have any question about this error?
Message type: E = Error
Message class: OO_SOURCE_BASED - WB - Class Builder - Messages for the source-b. Class Editor
Message number: 012
Message text: The class contains unknown comments which can't be stored.
You wrote a comment outside a method implementation or you commented a
whole method implementation. This is not supported.
The class has not been saved.
Please put all method comments into the method implementation between
the statements METHOD ... ENDMETHOD.
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
Error message extract from SAP system. Copyright SAP SE.
OO_SOURCE_BASED012
- The class contains unknown comments which can't be stored. ?The SAP error message OO_SOURCE_BASED012 indicates that there are comments in the class that cannot be stored. This typically occurs when there are comments that do not conform to the expected format or contain unsupported characters.
Cause:
- Invalid Comment Syntax: The comments may contain syntax that is not recognized by the ABAP editor.
- Unsupported Characters: The comments might include special characters or formatting that is not allowed.
- Inconsistent Commenting Style: Mixing different commenting styles (e.g., using both
*
and"
for comments) can lead to confusion in the parser.- Copy-Paste Issues: If comments were copied from another source, they might include hidden characters or formatting that is not compatible with the ABAP environment.
Solution:
- Review Comments: Go through the comments in the class and check for any syntax errors or unsupported characters.
- Standardize Commenting Style: Ensure that you are using a consistent commenting style throughout the code. Use either
*
for block comments or"
for inline comments.- Remove Unsupported Characters: Eliminate any special characters or formatting that may not be supported by the ABAP editor.
- Re-enter Comments: If you suspect that the comments were copied from another source, try retyping them manually to avoid hidden formatting issues.
- Check for Long Comments: If comments are excessively long, consider breaking them into smaller, more manageable pieces.
Related Information:
If the problem persists after trying the above solutions, consider reaching out to your SAP support team or consulting the SAP community for further assistance.
Get instant SAP help. Start your 7-day free trial now.
OO_SOURCE_BASED011
An error occured during the save operation. The changes were not stored.
What causes this issue? The class can't be separated into its different source parts (public-, protected-, (package-,) private section or method...
OO_SOURCE_BASED003
&1&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...
OO_SOURCE_BASED013
The category of a class can only be changed if there are no sub classes
What causes this issue? You tried to change the class category (standard class, exception class) by changing the super class. The category of a class...
OO_SOURCE_BASED014
The component &1 cannot be converted to a &2
What causes this issue? You tried to convert the component &V1& to a &V2&.System Response The editor does not support a conversion o...
Click on this link to search all SAP messages.