Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Code Inspector and CDS Views

Former Member

Hi experts,

Does SAP Code Inspector cater checking of CDS views and AMDP?

Thanks.

2 REPLIES 2

former_member205436
Participant
0 Kudos

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

larshp
Active Contributor
0 Kudos

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