This tutorial guides you through the process of installing abapGit in your SAP system, which is the first technical step in establishing the SAP-GitHub integration. abapGit is an open-source git client for ABAP that enables version control for your SAP development objects. Following this tutorial sets the foundation for all subsequent integration steps.
Before beginning this tutorial, ensure you have:
- SAP NetWeaver 7.40 or higher (7.50+ recommended)
- Developer authorization in your SAP system
- SAP_BASIS component with appropriate support package level
- Required SAP Notes installed (listed in system requirements)
- Developer access to transaction SE38 or SE80
- Authorization for Z* development objects
flowchart TB
dev[Developer Workstation] -- SAP GUI --> sap[SAP System]
github[GitHub] -- HTTPS --> proc
subgraph proc[Installation Process]
step1[1. Install Standalone Version] --> step2[2. Create abapGit Package]
step2 --> step3[3. Install Developer Version]
step3 --> step4[4. Configure SSL Certificate]
step4 --> step5[5. Verify Installation]
end
sap --- proc
The installation process follows these key steps:
-
Open SAP GUI and connect to your SAP system
-
Launch transaction SE38 (ABAP Editor)
-
Enter program name
ZABAPGIT_STANDALONEand click Create -
In the program attributes dialog:
- Set program type to Executable Program
- Enter a description like "abapGit Standalone"
- Click Save
-
Select appropriate package (local object is fine for initial installation)
-
Copy the latest standalone abapGit code from the official repository
-
Paste the code into the editor
-
Click Save and then Activate (or use keyboard shortcuts Ctrl+S, Ctrl+F3)
After successfully installing the standalone version in Steps 1-8, you'll need to create a proper package for the developer version of abapGit:
-
Execute transaction SE80
-
Select Package from the dropdown menu
-
Enter
$ABAPGITas the package name (or use your own naming convention) -
Click Create
-
In the package properties dialog:
- Enter a meaningful description: "abapGit Development Package"
- Set package type to "Development"
- Assign to an appropriate transport request
- Click Save
Now that you have created the package to hold the abapGit objects in Steps 9-13, you can proceed with installing the full developer version:
-
Execute the standalone version by running transaction SE38 and executing program
ZABAPGIT_STANDALONEthat you created in Steps 1-8 -
In the abapGit interface, click on "New Online"
-
Enter the following details:
- Git Repository URL:
https://github.com/abapGit/abapGit.git - Package:
$ABAPGIT(the package you created in Steps 9-13) - Branch: main (default)
- Click Create Online Repo
- Git Repository URL:
-
abapGit will show the repository overview with available objects
-
Click Pull to download and install all objects
-
Confirm any dialogs regarding package assignment or transport requests
-
Wait for the installation to complete
With abapGit now installed in Steps 14-20, you need to set up the SSL certificate to enable secure communication with GitHub:
-
Execute transaction STRUST
-
Navigate to "SSL client SSL Client (Standard)"
-
Double-click to open the certificate manager
-
Click on the Import Certificate button
-
In the dialog:
- Enter
github.comin the "PSE Object name" field - Set options to "Binary" and "Add to certificate list"
- Click Continue
- Enter
-
Navigate to GitHub in your browser and download the SSL certificate:
- In most browsers, click the lock icon in the address bar
- View certificate details
- Export or save the certificate to your local machine
-
In STRUST, import the downloaded certificate
-
Save the changes
After completing the SSL certificate configuration in Steps 21-28, let's verify that your abapGit installation is working correctly:
-
Create a new program to validate the installation:
- Execute transaction SE38
- Create a new program named
Z_ABAPGIT_TEST - Add the following code:
REPORT z_abapgit_test. TRY. NEW zcl_abapgit_repo_online( ). WRITE: / 'abapGit installed successfully!'. CATCH cx_root INTO DATA(lx_error). WRITE: / 'Error:', lx_error->get_text( ). ENDTRY.
-
Execute the program
-
Verify that it displays "abapGit installed successfully!"
Before proceeding to the next tutorial, verify that:
- You can launch the abapGit program without errors
- You can see the abapGit repository you created
- The test program shows a successful connection
- You don't receive any SSL certificate errors
Issue: "SSL handshake failed" or "SSL connection failed" errors
Solution:
- Ensure you've correctly imported the GitHub certificate in STRUST (Steps 21-28)
- Verify your SAP system has the required support packages for SSL
- Check if your network allows HTTPS connections to GitHub
Issue: "Not authorized" errors during installation
Solution:
- Ensure your user has developer authorization
- Check SAP_BASIS authorization for required objects
- Consult with your SAP Basis team for specific authorizations
Issue: Syntax errors or activation problems
Solution:
- Ensure you're using the latest abapGit version
- Verify your SAP system meets the minimum version requirements (SAP NetWeaver 7.40+)
- Check for any missing dependent objects
Now that you have successfully installed abapGit in your SAP system in Steps 1-31, you're ready to proceed to the next phase of the integration setup:
- Tutorial 2: Configuring abapGit for Your Project - In this next tutorial, you'll configure abapGit for your specific ABAP project, building directly on the installation you just completed.
In Tutorial 2, you'll learn how to create your first ABAP project repository and establish the connection between your SAP development objects and GitHub, utilizing the abapGit installation you've just completed.