Thursday 10 August 2017

CDS view source code count tool Part-12

The Continues Blog, For development complexity and draft effort estimation I need a tool to calculate the total line number of the CDS views belonging to a given package.

ABAP Development, SAP ABAP Tutorials and Materials, SAP ABAP Certifications

However no tool available for CDS view. So I write one. You can download its source code from my github.
Execute the public RUN method, specify the package number:

ABAP Development, SAP ABAP Tutorials and Materials, SAP ABAP Certifications

And it will print the line of source code for each view and the total count per package:
ABAP Development, SAP ABAP Tutorials and Materials, SAP ABAP Certifications

Two private methods of this tool class:
If you have further requirement to parse the annotation contained in the view source code, you can refer to two demo reports shipped by SAP standard:
  • demo_cds_annotation_array
  • demo_cds_semantics_annotation

No comments:

Post a Comment