Skip to Content

Push Your ABAP Source Code from SAP BTP, ABAP Environment to a GitHub Repository using abapGit

Push Your ABAP Source Code from a SAP BTP, ABAP environment instance to a GitHub repository using the ADT plugin for abapGit.
You will learn
  • How to create or adapt source code in ABAP instance
  • How to open abapGit repositories
  • How to stage and commit ABAP development objects
mervey45Merve TemelMarch 17, 2022
Created by
mervey45
December 20, 2019
Contributors
mervey45
mervey45

Prerequisites

  • You need an SAP BTP, ABAP environment trial user or a license.
  • You have installed abapGit.
  • Step 1
    1. Open ABAP Development Tools and logon to your ABAP system.

      Add ABAP development object to your already existing package TESTABAPGIT (e.g. ABAP class).

      Therefore right-click on Classes and select New ABAP Class.

      create
    2. Create a package:

      • Name: Z_Class_YYY
      • Description: new class
      create
      Click Next >.
    3. Click Finish

      create
    4. Implement your newly created class.

      create

      Save and activate.

  • Step 2
    1. Log in to your GitHub repository, select your folder, click Code and copy the HTTP link for later use.

      open
    2. Go back to Eclipse. Select your ABAP system in the Project Explorer and select Windows > Show View > Other to open the abapGit repositories.

      open
    3. Search for abapGit repositories, select it and click Open.

      open
    4. In your abapGit repositories ab, click the + symbol.

      open
    5. Enter your git repository URL from earlier and click Next >.

      open
    6. Enter following information:

      • URL: <your_git_repository_url>
      • User: <your_git_repository_email_address>
      • Password: <your_git_repository_password>
      open
      Click Next > and Finish.
  • Step 3
    1. Right-click on your package TESTABAPGIT and click Stage and Push.

      object
    2. Enter your repository credentials in the popup and click OK.

      object
    3. In the staging view you will see a list of changed, created or deleted ABAP development objects which can be transferred to your repository. Furthermore the icon of the respective file indicated whether a file was created, modified or deleted.

      object
    4. ABAP development objects which should staged can be selected by drag and drop from the unstaged box to the staged box or by clicking on the + button.

      object
    5. Enter your commit message and click Commit and Push.

      object
    6. Click OK.

      object
    7. Check your result.

      object

      The staged objects are transferred to your repository.

  • Step 4

    Which one is the right path to open the abapGit repository?

Back to top