Skip to Content

Use Checkout Functionality of Branches to Switch Between Different Versions of Code

Requires Customer/Partner License
Use the checkout functionality of branches to switch between different versions of your code with SAP BTP, ABAP environment.
You will learn
  • How to checkout feature branch
  • How to change your coding
  • How to transport changes
  • How to checkout master branch
  • How to test changes
mervey45Merve YalcinMarch 17, 2022
Created by
March 5, 2020


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

  • Step 1
    1. Logon to your ABAP system in your SAP Fiori launchpad and open Manage Software Components application.

      Checkout feature branch

      Note: If you don’t know the URL of your ABAP system, then you can open your ABAP Development Tools (ADT), right-click on your ABAP system in your project explorer, select Properties and click on your system URL.

    2. In your manage software components application search for your software component Z_SWCT_XXX and select it.

      Checkout feature branch
    3. Select your feature branch branch_xxx and click Checkout to be active with your master branch.

      Checkout feature branch
    4. Click OK.

      Checkout feature branch
    5. Refresh your recent actions to see your result.

      Checkout feature branch
    6. Now you can see, that your feature branch branch_xxx is checked out successfully.

      Checkout feature branch
  • Step 2
    1. Switch to your ABAP Development Tools (ADT), logon to your ABAP system, right-click on your created ABAP class Z_CL_XXX and select Refresh or Press F5 to refresh your ABAP class.

      Change your coding
    2. Now make changes in your ABAP class. Therefore replace your code of your ABAP class Z_CL_XXX with following:

      class z_cl_xxx definition
         create public .
         public section.
         interfaces if_oo_adt_classrun.
         protected section.
         private section.
         out->write('Hello world! I am on branch_xxx now!').
      Change your coding
    3. Save and activate.

      Change your coding
  • Step 3
    1. Select the transport organizer in your menu and refresh your workbench to transport your changes.

      Transport change
    2. Right-click on your transport task and select Release.

      Transport change
    3. Click OK.

      Transport change
    4. Right-click on your transport request and select Release.

      Transport change
    5. Click OK.

      Transport change
  • Step 4
    1. Switch to your software component Z_SWCT_XXX in Manage Software Component. Select your master branch and click Checkout.

      Checkout master branch
    2. Click OK.

      Checkout master branch
    3. Refresh your recent actions to see your result.

      Checkout master branch
    4. Now the master branch is checked out successfully. Refresh your branches as well.

      Checkout master branch
    5. Now you can see the result as well in the branches section. The master branch is checked out successfully.

      Checkout master branch
  • Step 5
    1. Switch to ADT and open your ABAP class Z_CL_XXX. As you can see, you are still on the feature version.

      Create new branch
    2. Right-click on your ABAP class Z_CL_XXX and click Refresh.

      Create new branch
    3. Now you can see the coding of your master version again.

      Create new branch
  • Step 6

    What do you need to do in order to see your changes in ABAP Development Tools (ADT)?

Back to top