Skip to Content
0

SAP Code Inspector and CDS Views

Jan 11, 2017 at 04:54 AM

169

avatar image
Former Member

Hi experts,

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

Thanks.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

avatar image
Former Member
Jan 12, 2017 at 11:42 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Lars Hvam
Apr 17 at 12:21 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded