Skip to content

Quickstart ​

Try It First ​

No system at hand? Two ways to see abap2UI5 run before anything is installed:

  • The playground compiles the framework in your browser: write ABAP on the left, watch the app run on the right, nothing to install.
  • The sample catalog lists hundreds of working apps, each with its ABAP printed in full and a button that runs it - a live demo of every pattern the cookbook describes.

Both are also where to send a colleague who wants to see it before reading on.

Before You Start ​

Four things the three steps below assume:

  • abapGit is installed on the system — the one-time tool that pulls abap2UI5 in. New to it? Follow the abapGit installation guide; the abapGit page says what the project uses it for.
  • Developer authorization, plus the right to create and activate an ICF node in SICF — on many systems a Basis task, so ask early.
  • A package for the handler class. A local $TMP package is fine for a first look; a transportable one comes with Go-Live Checklist.
  • The browser reaches the OpenUI5 CDN, or the system serves UI5 itself — see Bootstrapping for the second case.

1. Install the Framework via abapGit ​

Pull abap2UI5 with abapGit: New Online, the repository URL https://github.com/abap2UI5/abap2UI5, a package of your choice, then Pull.

For a first look on ABAP 7.50 or newer, pull the branch main. That is all. On an older system, or for anything you will keep, pull a release tag:

Your systemWhat to pull
ABAP 7.50 or newer, on premise or private cloudThe newest release tag, X.Y.Z
ABAP 7.02 to 7.4xThe same release with the suffix -702, X.Y.Z-702
BTP ABAP Environment or S/4 Public CloudThe newest release tag, X.Y.Z, with abapGit for Eclipse

X.Y.Z is the number of the newest release. It is the version shown in the menu at the top of this page.

How to choose a tag, and why

The newest release is at the top of the releases page. Every release appears there twice, once with the suffix -702 and once without. GitHub marks one of the two as Latest; that is only the one published last, not a newer version.

In abapGit a tag is chosen on the repository's page: Branch → Switch → Tags. You can also type the tag into the Branch field of the online repository.

The -702 tag is a downported build of the same release, with the same features: see Downporting. Why a tag and not main for a productive system: see Versioning and Go-Live Checklist. The cloud systems have a page of their own: S/4 Public Cloud.

The abap2UI5 repository in abapGit after the pull, with the list of pulled objects

After the pull, abapGit lists the objects of the framework. The screenshot is from an earlier release, so some class names differ from today's.

ABAP Cloud

On BTP ABAP Environment and S/4 Public Cloud, use abapGit for Eclipse (ADT) and mass-activate the pulled objects afterwards. The S/4 Public Cloud page shows every step with a screenshot, including the two link choices that cannot be changed later.

abapGit for Eclipse: the abapGit Repositories view in ADT

The framework is everything you need: the HTTP endpoint you create next serves the UI5 frontend itself, so there is no separate frontend to deploy. For a launchpad or a Fiori Elements host, the frontend can also be deployed as an app of its own into the UI5 ABAP repository — see Fiori Launchpad.

2. Set Up HTTP Handler and Service ​

Create a package and define an HTTP handler class. Use the ABAP tab for Standard ABAP systems (R/3 NetWeaver, S/4 On-Premise / Private Cloud); use the ABAP Cloud tab only on BTP ABAP Environment or S/4 Public Cloud:

abap
CLASS zcl_my_abap2UI5_http_handler DEFINITION PUBLIC.
  PUBLIC SECTION.
    INTERFACES if_http_extension.
ENDCLASS.

CLASS zcl_my_abap2UI5_http_handler IMPLEMENTATION.
  METHOD if_http_extension~handle_request.
    z2ui5_cl_ui5_http_handler=>run( server ).
  ENDMETHOD.
ENDCLASS.
abap
CLASS zcl_my_abap2UI5_http_handler DEFINITION PUBLIC.
  PUBLIC SECTION.
    INTERFACES if_http_service_extension.
ENDCLASS.

CLASS zcl_my_abap2UI5_http_handler IMPLEMENTATION.
  METHOD if_http_service_extension~handle_request.
    z2ui5_cl_ui5_http_handler=>run( req = request res = response ).
  ENDMETHOD.
ENDCLASS.

Next, create the HTTP service that the browser will call:

  1. Start transaction SICF and press Execute.
  2. Open the tree down to default_host → sap → bc.
  3. Right-click bc and choose New Sub-Element. Enter a name, for example zabap2ui5. The name becomes the last part of the URL.
  4. On the Handler List tab, enter your handler class ZCL_MY_ABAP2UI5_HTTP_HANDLER, then save.
  5. Back in the tree, right-click the new node and choose Activate Service.

The node is no longer grayed out: the service is active.

SICF service creation dialog in transaction SICF
HTTP handler class assignment in SICF service configuration

ABAP Cloud

For ABAP Cloud environments, follow the SAP HTTP service tutorial.

Creating an HTTP service in the ABAP Cloud environment

Security

abap2UI5 talks only to the HTTP service you define, giving you full control over accessibility, authentication, and other security aspects.

ABAP Language Versions

The handler above is the one place the distinction matters. Your apps are independent of it — you are free to choose whether to build them with ABAP Cloud compatibility, whichever handler this system runs.

3. First Launch ​

Open the HTTP endpoint in your browser: in SICF, right-click your service node and choose Test Service. The URL looks like https://<host>:<port>/sap/bc/zabap2ui5. The browser shows the abap2UI5 startup page. It is also where you will launch your own apps later: The abap2UI5 startup page: a class name entered under Step 4, the Check button below it, and the link that opens the app under Step 5 Now check that an app starts:

  1. In the input field under Step 4, enter z2ui5_cl_ui5_app_hi_world, the test app that comes with the framework.
  2. Press Check. The class name turns into a link under Step 5.
  3. Click the link. A new tab opens with the page abap2UI5 - Hello World.
  4. Enter a name and press Post. A message box answers Your name is ….

That is the whole install verified: abapGit pull, handler, service and app class. If you see something else instead:

  • The browser shows an ICF error page or a plain 404 — the request never reached the handler. In SICF, check that the service node is activated (right-click → Activate Service) and that the URL path matches the node.
  • A logon prompt you did not expect, or a 401/403 — authentication is the ICF node's job, exactly as for any other service. Check the node's Logon Data tab, and see Security for how access to the endpoint is controlled.
  • The startup page never appears, or stays white — open the browser console (F12); a bootstrap problem such as a blocked UI5 CDN logs there. Systems without internet access must serve UI5 themselves — see Bootstrapping.

Next Steps ​

The framework is installed and verified. Hello World is the next page: it is the smallest app that can exist, how to start it, and what each line of it does.

If somebody else decides whether abap2UI5 may be used on your system, the case for abap2UI5 is the page written for them.