code pal for ABAP > Documentation > Number of Output Parameters Check
This check searches for methods where more than one parameter in one of the output types (EXPORTING
, CHANGING
or RETURNING
) is used.
Use methods which return just one parameter per output type. If you have multiple output parameters which are related to each other, use a structure to group them.
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.