Step 1: Create a Git repository
-
Log in to your github.com
account.
-
Create a new repository by clicking on New button.

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

-
Our repository is all set up for now.

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
.
-
Copy the content of the latest build from the program zabapgit
, that you will find in the abapGit
repository https://github.com/abapGit/abapGit.
-
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.
-
If you have installed abapGit
before, you need to go to SE38, search for ZABAPGIT program and press Execute.

-
Now abapGit
is installed and opened.

You can find all installation information under https://github.com/abapGit/abapGit > 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.
Step 3: Push ABAP source from on-premise to Git repository
-
Back to your created repository and click Code and copy the URL of your repository.

-
Go to transaction ZABAPGIT
and press the New Online.

-
Paste the repository URL and click Create Package.

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

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

-
Enter a Short Description and click the Save icon.

-
Click Continue icon.

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

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

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

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

Not supported ABAP object types will be ignored during import.
Step 5: Stage and commit developed objects
-
Go back to the abapGit
UI and click Refresh to see all developments objects that you created in ADT.

-
Press Stage.

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

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

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

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

Step 6: Install abapGit Eclipse plugin
-
In ADT choose in the menu bar Help > Install New Software.

-
Add the URL http://eclipse.abapgit.org/updatesite/
and press enter to display the available features. Select abapGit
for ABAP Development Tools (ADT) and install the plugin.

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

-
Expand the category ABAP and select abapGit Repositories
and click Open

Step 8: Clone Git repository into SAP BTP ABAP Environment
-
Click the clone button (green + button) in the abapGit
repositories view.

-
Enter your Git
repository URL and press Next.

-
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.

-
Select a transport request and click Finish.

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

-
Your imported sources are now available under your package.
