How To Fix OO_SOURCE_BASED012 - The class contains unknown comments which can't be stored.


OO_SOURCE_BASED012 - Overview

  • 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.

  • Show details Hide details
  • What causes this issue?

    You wrote a comment outside a method implementation or you commented a
    whole method implementation. This is not supported.

    System Response

    The class has not been saved.

    How to fix this error?

    Please put all method comments into the method implementation between
    the statements METHOD ... ENDMETHOD.

    Procedure for System Administrators

    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.


Smart SAP Assistant

  • What is the cause and solution for SAP error message 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

    Already have an account? Login here!




Instant HelpGet instant SAP help. Sign up for our Free Essentials Plan.


Related SAP Error Messages

Click the links below to see the following related messages:

Click on this link to search all SAP messages.


Rating
The AI Support Assistant is great. It provides comprehensive assistance even on the most difficult issues. I highly recommend this service.
Rate 1
John Jordan
SAP Consultant & Author