Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 27 Next »


SAP Server Requirements



To analyze ABAP code in Kiuwan, source code and information from SAP system need to be exported previously to be analyzed by Kiuwan.

SAP Extractor (SAPEX) for Kiuwan performs these tasks.

NOTE: SAPEX is expected to run in any SAP NetWeaver 7.4+ platform.

Please read How to know the SAP NetWeaver version if you need to know the SAP NetWeaver verion your are using.

Contact Kiuwan Technical Support Kiuwan Support for previous platform versions.


How to know the SAP NetWeaver version

Using SAPGUI to check the version of NetWeaver (ABAP Application Server)

  • Log on to the system using SAPGUI 
  • On the main menu, choose System > Status… 
  • In the “System: Status” dialog that opens you’ll see a section in the middle-right called “SAP System data”. Click the icon next to “Component version” to show details of all the components installed on your system 

  • The component you need to look for is called “SAP_BASIS” and is usually at the top of the list.

  • Release is used to identify the major release of NetWeaver, and SP-Level is used to identify the support pack installed.



What are the permissions needed to run SAPEX in SAP

As SAPEX needs to read source code / system information from multiple SAP tables, a user with enough rights should be used.

It has been proved that the extractor works using a SAP user with the following permissions:

  • User Group Autorithation Check: SUPER
  • User Type: DIALOG
  • Profile:
    • SAP_ALL (All SAP System authorizations) 
    • S_A.SYSTEM (System administrator (Superuser))
  • Parameters: 
    • SCL (Upper and lower case in source code: 'X' = lower, ' ' =upper) 
    • WLC (Workflow: User-specific settings)
  • Customization objects used: 
    • LAW_PERS 
    • R_BPS_FW_MODE 
    • SCPR 
    • S_DRB

Distribution of SAPEX as a Transport Request


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 binay files (data-file and co-file) are contained into (located at $(AGENT_HOME)/resources/abap directory of your Kiuwan Local Analyzer installation).


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)


How to import SAPEX Transport Request

In this section we will import the Transport Request for SAPEX that is included in your Kiuwan Local Analyzer distribution.


1. Get the Transport Request files


You can find the Transport Request as a zip file ( in $(AGENT_HOME)/resources/abap directory of your Kiuwan Local Analyzer installation.

First, just unzip into your local system. This will extract two files :

  • a co-file:    K900039.NPL
  • a data-file: R900039.NPL 

Please note that last 3 digits of the transport numbers might be different in most recent versions.


2. Copy the Transport Request files to your SAP System


Next, you need to copy the extracted co-file and data-file to your SAP System. 

  • K900039.NPL to your /usr/sap/trans/cofiles directory
  • R900039.NPL to your /usr/sap/trans/data directory

Please note that destination directories are for a unix sap system. In case of a SAP Windows system, typically is <drive>:\usr\sap\trans


If you have direct access to your SAP system, you can directly copy them.

Otherwise, execute SE37 and execute 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 the 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 DIR_TRANS row.


For cofiles, you should see something like tha below image. Similarly for data directory.


3. Import the Transport Request files


Next, 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 on the Transp. Request to see available Transport Requests:


Select it



Then you will see the SAPEX Transport Request, select it and click on Import Request


Check the Options tab as below.



Once finished the import process, you can check it using SE09


Finally, use Object Navigator (SE80)... And you will see SAPEX installed on your SAP System!!



4. Create OS Commands (ZKW_MKDIR and ZKW_RMDIR)

After importing SAPEX Transport Request, you must create OS commands (ZKW_MKDIR and ZKW_RMDIR)

To do it, please follow instructions at Create OS commands (ZKW_MKDIR and ZKW_RMDIR)


Additional Steps for Local execution 

5. Create OS command to launch the analysis (ZKW_KLA_AGENT)

Only in case you decide a local scenario, you must create OS command (ZKW_KLA_AGENT)

To do it, please follow instructions at Create OS command to launch the analysis (ZKW_KLA_AGENT)



  • No labels