SAP Message UA_FORMULA049 - Method &1 of class &2 cannot be used

Diagnosis
You attempted to use a customer-defined ABAP method in a formula.However, you can only use a customer-defined method in formulas if itmeets the following conditions:

  • The method must be static (not an instance method).

  • Visibility: Public.

  • Abstract: No.

  • All parameters must be typed with DDIC types.

  • A parameter of the type 'Returning' exists.

  • Exceptions: Only class-based exceptions can be triggered.

  • Method &v1& of class &v2& does not meet at least one of theseconditions.

    System Response
    Method &v1& cannot be used in formulas.

    Procedure
    Adjust the definition or interface of method &v1& so that it meets theconditions named above.