How to Pull GitHub Objects into S/4HANA On-Premise with abapGit

How to Pull GitHub Objects into S/4HANA On-Premise with abapGit

SAP

In this guide, we will see how to bring ABAP objects from a GitHub repository into your S/4HANA on-premise system using the standalone version of abapGit.


1. Create a Package

First, create the package in your on-premise system where you want to pull the objects from GitHub.

Create package


2. Install Standalone Version of abapGit

Follow these steps (as outlined in the official documentation):

  1. Download the ABAP code from this link (right click → Save As).

  2. In SE38, SE80, or ADT, create a new report named ZABAPGIT_STANDALONE (formerly ZABAPGIT_FULL).

    • Note: Do not use the name ZABAPGIT if you plan to install the developer version.

  3. Switch to source code change mode and upload the code via Utilities → More Utilities → Upload/Download → Upload.

  4. Activate the program.

Typically, abapGit is only installed in the development system, so you can place it in a local $ package (e.g., $ABAPGIT).

You can now run abapGit by executing the report in transaction SE38.

abapGit Home


3. Connect to GitHub Repository

  1. In abapGit, click New Online to pull objects from a GitHub repository.

  2. Enter the repository URL:
    https://github.com/sachinartani/SAP-RAP-EML-Practice

  3. Provide the package name where you want to import the objects.

  4. Select the branch (in this case, main).

  5. Set folder logic to Full.

Connect to Github Repo


4. Create Online Repository

In this example, we will pull only the ABAP objects related to the Material application.

Click Create Online Repo. Once created, you’ll see a list of objects available in the GitHub repository.

Objects to be pulled


5. Pull Objects

  1. Click Pull.

  2. Select the objects you want to import and click Continue.

Object selection to pull

  1. Choose a transport request to record the changes.

abapGit will now import the objects. If you see a popup with inactive objects, simply proceed.

Inactive object list


6. Verify the Imported Objects

All selected objects are now available in your package.

Pulled object list from Github


7. Publish and Test Service

Finally, publish the service binding you just pulled and test the service.

Testing the service

With this setup, you can easily bring ABAP objects from GitHub into your S/4HANA on-premise system using abapGit.


Optional Learning Resource

YouTube: abapGit for Beginners - A short session for ABAP developers that explains what abapGit is, how to install it, and demonstrates its core features.