Skip to content

Latest commit

 

History

History
31 lines (18 loc) · 1.03 KB

omit-optional-exporting.md

File metadata and controls

31 lines (18 loc) · 1.03 KB

code pal for ABAP

code pal for ABAP > Documentation > Omit Optional EXPORTING

Omit Optional EXPORTING

What is the Intent of the Check?

The “Omit Optional EXPORTING” check is part of the Clean Code Check Repository.
The optional EXPORTING parameter makes the class method call needlessly longer.

How does the check work?

This check searches for the usage of the optional keyword EXPORTING in the class method calls.

How to solve the issue?

Omit the optional keyword EXPORTING.

What to do in case of exception?

You can suppress Code Inspector findings generated by this check using the pseudo comment "#EC OPTL_EXP.
The pseudo comment must be placed right at the end of the statement.

  class->meth1( EXPORTING param1 = 'example' ). "#EC OPTL_EXP

Further Readings & Knowledge