0% found this document useful (0 votes)
42 views10 pages

ABAP On BTP Custom Code Transformation With Abapgit GCTS 1713794618

Uploaded by

Luis Mariño
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views10 pages

ABAP On BTP Custom Code Transformation With Abapgit GCTS 1713794618

Uploaded by

Luis Mariño
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

SAP BTP, ABAP in the Cloud

Custom Code Transformation using abapGit and


gCTS

Anslem Joseph Arnolda


Senior SAP Consultant
Table of Contents

abapGit and gCTS (Git-enabled Change and Transport System) ................................................................. 3


Custom Code Transformation Using abapGit ............................................................................................... 4
1. Evaluation of On-Premise code for Compatibility........................................................................ 4
2. Installing abapGIT on an On-Premise and as an Eclipse Plugin................................................... 4
2.1 On-Premise ..................................................................................................................................... 4
2.2 As an Eclipse Plugin ....................................................................................................................... 6
Transform code form on-premise to cloud ................................................................................................... 7

2
Author: Anslem Joseph Arnolda
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 Git-
based 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.

3
Author: Anslem Joseph Arnolda
Custom Code Transformation Using abapGit

• Transforming on-premise ABAP code to SAP BTP requires three primary steps.
1. Evaluating current code,
2. Installing abapGit
3. Transforming code.

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

2. Installing abapGIT on an On-Premise and as an Eclipse Plugin

2.1 On-Premise

• Create a new repository on GitHub.

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

4
Author: Anslem Joseph Arnolda
• Visit https://github.com/abapGit/abapGit and click on the latest build as follows. This simply has the
code for an ABAP report program.

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

5
Author: Anslem Joseph Arnolda
• The following screen should appear once you execute this program.

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

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

6
Author: Anslem Joseph Arnolda
Transform code form on-premise to cloud

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

7
Author: Anslem Joseph Arnolda
• 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”

8
Author: Anslem Joseph Arnolda
• 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.

9
Author: Anslem Joseph Arnolda
• 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.

10
Author: Anslem Joseph Arnolda

You might also like