In this tutorial, wherever XXX
appears, use a number (e.g. 000
).
Step 1: Create software component
-
Logon to ADT, right-click on your ABAP cloud project and select Properties.
-
Click on your system URL.
-
Logon to your ABAP system in your SAP Fiori launchpad and select Manage Software Component.
-
Select +
to add a new software component.
-
Create a new software component:
- Name:
Z_SWCT_XXX
- Type: Development
Click Save.
Step 2: Pull software component
-
In your available software component Z_SWCT_XXX
click Pull.
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.
-
Click OK.
-
Check your result. Your pull is successful.
Step 3: Create ABAP class
-
Switch to your ADT, right-click on Favorite Packages and select Add Package.

-
Search for Z_SWCT_XXX
, select it and click OK.

-
Right-click on your superpackage
Z_SWCT_XXX
and select Add Package.

-
Create your package:
- Name:
Z_PCK_XXX
- Description:
Package XXX
Click Next>.
-
Click Next >.

-
Select Create a new request:
- Request Description:
TR123456
Click Finish.
-
Right-click on your package Z_PCK_XXX
and select ABAP Class.

-
Create your ABAP class:
- Name:
Z_CL_XXX
- Description:
Class XXX
Click Next>.
-
Click Finish.

-
Replace your code with following:
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: Release transport request
-
Select your class Z_CL_XXX
and select Transport Organizer in your menu. Right-click on your transport task and select Release

-
Check your result and click OK.

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

-
Check your result and click OK.

Step 5: Create new branch
-
Switch to your ABAP system in your SAP Fiori launchpad, open your software component Z_SWCT_XXX
in Manage Software Component.

-
Refresh your page by pressing F5
.

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

-
Create new branch:
Click Create.
-
Check your result. Now your new branch branch_xxx
is created.
