The Web Dynpro code contains too many direct calls to routines using “me–>”
Why you should care
Special rules apply for the implementation of Web Dynpro routines, such as “wd_Do_Init” methods. Some ABAP language statements cannot be used. Other routines cannot be called directly – instead they must be called with the “wd_This” instance. The reason for this is that a direct call makes any extensions made from restructured layers impossible.
CAST Recommendations
Replace the “me->” calls with a delegation using “wd_This->”.
How we detect
This Code Insight counts one occurrence each time a direct call to routine using the “me–>” instance is found in Web Dynpro source code.
About CAST and Highlight’s Code Insights
Over the last 25 years, CAST has leveraged unique knowledge on software quality measurement by analyzing thousands of applications and billions of lines of code. Based on this experience and community standards on programming best practices, Highlight implements hundreds of code insights across 15+ technologies to calculate health factors of a software.