2023 Jan 13 12:15 PM
In class 'CL_CI_TEST_S4H_SEARCH_DB_OPS' the method 'REPORT_FINDING' is private. I am unable to call this method into my report. How should I call this private method in my program?
2023 Jan 13 12:40 PM
Hello,
It is not possible to call a private method directly.
Check if this private method is being used by some public method. If yes u can call the public method from your ABAP code.
(Private methods can only be called from another method in the same class. As this class is delivered by SAP you can do nothing with this class if the private method is not called inside any public method.)
Hope it was useful 🙂
Regards.
2023 Jan 13 1:09 PM
basically, Private methods can not be called from outside the class,thats why they are private.
2023 Jan 13 1:51 PM
Yes, you cannot call Private methods.
Inside Method "INFORM" Method "REPORT_FINDING" is getting checked, Try calling this method.
check report_finding( ls_finding_infos ) = abap_true.
2023 Jan 16 9:15 AM
This is an implementation class of a code inspector check. You cannot use these classes stand-alone. Why do you want to do that?
Regards,
Thomas.