In SAP NetWeaver 7.5 SP00 or higher,
you can export source code documentation of ABAP classes and ABAP interfaces, for example,
in order to create a backup of this information for audits.
Context
For each class or interface you can create an html file as follows:
Procedure
- Open the Export wizard.
Here you have the following options:
The Export wizard is opened.
- In the displayed tree, select .
- Choose Next.
The second page is opened.
- Choose an ABAP project.
Here you have the following options:
- Choose the ABAP package(s), class(es), or interface(s) you want to export.
Here you have the following options:
- To add, choose Add....
- To remove one or more entries, choose
Remove...
Note The maximum number of objects for one export job is 4000. If the maximum
number is exceeded, no ABAP Doc comments are exported and an error is
displayed in the export log.
- To define the set of members to be exported for classes, select one option in
the Visibility of members to be exported area.
- To export short texts if no ABAP Doc comment is provided for an element, choose
the corresponding checkbox in the Export mode area.
- To define the directory where you want to save the export files, choose
Browse... in the Destination
area.
- Choose Finish to start the export.
Results
The export job is started. If you select a package with a huge number of classes and
interfaces, for example, the job might last several minutes. You can check the state
of the export job in the Console and
Progress view.
When the job is finished, the export log is displayed in the Console
view. At the same time, a new folder with a unique name is created in the chosen
directory. The export files are stored here.
Example
Figure 1:
Example of an export file that contains ABAP Documentation
In addition, a popup is displayed from where you can open the export folder directly.
Note To adopt the layout of the exported html file, open and edit the
stylesheet.css file. It is saved in the
\htmldesign path.