code pal for ABAP > Documentation > Number of Output Parameters Check
This check searches for methods where more than one output parameter is used. Methods should do one thing and do it well, and having multiple output parameters indicates that that is not the case.
The check reports a finding whenever a method has more than one output parameter. An "output" parameter is any exporting, changing or returning parameter.
If the method has only a single responsibility and the output parameters belong together logically, express that by making them all part of the same structure and using that structure as the output parameter. If the method has multiple responsibilities, follow the Single Responsibility Principle and create a dedicated method for each responsibility.
In exceptional cases, you can suppress this finding by using the pseudo comment "#EC NUM_OUTPUT_PARA
which should be placed right after the method definition:
CLASS class_name DEFINITION.
PUBLIC SECTION.
METHOD method_name
EXPORTING
param1 TYPE c
param2 TYPE i
CHANGING
param2 TYPE c
RETURNING
VALUE(result) TYPE c. "#EC NUM_OUTPUT_PARA
ENDCLASS.