SAP BTP, ABAP in the Cloud Custom Code Transformat...
Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
abapGit and gCTS (Git-enabled Change and Transport System)
The basic idea behind abapGit is to exchange source code between any ABAP systems using a Gitbased repository.
By introducing gCTS, SAP is aiming for the best of both worlds, that is, repository-based development where concurrent work on the same object is possible, while retaining all the benefits of central development.
Following is the process flow for gCTS.
You can use gCTS to distribute your custom code through a central repository, which will enable possible rollbacks before importing to the target system, if required.
You can possibly use abapGit to move your on-premise ABAP objects to SAP BTP, ABAP environment. In the next section, we’ll demonstrate how to use abapGit to move ABAP objects from your SAP S/4HANA on-premise environment to SAP BTP, ABAP environment.
Custom Code Transformation Using abapGit
Transforming on-premise ABAP code to SAP BTP requires three primary steps.
Evaluating current code.
Installing abapGit.
Transforming code.
Evaluation of On-Premise code for Compatibility
Make sure that your code is using the ABAP for SAP BTP language version (ABAP for SAP Cloud Platform).
Once the language version is changed, execute ATC check or transaction SCI to check for any issues.
Installing abapGIT on an On-Premise and as an Eclipse Plugin
On-Premise
Create a new repository on GitHub.
Give a name to the repository and click the “Create Repository” button
Visit your GitHub repository and copy the URL corresponding to your repository.
Go back to your ABAP report program on the on-premise system, Click new online.
Paste the URL you copied above to the following location, along with the package that you want to commit to the Git Repository you created above. This is the package that is in your on-premise system, which you want to migrate to the cloud environment.
Click on “Create Online Repo”.
Once the execution is completed, you should see the cloned repository as follows, which is ready to be committed to the online Git Repository.
Now click on “stage” and “commit all changes” to the online repository
Give a comment for the commit that you do each time as follows. Click on “Commit”
This will request for your GitHub credentials, to authenticate. Give them and Continue.
Once the commit is complete, you should see a message as follows
And the source code under the package should be available in your online Git Repository.
Open ADT on Eclipse-> Select Your ABAP in the cloud Project -> Window -> Show -> Other -> abapGit Repositories.
Click the “Plus” button to link your abapGit Repository to ADT. Give the URL corresponding to your Git Repository here as well.
Create a package in your ABAP in the cloud project, to which you will be importing all the supported objects in your on-premise ABAP package. Here I have given the same package name.
Make sure to put the “Pull after link” tick as well, so the objects will be pulled from your online Git Repository into ABAP in the cloud project.
Once that is completed, you should see all supported objects on your on-premise system, imported into your ABAP in the cloud package.