Message type: E = Error
Message class: OO - Class Builder/API
Message number: 119
Message text: Protected methods should not be final
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.
OO119
- Protected methods should not be final ?The SAP error message OO119, which states "Protected methods should not be final," is related to the object-oriented programming principles in ABAP (Advanced Business Application Programming). This error typically arises when you define a method in a class as both protected and final.
Cause: In ABAP, a protected method is one that can be accessed by the class itself and its subclasses. However, marking a method as final means that it cannot be overridden in any subclass. This creates a contradiction because if a method is protected, it is intended to be overridden by subclasses, but marking it as final prevents that. Therefore, the ABAP compiler raises this error to indicate that the method's access level and its finality are incompatible.
Solution: To resolve this error, you need to decide on the intended behavior of the method: Remove the final Keyword: If you want the method to be overridden in subclasses, simply remove the
Get instant SAP help. Sign up for our Free Essentials Plan.
OO118
Methods cannot be both abstract and final
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
OO117
Type & cannot be referenced using LIKE
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
OO120
A private method cannot be final (they are not inherited by subclasses)
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
OO121
Constructors cannot be abstract (and are therefore implicitly final)
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.