Skip to Content

Use abapGit to Transform ABAP Source Code to the Cloud

test
0 %
Use abapGit to Transform ABAP Source Code to the Cloud
Details
// Explore More Tutorials

Use abapGit to Transform ABAP Source Code to the Cloud

Transform ABAP source code from on-premise SAP system to a SAP Cloud Platform ABAP Environment instance.

You will learn

  • 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 Cloud Platform ABAP Environment instance


Step 1: Create a Git repository
  1. Log in to your github.com account.

  2. Create a new repository by clicking on New repository button.

    new repository

  3. Enter a name and description and check the checkbox Initialize this repository with a README and click Create repository.

    create repository

  4. Our repository is all set up for now.

    create repository

Log on to answer question
Step 2: Install and set up abapGit

As next you need to install abapGit on our on-premise system.

Important! Arrange with your system administrator before you install zabapgit.

  1. Copy the content of the latest build from the program zabapgit, that you will find in the abapGit repository https://github.com/larshp/abapGit.

  2. Open your on-premise system of your choice and create a new program and paste the content from step 1 into it.

  3. Activate and execute the program.

  4. If you have installed abapGit before, you need to go to SE38, search for ZABAPGIT program and press Execute.

    search program

  5. Now abapGit is installed and open.
    execute program

You can find all installation information under https://github.com/larshp/abapGit > Documentation/Guides.

Log on to answer question
Step 3: Push ABAP source from on-premise to Git repository

Important! Logon with language EN to your on-premise system. SAP Cloud Platform ABAP Environment just supports EN at the moment. Otherwise you’ll get problem during import.

  1. Click on Clone or download and copy the URL of your repository.

    clone

  2. Then go into transaction ZABAPGIT and press the + Online button.

    add online

  3. Paste the repository URL and click on Create Package.

    repository URL

  4. Enter a name and description and LOCAL as Software Component and click on Continue.

    continue

  5. Click on OK.

    create package

  6. You will see the cloned Git repository in abapGit.

    ABAPGIT

Log on to answer question
Step 4: Add ABAP development objects
  1. Open your on-premise system in ADT in Eclipse and find your created Package in the last step.

  2. Add ABAP development objects to your package (e.g. ABAP class).

    development objects

Important! Not supported ABAP object types will be ignored during import.

Log on to answer question
Step 5: Stage and commit developed objects
  1. Go back to the abapGit UI and click on Refresh to see all developments objects that you created in Eclipse.

    refresh

  2. Press Stage.

    stage

  3. Select single objects to add or Add all and commit.

    add all

  4. Enter committer name, committer e-mail and a comment and press Commit.

    commit

  5. You will be prompted with a credentials popup. Enter your Git repository server credentials and click Execute.

    enter credentials

  6. After everything went well, you can see the pushed ABAP objects in your Git repository.

    repository updated

Log on to answer question
Step 6: Install abapGit Eclipse plugin
  1. Open your Eclipse with installed ADT.

  2. In Eclipse, choose in the menu bar Help > Install New Software.

    eclipse

  3. Add the URL http://eclipse.abapgit.org/updatesite/and press enter to display the available features. Select abapGit for ABAP Development Tools (ADT) and install the plugin.

    enter URL

Log on to answer question
Step 7: Open abapGit repositories
  1. Select your cloud project system in the Project Explorer and open the abapGit repositories view by opening Window > Show View > Other ….

    repository

  2. Expand the category ABAP and select abapGit Repositories and click Open

    expand ABAP

Log on to answer question
Step 8: Clone Git repository into SAP Cloud Platform ABAP Environment
  1. Click the clone button (green + button) in the abapGit repositories view.

    clone button

  2. Enter your Git repository URL and press Next.

    enter repository

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

    choose package

  4. Select a Transport Request and click Finish.

    finish

  5. Your imported sources are now available under your package.

    end

Log on to answer question
Step 9: Test yourself
Which user do you need to be able to create a new repository in Git?
×

Next Steps

Prerequisites

  • github.com or similar account
  • SAP Cloud Platform 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.
Back to top