Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 1017 Bytes

number-output-parameter.md

File metadata and controls

29 lines (21 loc) · 1017 Bytes

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

Number of Output Parameters Check

What is the Intent of the Check?

This check searches for methods where more than one parameter in one of the output types (EXPORTING, CHANGING or RETURNING) is used.

How to solve the issue?

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.

What to do in case of exception?

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.