Application Development and Automation 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: 
Read only

error in private methods when implementing a BAdI

Former Member
0 Likes
973

Hi,

I implemented a BAdI and added some custom private methods in my implementing class. When I looked at the object list, my private methods are marked with a color red circular shape, which I guess it means those have error. But, when I tried to activate and test the BAdI, it works fine. Any idea why it marks my private methods as error? Am I missing something here?

2 REPLIES 2
Read only

Former Member
0 Likes
594

hai jackie, first of all when u implement the badi wat is the need for adding ur private methods for the implementing the class , when u add a method to a class it will no way effect the badi bocs if u want the methd then u should add in the badi interface and for that u have to change the sap code which is not advisable , when u implement the badi u will create a zclass for which u can add ur own methods but that are no way related to badis and normally it is not advisable to add methods to implementing class as the class is generated by sap and if it is activated if it is not gettign errors then it is fine , dint get that half red or some symbol u said

regards

m.a

Read only

Sm1tje
Active Contributor
0 Likes
594

That's just an icon SAP uses in the display tree for marking private methods. No error at all.

1. Public: green circle.

2. Protected: yellow triangle.

3. Private: red circle.