Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot Change Methode Visibilty

_Baker
Newcomer
0 Kudos

hi, 

basically I am redefining an inherited method. In this method there is a call to another methode in the super class that carries the same name.

As I wanted to activate the redefinition an error occured which states that the methode called in my code is reither unknown or protected or private which means I need to change visibility. Long story short I could not change the visibility in the change options of the methode.

This is my first post so any help is appreciated 

Thank you in advance

 

2 REPLIES 2

PromiseAphana
Explorer
0 Kudos

Hi @_Baker can you share a screenshot of the class definition showing how the method is defined and a screenshot of your code inside the redefined method?

Sandra_Rossi
Active Contributor

You can only redefine public or protected methods.

You cannot change the visibility of a redefined method.

See the ABAP documentation for the official details.