Skip to Content
avatar image
Former Member

SAP Code Inspector and CDS Views

Hi experts,

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

Thanks.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jan 12, 2017 at 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

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 17 at 12: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

    Add comment
    10|10000 characters needed characters exceeded