Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 1.05 KB

method-output-parameter.md

File metadata and controls

29 lines (19 loc) · 1.05 KB

code pal for ABAP > Documentation > Combination of Output Parameters Check

Combination of Output Parameters Check

What is the intent of the check?

This check searches for methods where a combination of EXPORTING, CHANGING and/or RETURNING parameters is used.

How to solve the issue?

Use just one sort of output type for each method.

What to do in case of exception?

In exceptional cases, you can suppress this finding by using the pseudo comment "#EC PARAMETER_OUT which should be placed right after the method definition header:

CLASS class_name DEFINITION PUBLIC.
  PUBLIC SECTION.
    METHODS method_name
      EXPORTING param1 TYPE c
      CHANGING param2  TYPE c
      RETURNING VALUE(result) TYPE string. "#EC PARAMETER_OUT
ENDCLASS.

Further Readings & Knowledge