Developing UI5 Apps Purely in ABAP
Go to file
oblomov 47568f6767
launchpad compatibility + xml view optimization (#628)
* unit test for launchpad compatibility

* optimization view creation with namespaces
2023-11-06 18:27:27 +01:00
.github/workflows Update build_downport.yaml 2023-06-30 13:54:54 +02:00
src launchpad compatibility + xml view optimization (#628) 2023-11-06 18:27:27 +01:00
test add 11 controls to xml view (#509) 2023-08-25 12:06:48 +02:00
.abapgit.xml rename font awesome + implement driver js (#607) 2023-10-31 08:28:51 +01:00
.gitignore add transpiler setup running unit tests (#195) 2023-06-15 16:23:16 +00:00
abaplint-downport.jsonc update abap version 2023-06-27 09:29:48 +02:00
abaplint-max_fix.jsonc update repository structure and unit tests (#436) 2023-07-30 17:21:17 +02:00
abaplint.jsonc fix zfc_ddic_search_help TT declerations (#524) 2023-09-03 20:16:18 +02:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2023-06-27 09:42:09 +02:00
CONTRIBUTING.md update contribution (#472) 2023-08-08 22:22:10 +02:00
LICENSE Create LICENSE 2023-06-27 09:44:15 +02:00
package-lock.json Dev (#548) 2023-09-18 14:48:54 +02:00
package.json Dev (#548) 2023-09-18 14:48:54 +02:00
README.md launchpad integration fix (#625) 2023-11-06 13:30:22 +01:00


...offers a pure ABAP approach for developing UI5 apps, entirely without JavaScript, OData and RAP — similar to the past, when only a few lines of ABAP sufficed to display input forms and tables using Selection Screens & ALVs. Designed with a minimal system footprint, it works in both on-premise and cloud environments.

Key Features

  • 100% ABAP: Developing in pure ABAP (no JavaScript, DDL, EML or Customizing)
  • User-Friendly: Implement just a single interface for a standalone UI5 application
  • Minimal System Footprint: Based on a plain HTTP handler (no BSP, OData, CDS, BOPF or RAP)
  • Cloud and On-Premise Ready: Works with both language versions (ABAP for Cloud, Standard ABAP)
  • Broad System Compatibility: Runs on all ABAP releases (from NW 7.02 to ABAP 2311)
  • Easy Installation: abapGit project, no additional app deployment required

Compatibility

  • BTP ABAP Environment (ABAP for Cloud)
  • S/4 Public Cloud ABAP Environment (ABAP for Cloud)
  • S/4 Private Cloud or On-Premise (ABAP for Cloud, Standard ABAP)
  • R/3 NetWeaver AS ABAP 7.50 or higher (Standard ABAP)
  • R/3 NetWeaver AS ABAP 7.02 to 7.42 - use the downport repository

Information (Blog Series)

  1. Introduction: Developing UI5 Apps in Pure ABAP (SCN - 22.02.2023)
  2. Displaying Selection Screens & Tables (SCN - 23.02.2023)
  3. Popups, F4-Help, Messages & Controller Logic (SCN - 30.03.2023)
  4. Advanced Functionality & Demonstrations (SCN - 02.04.2023)
  5. Extensions with XML Views, HTML, JS & CC (SCN - 12.04.2023)
  6. Installation, Configuration & Debugging (SCN - 14.04.2023)
  7. Technical Background: Under the Hood of abap2UI5 (SCN - 26.04.2023)
  8. Repository Setup with abapGit, abaplint & open-abap (SCN - 21.08.2023)
  9. Community Feedback & New Features I (SCN - 11.09.2023)

References

Apps & Extensions

More

Installation

Install with abapGit abapGit and set up a new HTTP service with the following handler:

Standard ABAP 🏠
METHOD if_http_extension~handle_request.

   DATA(lv_resp) = SWITCH #( server->request->get_method( )
      WHEN 'GET'  THEN z2ui5_cl_fw_http_handler=>http_get( )
      WHEN 'POST' THEN z2ui5_cl_fw_http_handler=>http_post( server->request->get_cdata( ) ) ).

   server->response->set_header_field( name = `cache-control` value = `no-cache` ).
   server->response->set_cdata( lv_resp ).
   server->response->set_status( code = 200 reason = `success` ).

ENDMETHOD.
ABAP for Cloud ☁️
METHOD if_http_service_extension~handle_request.

   DATA(lv_resp) = SWITCH #( request->get_method( )
      WHEN 'GET'  THEN z2ui5_cl_fw_http_handler=>http_get( )
      WHEN 'POST' THEN z2ui5_cl_fw_http_handler=>http_post( request->get_text( ) ) ).

   response->set_header_field( i_name = `cache-control` i_value = `no-cache` ).
   response->set_text( lv_resp ).
   response->set_status( 200 ).

ENDMETHOD.

Usage

Implement the abap2UI5 interface as shown in the following example:

CLASS z2ui5_cl_app_hello_world DEFINITION PUBLIC.

  PUBLIC SECTION.
    INTERFACES z2ui5_if_app.
    DATA quantity TYPE string.

ENDCLASS.

CLASS z2ui5_cl_app_hello_world IMPLEMENTATION.

  METHOD z2ui5_if_app~main.

    CASE client->get( )-event.
      WHEN 'BUTTON_POST'.
        client->message_toast_display( |{ quantity } Product ABC - send to the server| ).
    ENDCASE.

    client->view_display( z2ui5_cl_xml_view=>factory( client
      )->page( 'abap2UI5 - Hello World App'
         )->simple_form( )->content( ns = `form`
            )->title( 'Input here and send it to the server...'
            )->label( 'Product-ABC'
            )->input( client->_bind_edit( quantity )
            )->button( text = 'post' press = client->_event( 'BUTTON_POST' )
      )->stringify( ) ).

  ENDMETHOD.
ENDCLASS.

FAQ

  • Check out the documentation for more installation & configuration guidelines
  • Still have open questions? Find an answer in the FAQ
  • Want to help out? Check out the contribution guidelines
  • As always - your comments, questions, wishes and bug reports are welcome, please create an issue