To analyze ABAP code with the Kiuwan Solutions, the source code and the information from the SAP system need to be exported before they can be analyzed.
The SAP Extractor (SAPEX) for Kiuwan performs these tasks.
NOTE: SAPEX is expected to run in any SAP NetWeaver 7.4+ platform. Read below how to learn which version you are using.
Contact Kiuwan Technical Support Kiuwan Support if you have a previous platform version.
Remote usage of SAPEX means that the SAPEX functionality is executed within an external system. This means that you will use KLA to remotely connect to the SAP Server to extract the code and analyse it. In this remote scenario, the SAP Server acts as a pure server host. It provides the needed APB source files for KLA to analyze. Therefore, KLA will use an SAP user to connect to the SAP server to extract the code (i.e. to invoke the SAPEX RFCs).
In a Local usage of SAPEX, you will need to configure a SAP user with permissions to run the code extraction and execute the SAPEX programs.
Regardless of local vs remote usage, there are some common permissions the SAPEX user needs to be granted:
For SAPEX remote usage, SAP user must be type B (system) .
A type B user with above privileges should also be granted the following authorizations:
ACTVT = 16
RFC_TYPE = ‘FUGR’
RFC_NAME = ‘ZKW_SAPEX_FG’, ‘SYST’,’ RFC1’,’ SDIFRUNTIME’
In a Local scenario, SAP user must be type A (dialog).
Besides the common authorizations (above explained), this SAP user must also have next ones:
SAP Extractor for Kiuwan (SAPEX) is distributed as a Transport Request.
This way, you can easily install all the required SAPEX source programs importing the transport request into your target SAP system.
SAPEX binary files (data-file and co-file) are contained into
Note: If you cannot use this installation mechanism you can also install SAPEX by manually installing source code ( please visit Manual Installation of SAP Extractor)
In this section, we will import the Transport Request for SAPEX that is included in your Kiuwan Local Analyzer distribution.
Find the Transport Request as a zip file (
) in the $(AGENT_HOME)/
resources/abap directory of your Kiuwan Local Analyzer installation.
Unzip the file into your local system. This will extract two files :
Please note that the last 3 digits of the transport numbers might be different in the most recent versions.
Next, you need to copy the extracted co-file and data-file to your SAP System.
Please note that destination directories are for a unix sap system. In case of a SAP Windows system, it typically is <drive>:\usr\sap\trans
If you have direct access to your SAP system, you can copy them directly.
Otherwise, execute SE37 and execute the ARCHIVFILE_CLIENT_TO_SERVER function. Click on Test/Execute
Then select the files you want to import (in your local machine) and the target path (in the SAP server), check Uppercase/Lowercase and Execute it.
In order to confirm the copy, you can use AL11 to check the transfer was done to the correct places.
Execute it and double click on the DIR_TRANS row.
For cofiles, you should see something like the below image. Similarly to data directory.
Next, the SAPEX Transport Request must be imported into your SAP system
Execute STMS and click on Import Overview
Then you will see your Import Queue(s).
Double-click on the queue and you will see the requests for that queue.
Now you should add the SAPEX Transport Request (Extras > Other Requests > Add)
Click Transp. Request to see available Transport Requests:
Then you will see the SAPEX Transport Request, select it and click Import Request.
Select the Options tab as below.
Once the import process is finished, you can check it using SE09.
After importing SAPEX Transport Request, you must create OS commands (ZKW_MKDIR and ZKW_RMDIR)
To do this, follow the instructions on Create OS commands (ZKW_MKDIR and ZKW_RMDIR)
If you decide on a local scenario, you must create an OS command (ZKW_KLA_AGENT)
To do this, follow the instructions on Create OS command to launch the analysis (ZKW_KLA_AGENT)