How to automatically generate help documents for ABAP classes
This article focuses on "how to automatically generate help documents for the ABAP class", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to automatically generate help documents for ABAP classes.
When Social media developed SP0, he built two util class, CL_SOC_UTIL and CL_CRM_SOC_SMC_UIU_UTIL.
The method in these two class is through method name to see the use at a glance, some method is not very good, need to be combined with source code to understand the use.
The implementation logic of some methods is complicated.
Some methods are introduced to solve some special issue.
When developing Social media, comments are written inside method source code, but no comments are written about the purpose of method itself and the definition of input and output parameters.
In fact, ABAP, like JAVA, can automatically generate documentation by maintaining comments in a specific format.
Comments for Class level:
Comments for Method level:
Generate the document with tcode CLASS_DOCUGEN, and click the button to view the document:
At this point, I believe you have a deeper understanding of "how to automatically generate help documents for ABAP classes". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!