How To Fix EU357 - Method &1 of the class &2 is not public


EU357 - Overview

  • Message type: E = Error

  • Message class: EU - Development Environment

  • Message number: 357

  • Message text: Method &1 of the class &2 is not public

  • Show details Hide details
  • What causes this issue?

    Start methods for a transaction must always be public methods.

    System Response

    The system issues an error message and will not allow you to continue with this transaction until the error is resolved.

    How to fix this error?

    Procedure for System Administrators


    Error message extract from SAP system. Copyright SAP SE.


EU357 - Details

  • The SAP error message EU357 indicates that there is an issue with the visibility of a method in an ABAP class. Specifically, it means that the method you are trying to access is not declared as public, which restricts its visibility and accessibility from outside the class.
    
    Cause: Method Visibility: The method you are trying to call is defined with a visibility level that does not allow it to be accessed from the context in which you are trying to use it. In ABAP, methods can be declared as PUBLIC, PROTECTED, or PRIVATE. If a method is declared as PROTECTED or PRIVATE, it cannot be accessed from outside the class or from subclasses (in the case of PROTECTED). Incorrect Class Reference: You might be trying to call a method from an instance of a class that does not have the method defined as public.
    Solution: Change Method Visibility: If you have access to the class

    Already have an account? Login here!




Instant HelpGet instant SAP help. Sign up for our Free Essentials Plan.


EU357 - Related SAP Errors

Click on this link to search all SAP messages.


Rating
ERPlingo simplifies finding the accurate answers to SAP message errors. I now use every week. A must have tool for anyone working with SAP! Highly recommended!
Rate 1
Kent Bettisworth
Executive SAP Consultant