larshp / abapOpenChecks

Open source checks for SAP Code Inspector / ABAP Test Cockpit
https://docs.abapopenchecks.org
MIT License
270 stars 79 forks source link

015 - Kernel call - false positive - Calling AMDP methods in AMDP methods #1067

Closed BiberM closed 2 years ago

BiberM commented 2 years ago

When writing AMDP methods you can call another AMDP method inside using the following command:

CALL "ZCL_AMDP_CLASS=>MY_OTHER_METHOD"( iv_input_value => :iv_input_value );

The quickest solution might be accepting 'CALL "%' as valid as this is not a valid syntax in ABAP.

The more solid solution would be to exclude AMDP methods from this check.

larshp commented 2 years ago

thanks for the bug report, I think the quick solution will be okay, pull requests welcome