Skip to Content

Use abapGit to Transfer Your On-Premise ABAP Source Code to the Cloud

0 %
Use abapGit to Transfer Your On-Premise ABAP Source Code to the Cloud

Use abapGit to Transfer Your On-Premise ABAP Source Code to the Cloud

April 16, 2021
Created by Niloofar Naseri
November 22, 2018
Transfer Your ABAP Source Code from your on-premise SAP system to your SAP Business Technology Platform ABAP Environment instance over a Github Repository using the abapGit report and the ADT plugin for abapGit.

You will learn

  • How to create content in an on-premise system and push it to Git repository
  • How to import the content from Git repository into a SAP BTP ABAP Environment instance
QR code


  • or similar account
  • SAP BTP ABAP Environment system and user with developer role
  • on-premise system with user and required root CA of Git server (STRUST)
  • Download Eclipse Photon or Oxygen and install ABAP Development Tools (ADT). See
  • For More information see Working with abapGit

Step 1: Create a Git repository
  1. Log in to your account.

  2. Create a new repository by clicking on New button.

    new repository

  3. Enter a name and description and check the checkbox Add a README file under Initialize this repository with: and click Create repository.

    create repository

  4. Our repository is all set up for now.

    create repository

Log on to answer question
Step 2: Install and set up abapGit

As next you need to install abapGit on your on-premise system.

IMPORTANT Arrange with your system administrator before you install zabapgit.

  1. Copy the content of the latest build from the program zabapgit, that you will find in the abapGit repository

    latest build
  2. Open your on-premise system of your choice and create a new program like ZABAPGIT via SE38 and paste the saved content into it. Activate and execute the program.

  3. If you have installed abapGit before, you need to go to SE38, search for ZABAPGIT program and press Execute.

    search program

  4. Now abapGit is installed and opened.
    execute program

You can find all installation information under > Documentation/Guides.

IMPORTANT Logon with language EN to your on-premise system. SAP BTP ABAP Environment just supports EN at the moment. Otherwise you’ll get problem during import.

Log on to answer question
Step 3: Push ABAP source from on-premise to Git repository
  1. Back to your created repository and click Code and copy the URL of your repository.


  2. Go to transaction ZABAPGIT and press the New Online.

    add online

  3. Paste the repository URL and click Create Package.

    repository URL

  4. Enter a name and a Short Description. The Software Component should be LOCAL. You do not need a Super package. Click Continue icon.


  5. In the new popup click Create Request icon on the left hand side of Own Requests, to create a new transport request.

    new request

  6. Enter a Short Description and click the Save icon.


  7. Click Continue icon.

    create package

  8. Now you have a new package and you can see your created package. Click Clone Online Repository.


  9. You will see the cloned Git repository in Repository List.


Log on to answer question
Step 4: Add ABAP development objects
  1. Open your on-premise system in ADT and add your created Package in the last step by right click in the Favorite Packages.


  2. Add ABAP development objects to your package, for example an ABAP class. Save and activate your changes.

    development objects

Not supported ABAP object types will be ignored during import.

Log on to answer question
Step 5: Stage and commit developed objects
  1. Go back to the abapGit UI and click Refresh to see all developments objects that you created in ADT.


  2. Press Stage.


  3. Select single objects to add or Add all and commit.

    add all

  4. Enter committer name, committer e-mail and a comment and press Commit.


  5. You will be prompted with a credentials popup. Enter your Git repository server credentials and click Execute.

    enter credentials

  6. After everything went well, you can see the pushed ABAP objects in your Git repository.

    repository updated

Log on to answer question
Step 6: Install abapGit Eclipse plugin
  1. In ADT choose in the menu bar Help > Install New Software.


  2. Add the URL press enter to display the available features. Select abapGit for ABAP Development Tools (ADT) and install the plugin.

    enter URL

Log on to answer question
Step 7: Open abapGit repositories
  1. Select your cloud project system in the Project Explorer in ADT and open the abapGit repositories view by opening Window > Show View > Other ….


  2. Expand the category ABAP and select abapGit Repositories and click Open

    expand ABAP

Log on to answer question
Step 8: Clone Git repository into SAP BTP ABAP Environment
  1. Click the clone button (green + button) in the abapGit repositories view.

    clone button

  2. Enter your Git repository URL and press Next.

    enter repository

  3. Select Branch and a Package, where your Git repository should be cloned. (If you have no packages, you need to create a new one before) and click Next.

    choose package

  4. Select a transport request and click Finish.


  5. Open abapGit Repositories tab, right-click your package and click pull. It takes some minutes to pull successfully.


  6. Your imported sources are now available under your package.


Log on to answer question
Step 9: Test yourself
Which user do you need to be able to create a new repository in Git?

Next Steps

Back to top