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!
cancel
Showing results for 
Search instead for 
Did you mean: 
AnslemArnolda
Participant

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.

AnslemArnolda_0-1714113883072.png

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

AnslemArnolda_1-1714113919791.png

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

AnslemArnolda_2-1714114188344.png

  • Give a name to the repository and click the “Create Repository” button

AnslemArnolda_3-1714114222926.png

AnslemArnolda_5-1714114364743.png

  • Create a report program on your on-premise SAP system and copy the code you see above into the
    program and activate.

AnslemArnolda_6-1714114415257.png

  • The following screen should appear once you execute this program

AnslemArnolda_7-1714114447825.png

  • abapGit has now been installed on the on-premise system

As an Eclipse Plugin

  • Open ADT->Help->Install new software and enter the following URL to load abapGIT for ABAP
    development on ADT.
    http://eclipse.abapgit.org/updatesite/ 
  • Simply click on “Next” and install the plugin

AnslemArnolda_8-1714114536582.png

Transform code form on-premise to cloud

  • Visit your GitHub repository and copy the URL corresponding to your repository.AnslemArnolda_9-1714114638007.png
  • Go back to your ABAP report program on the on-premise system, Click new online.AnslemArnolda_10-1714114679406.png
  • 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.

AnslemArnolda_11-1714114737055.png

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

AnslemArnolda_12-1714114776492.png

  • Now click on “stage” and “commit all changes” to the online repository

AnslemArnolda_13-1714114813371.png

  • Give a comment for the commit that you do each time as follows. Click on “Commit”

AnslemArnolda_14-1714114841595.png

  • This will request for your GitHub credentials, to authenticate. Give them and Continue.

AnslemArnolda_15-1714114868471.png

  • Once the commit is complete, you should see a message as follows

AnslemArnolda_16-1714114894483.png

  • And the source code under the package should be available in your online Git Repository.

AnslemArnolda_17-1714114920621.png

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

AnslemArnolda_18-1714114954043.png

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

AnslemArnolda_19-1714114997143.png

  • Once that is completed, you should see all supported objects on your on-premise system, imported
    into your ABAP in the cloud package.

AnslemArnolda_20-1714115024338.png

 

2 Comments
Labels in this area