Skip to Content

Create Branches with SAP BTP, ABAP Environment

Requires Customer/Partner License
Create your own branch with SAP BTP, ABAP environment.
You will learn
  • How to create software component
  • How to pull software component
  • How to release transport request
  • How to create master branch
  • How to create branches
mervey45Merve YalcinMarch 22, 2021
Created by
mervey45
February 17, 2020
Contributors
mervey45

Prerequisites

  • SAP BTP, ABAP environment user
  • ADT version 2.96 or higher
  • Administrator role assigned to user

In this tutorial, wherever XXX appears, use a number (e.g. 000).

  • Step 1
    1. Logon to ADT, right-click on your ABAP cloud project and select Properties.

      Create software component
    2. Click on your system URL.

      Create software component
    3. Logon to your ABAP system in your SAP Fiori launchpad and select Manage Software Component.

      Create software component
    4. Select + to add a new software component.

      Create software component
    5. Create a new software component:

      • Name: Z_SWCT_XXX
      • Type: Development

      Click Save.

      Create software component
  • Step 2
    1. In your available software component Z_SWCT_XXX click Pull.

      Pull software component

      Note: In the initial system, the ‘master’ branch will not be visible until you’ve released a transport request. If you are pulling in the production system, all branches will be available before you’ve released an ABAP transport request.

    2. Click OK.

      Pull software component
    3. Check your result. Your pull is successful.

      Pull software component
  • Step 3
    1. Switch to your ADT, right-click on Favorite Packages and select Add Package.

      Create ABAP class
    2. Search for Z_SWCT_XXX, select it and click OK.

      Create ABAP class
    3. Right-click on your superpackage Z_SWCT_XXX and select Add Package.

      Create ABAP class
    4. Create your package:

      • Name: Z_PCK_XXX
      • Description: Package XXX

      Click Next>.

      Create ABAP class
    5. Click Next >.

      Create ABAP class
    6. Select Create a new request:

      • Request Description: TR123456

      Click Finish.

      Create ABAP class
    7. Right-click on your package Z_PCK_XXX and select ABAP Class.

      Create ABAP class
    8. Create your ABAP class:

      • Name: Z_CL_XXX
      • Description: Class XXX

      Click Next>.

      Create ABAP class
    9. Click Finish.

      Create ABAP class
    10. Replace your code with following:

      ABAP
      Copy
      class z_cl_xxx definition
      public
      final
      create public .
      
      public section.
      interfaces if_oo_adt_classrun.
      protected section.
      private section.
      ENDCLASS.
      
      CLASS z_cl_xxx IMPLEMENTATION.
      METHOD IF_OO_ADT_CLASSRUN~MAIN.
      out->write('Hello world!').
      ENDMETHOD.
      ENDCLASS.
      

      Save and activate.

  • Step 4
    1. Select your class Z_CL_XXX and select Transport Organizer in your menu. Right-click on your transport task and select Release

      Release transport request
    2. Check your result and click OK.

      Release transport request
    3. Right-click on your transport request and select Release.

      Release transport request
    4. Check your result and click OK.

      Release transport request
  • Step 5
    1. Switch to your ABAP system in your SAP Fiori launchpad, open your software component Z_SWCT_XXX in Manage Software Component.

      Create new branch
    2. Refresh your page by pressing F5.

      Create new branch
    3. Select your master branch and click + to create a new branch.

      Create new branch
    4. Create new branch:

      • Branch Name: branch_xxx

      Click Create.

      Create new branch
    5. Check your result. Now your new branch branch_xxx is created.

      Create new branch
  • Step 6

    What do you need to do in order to create a master branch?

Back to top