Message type: E = Error
Message class: OO_SOURCE_BASED - WB - Class Builder - Messages for the source-b. Class Editor
Message number: 035
Message text: The protected section is positioned incorrectly in the class definition
The class can't be separated into its different source parts (public-,
protected-, (package-,) private section or method implementation).
A warning will be sent and the changes won't be stored.
Please check whether the source contains the following statements:
<EX>CLASS <class_name> DEFINITION.</>
<EX>...</>
<EX>ENDCLASS.</>
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
<EX>CLASS <class_name> IMPLEMENTATION.</>Error message extract from SAP system. Copyright SAP SE.
OO_SOURCE_BASED035
- The protected section is positioned incorrectly in the class definition ?The SAP error message OO_SOURCE_BASED035 indicates that there is an issue with the positioning of the protected section in a class definition. This error typically arises in ABAP Object-Oriented programming when the structure of the class does not adhere to the expected syntax rules.
Cause: The error occurs when the PROTECTED section of a class is not placed correctly in relation to other sections such as PUBLIC and PRIVATE. In ABAP, the order of visibility sections in a class definition must follow a specific sequence: PUBLIC PROTECTED PRIVATE If the PROTECTED section is placed before the PUBLIC section or if there are any other structural issues in the class definition, this error will be triggered.
Solution: To resolve this error, you need to check the class definition and ensure that the visibility sections are ordered correctly. Here’s how you can do that: Open the class definition in the ABAP editor. Verify the order of the visibility sections. Ensure that: The PUBLIC
Get instant SAP help. Sign up for our Free Essentials Plan.
OO_SOURCE_BASED034
The public section is positioned incorrectly in the class definition
What causes this issue? The class can't be separated into its different source parts (public-, protected-, (package-,) private section or method...
OO_SOURCE_BASED033
A method implementation cannot uniquely be determined
What causes this issue? The class can't be separated into its different source parts (public-, protected-, (package-,) private section or method...
OO_SOURCE_BASED036
The package section is positioned incorrectly in the class definition
What causes this issue? The class can't be separated into its different source parts (public-, protected-, (package-,) private section or method...
OO_SOURCE_BASED037
The private section is positioned incorrectly in the class definition
What causes this issue? The class can't be separated into its different source parts (public-, protected-, (package-,) private section or method...
Click on this link to search all SAP messages.