01-11-2017 4:54 AM
Hi experts,
Does SAP Code Inspector cater checking of CDS views and AMDP?
Thanks.
01-12-2017 11:42 AM
Hi Raye,
Yes, depending on your version of SAP NetWeaver AS ABAP, several SAP Code Inspector checks have been implemented for ABAP CDS. You can find these checks under the "General Checks", "Performance Checks" and "CDS Metadata Extensions". In addition, many syntax warnings are also reported by the Code Inspector. Under "Syntax Check/Generation" you can find checks for the complexity of CDS views, and "wrappers" for the syntax checks of DCL and DDL sources, etc..
There are also checks for AMDPs but since the implementation of AMDPs is in SQLScript, the number of checks implemented in ABAP are few.
In addition, with the introduction of the ABAP Test Double Framework (https://blogs.sap.com/2016/10/19/introduction-cds-test-double-framework-write-unit-tests-abap-cds-entities/), you can easily implement and run tests for your CDS views.
Regards
Chris
04-17-2018 1:21 PM
I did not find any standard check, so I decided to implement it in custom code, see https://github.com/larshp/abapOpenChecks/blob/master/src/checks/zcl_aoc_check_67.clas.abap
Make sure to use an object collector which includes DDLS objects