Skip to Content

Push Your ABAP Source Code from SAP BTP, ABAP Environment to a GitHub Repository using abapGit

test
0 %
Push Your ABAP Source Code from SAP BTP, ABAP Environment to a GitHub Repository using abapGit
Details

Push Your ABAP Source Code from SAP BTP, ABAP Environment to a GitHub Repository using abapGit

March 22, 2021
Created by
December 20, 2019
Push Your ABAP Source Code from a SAP BTP, ABAP environment instance to a GitHub repository using the ADT plugin for abapGit.

You will learn

  • How to create or adapt source code in ABAP instance
  • How to open abapGit repositories
  • How to stage and commit ABAP development objects
QR code

Prerequisites

  • You need an SAP BTP, ABAP environment trial user or a license.
  • You have installed abapGit.


Step 1: Create or adapt source code in ABAP instance
  1. Open ABAP Development Tools and logon to your ABAP system.

    Add ABAP development object to your already existing package TESTABAPGIT (e.g. ABAP class).

    Therefore right-click on Classes and select New ABAP Class.

    create

  2. Create a package:

    • Name: Z_Class_YYY
    • Description: new class

    create

    Click Next >.
  3. Click Finish

    create

  4. Implement your newly created class.

    create

    Save and activate.

Log on to answer question
Step 2: Open abapGit repositories
  1. Select your ABAP system in the Project Explorer and select Windows > Show View > Other to open the abapGit repositories.

    open

  2. Search for abapGit repositories, select it and click Open.

    open

Log on to answer question
Step 3: Stage and commit ABAP development objects
  1. Right-click on your package TESTABAPGIT and click Stage and Push.

    object

  2. Enter your repository credentials in the popup and click OK.

    object

  3. In the staging view you will see a list of changed, created or deleted ABAP development objects which can be transferred to your repository. Furthermore the icon of the respective file indicated whether a file was created, modified or deleted.

    object

  4. ABAP development objects which should staged can be selected by drag and drop from the unstaged box to the staged box or by clicking on the + button.

    object

  5. Enter your commit message and click Commit and Push.

    object

  6. Click OK.

    object

  7. Check your result.

    object

    The staged objects are transferred to your repository.

Log on to answer question
Step 4: Test yourself
Which one is the right path to open the abapGit repository?
×

Next Steps

Back to top