Custom Code Analysis – How many Lines of Z-ABAP Code are in your SAP System? [english]

Estimated read time 2 min read

Post Content

 

​ In the course of our S4HANA migration, the question arose as to how much custom code we actually have in our system. This is actually a very interesting question and after a short search I came across to the Code metric tool. This is a powerful tool for analyzing and evaluating ABAP code.

Important Metrics:

Lines of Code (LoC): This metric indicates the number of lines of code. It is a basic indicator of the size of the code and can help to identify large modules that may be difficult to maintain.

Number of Statements (NoS): This metric counts the number of statements in the code. A high number of statements can indicate complex logic that may be difficult to understand and maintain.

Complexity of Conditions (COM): This metric measures the complexity of the conditions in the code. High complexity can indicate potential sources of error and make the code more difficult to maintain.

Decision Deps (DD): This metric evaluates the depth of the decision structures in the code. A high decision depth can impair the readability and maintainability of the code.

#code #analysis #abap #improve

β–¬β–¬ Literature πŸ“š β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬
β–Ά ABAP: An Introduction 2020 https://amzn.to/45CLTqk *
β–Ά Complete ABAP 2023 https://amzn.to/45D5UNM *
β–Ά ABAP to the Future 2022 https://amzn.to/42cgWGs *
β–Ά Clean ABAP 2022 https://amzn.to/3KAqmow *

β–¬β–¬ My Hardware πŸ’» β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬
β–Ά Microphone: https://amzn.to/3zj2UIz *
β–Ά Headphone: https://amzn.to/3GUBRFg *

β–¬β–¬ My Software (free) πŸ’Ύ β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬
β–Ά Video Recorder: https://bit.ly/678fgh6
β–Ά Video Editor: https://bit.ly/38Rj9lb
β–Ά Thumbnail: https://bit.ly/CustAndCodeThumbnail
β–Ά Gamma AI: http://bit.ly/3nsdvgr

β–¬β–¬ Further Links πŸ”— β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬β–¬
⭐Become my subscriber: https://bit.ly/CustAndCodeSub
🎬All videos in English: https://bit.ly/CustAndCodeENG
β˜•Buy me a Coffee πŸ˜€: https://bit.ly/3dih2cl

*The links are affiliate links. There are no additional costs.

πŸ“Attribution:
YouTube Subscribe Animations: https://pixabay.com/videos/search/subscribers/   Read More Cust&Code in SAP ABAP 

#SAP #Abap

You May Also Like

More From Author