method-output-parameter.md
September 23, 2022 ยท View on GitHub
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.