Use abapGit to Transfer Your On-Premise ABAP Source Code to the Cloud
- 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
github.comor 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 https://tools.hana.ondemand.com/#abap.
- For More information see Working with
- Step 1
Log in to your
Create a new repository by clicking on New button.
Enter a name and description and choose Private, 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
As next you need to install
abapGiton your on-premise system.
IMPORTANT Arrange with your system administrator before you install
Copy the content of the latest build from the program
zabapgit, that you will find in the
Open your on-premise system of your choice and create a new program like
ZABAPGIT_STANDALONEvia SE38 and paste the saved content into it. Activate and execute the program.
If you have installed
abapGitbefore, you need to go to SE38, search for ZABAPGIT_STANDALONE program and press Execute.
abapGitis installed and opened.
You can find all installation information under https://github.com/abapGit/abapGit > Documentation/Guides.
IMPORTANT Logon with language
ENto your on-premise system. SAP BTP ABAP Environment just supports
ENat the moment. Otherwise you’ll get issues during import.
- Step 3
Back to your created repository and click Code and copy the URL of your repository.
Go to transaction
ZABAPGIT_STANDALONEand 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
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
Go back to the
abapGitUI and click Refresh to see all developments objects that you created in ADT.
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
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
abapGitfor ABAP Development Tools (ADT) and install the plugin.
- Step 7
Select your cloud project system in the Project Explorer in ADT and open the
abapGitrepositories view by opening Window > Show View > Other ….
Expand the category ABAP and select
abapGit Repositoriesand click Open
- Step 8
Click the clone button (green + button) in the
Gitrepository 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.
abapGitRepositories tab, right-click your package and click pull. It takes some minutes to pull successfully.
Your imported sources are now available under your package.
- Step 9
Which user do you need to be able to create a new repository in Git?