How to extract and upload your custom code?

Panaya's solution requires an ABAP program installation on your SAP systems. This program performs the following high-level activities:
  • Extraction of custom-developed ABAP code.
  • Identification and extraction of used transactions - finding out which transactions are used in your production system.
  • Extraction of defined systems in Solution Manager.
Prerequisites
Before starting the installation process, make sure you have the following privileges:
  1. Access to your SAP Development, QA and Production system
  2. User with development permissions to:
    a. Display, create and execute ABAP programs
    b. Running jobs
    We recommend selecting a user with SAP_ALL or a similar strong BASIS user authorizations
  3. A Panaya username and password
  4. Internet Explorer browser versions 9 and above, Google Chrome 15 and above, or Firefox 16 and above.
  5. If migrating to HANA, please follow these instructions before you continue with this process
   

Execute the following steps to complete the process:

  1. Click on the Settings button
  2. In the Settings panel select Code Box
  3. Panaya analysis is based on custom objects extracted from your system. In most cases, there are differences between objects in the development system and the production system. Because we are extracting the custom developed objects only from one instance, please choose the system that best represents your needs for analysis.

    Should you require assistance defining from which system in your landscape you should extract the custom code, our support team will be happy to answer any questions you may have. Please contact our support team at: support@panaya.com
  4. Before you continue, check that the relevant System appears on the top left corner of the screen


     
  5. Select your current ERP version
  6. Download the ABAP code

    If you are having trouble downloading the code, use the View option to copy and paste the code to your system.
    The extracted code  is dynamically updated for improvements and according to your system needs and project's progress. To avoid delays and for better results you are required to download a new version of the extractor code before every new extraction.

Step B - Create an Executable Program

This step explains how to install Panaya’s ABAP code extraction program on your SAP system. The ABAP extraction program reads the repository objects locally and extracts customer developed objects from the system it runs on. The program also uses RFC connections to extract data from the production and other systems.
  1. Create an executable program named ZPANAYA_EXTRACT_PROG_LIB and import or paste the ABAP code.
  2. Save the program in a change request, should you need to execute it on other systems like QA or Production.

To learn how to install an ABAP program, click here

Step C - Define User Authorizations for RFC connections

Before you continue to the next step, please identify a user for the RFC. 
It is critical that the RFC users have the required authorizations as described here.

Step D - Defining RFC Connections

In this step, you will define RFC connections for Production, Solution Manager, BW(Optional), SI* & ATC*.
Follow these instructions on how to define RFC connections

* SI & ATC RFC Connections are required if converting or assessing your conversion to S/4HANA

Step E - Execute the Extraction Program

  1. Login to the relevant SAP system
  2. Start transaction SE38
  3. Type the program name ZPANAYA_EXTRACT_PROG_LIB and press the execute button (F8)
  4. The system will automatically perform a version validation check. If the automatic validation cannot be performed, a validate extraction button will appear. In this case, run the validation to avoid extraction failure.
  5. Under Execution mode, Full Extraction is selected by default.

    Selecting Usage Only will result in an extraction with usage information only.
    To learn how to extract usage statistics only, click here

    Select Background and enter the Background Directory path (e.g. \tmp) on the SAP application server.
  6. For Target system for Roles and Usage extraction, under RFC destination, type - PANAYA_PRD
  7. If Systems' Roles in the Landscape section is available, follow the steps as described here.
  8. For Solution Manager target system for Systems extraction, under RFC destination, type - PANAYA_SM
    (not applicable for SCM systems)
  9. For BW target system for BW extraction, under RFC destination, type - PANAYA_BW
  10. Do not check the Usage Only checkbox. Checking this box will result in an extraction with usage information only.
    To learn how to extract usage statistics only, click here
     
  11. If migrating to HANA 2.0, under HANA SAP Code Inspector execution mode select between options A, B or C as described in this article.

  12. From the Program drop-down menu, select Execute in Background
    In case the Execute in Background option is disabled, please verify that under Execution mode, Background Directory is selected and the Background Directory path (e.g. \tmp) is the correct path on the SAP application server.
  13. Select to create an immediate job (you can review the job processed in SM37)
  14. Once completed, please check to see that an XML file was created in the defined path.
    If you cannot locate the file, click here for assistance.
Note
The program normally runs between 45 minutes to two hours, depending on the extent of custom objects developed in your system and usage information, although in some cases may take longer.

Step F - Upload Your Custom Code

  1. Locate the extraction file. Click here to learn how
    Do not transfer or edit the file (e.g. using transactions AL11, CG3Z or others) before completing the next step and compressing the file.
  2. Before you upload your code to Panaya's Code Box, you will need to compress the XML file into Zip archive using a standard archiving software like Gzip. You can download Gzip here. RAR file type is not supported.
  3. Select the relevant System and ERP version
  4. Drop the ZIP file back to Panaya Code Box, or click to browse and select it.
  5. Click on the Upload button 
    For Release Dynamix - Select whether you wish to update all active projects or only non-upgrade active projects (Release Dynamix projects only)
  6. Once uploaded, you should receive a confirmation email regarding your custom code upload.
  7. User with the following permissions will be notified by email once the analysis is available (this usually takes 48 hours or less) - 
    - Code Box - Upload ETL permission
    - Users - Create and Edit permission
All information uploaded to Panaya via the website is encrypted using SSL technology Read more.