Contents:

Related pages:

 

Extract ABAP source code

 

SAPEX allows to extract SAP objects to a defined path within the SAP server.  


The extraction mechanism will download SAP objects related to the SAP package they belong.

It will create a directory for every package where all the pertaining objects will be placed. As you will see below, you can define exactly what objects to extract.

As before mentioned, the approach is to model a SAP package as a Kiuwan application.

As there will be a directory for every downloaded package, you can model application names with the same names as the packages, and configure every app’s source directory to the package directory.


 

IMPORTANT: Abap Code Extractor does not delete previous content of extraction directory. So, you need to delete it before a new extraction.

 

After the extraction finishes, you will have to run Kiuwan (in this step Kiuwan is not automatically invoked).


 

SAPEX  presents the following sections:

 

 

Run program ZKW_SAPEX_CODE (using transaction SA38):

 

 

  By selecting 'Local directory', you may export source code to a local directory, that could be analyzed with a locally-deployed Kiuwan Local Agent directly.

 

When extracting code associated with a change request/task:

 

When extracting code associated with one or more package(s):

 

'Programs', 'Function modules', 'Classes' and 'Web Dynpros' checks

 

'Language'

 

If 'Only custom objects' is chosen:

 

  Take care when deactivating the 'Only custom objects' checkbox:

  • A too-wide number of objects could be selected, in particular SAP code not related to custom software.


The options in 'Additional downloads':

 

'Export to..':

 

After executing the program (click on the 'execute' button before the parameters or using F8 key), the exported items are displayed:

 

 

 

Extract ABAP metadata

 

Besides ABAP source code, Kiuwan analysis is also based on SAP metadata.

If SAP metadata is available, that information will be used by Kiuwan, thus providing more accurate results.

KAPEX allows you to export the selected information ('metadata') from SAP system, creating .txt files in the selected directory.

 

Run program ZKW_SAPEX_METADATA (using transaction SA38):

 

 

The exported metadata is global and could be reused in multiple analysis.

 If full metadata extraction takes too much time, you may perform multiple exports with different parts enabled.
Previously exported files are not removed; they are overwritten when regenerated.

 

Run analysis

When Kiuwan Local Analyzer is deployed in the SAP system, you may provide analysis parameters, previously to export the code (by clicking on the 'Export code' button), and then launch the analysis (by clicking on the 'Analyze' button, or pressing F8 key).