AQO web editor

Edit options in the browser: from the SAP Fiori launchpad, from a link in an e-mail or with the report ZAQO_UI5.
The optional add-on aqo_ui5 (SAPUI5 1.120, OData V2) uses the same options, history and checks as SAP GUI. The core package gets only one new method ZCL_AQO_HELPER=>IS_UI5_MODE. Changes: CHANGELOG, what the web editor can do compared with SAP GUI: ROADMAP.

  1. What you can do
  2. History and comparison
  3. Technical settings and field catalog
  4. Info, usages and ADT links
  5. Locks
  6. Installation
  7. Launchpad tile
  8. Hooks

Values


What you can do

  • Find an option: tree by package, recent options, all options with grouping. Search in descriptions or In values
  • Edit values: texts, numbers, dates, times, check boxes, fixed values, search helps (by TABLE-FIELD), ranges, long texts, tables with nested tables. The same checks as in SAP GUI, an error opens the cell with the problem
  • History of every field: compare 2 versions side by side and restore an old value
  • Compare with system: another system by RFC destination (SM59, type 3), take the remote values
  • Technical (DEV only): description, TABLE-FIELD, editable in PROD, delete a field or the whole option, field catalog of a table
  • Transport: requests and tasks that contain the option. Info: description, number of previous values, menu in ZAQO, the last call of the option (program, include, line) and Scan ABAP code for usages
  • Excel export of a table, Share (link or e-mail), English and Russian

Table

History and comparison

The history button of a field shows all saved values. Rows are matched like in a text diff, nested tables, ranges and long texts can be opened. Restore puts the old value back into the editor: nothing changes until you save.

History

Compare with system (scales icon in the title) compares the whole option with the same option in another system: values that differ, exist only here or only there, or have another declaration.

Compare with system

Technical settings and field catalog

Tab Technical in the development system: description of a field, TABLE-FIELD (for value helps), editable in PROD, delete a field.

Technical

For a table the column TABLE-FIELD opens the field catalog, as in SAP GUI:

  • table kind: standard, sorted or hashed, unique key, key definition (default, user-defined, empty) and key fields
  • every column: description, TABLE-FIELD, F4 internal table (another sorted or hashed table of the option)
  • nested tables have their own catalog

The current value must fit into the new key: duplicates are reported and nothing is saved. The program declares the table, so its table kind and key are taken from the program again when it runs. Descriptions, TABLE-FIELD and F4 tables stay.

Field catalog

Tab Info shows the last call of the option with a link to ABAP Development Tools (Eclipse). Scan ABAP code finds programs and classes that read the option.

Info

The links adt:// open the code in Eclipse. To enable them:

  1. Window > Preferences > ABAP Development: switch on the option in the section ADT Link Handling (Windows)
  2. Newer Eclipse versions: Window > Preferences > General > Link Handlers: adt and eclipse+command are checked and handled by this Eclipse (important with several Eclipse installations)
  3. Restart Eclipse. The browser asks once whether it may open the link: allow it

On macOS ADT registers the handler during the installation.

Locks

The web editor works like every Fiori app: each request is independent, no stateful BSP is needed.

  • When an option is opened, a lock of another user (for example in SAP GUI) is shown
  • Save locks the option, checks that nobody saved it in the meantime, saves and unlocks it in one request
  • If somebody else saved it, you get “The option was changed by another user. Please reload it”: nothing is overwritten

Installation

Install abapGit, then (online repository or offline ZIP):

  1. EUI
  2. AQO
  3. aqo_ui5 in its own package, for example $AQO_UI5. It contains the classes, the reports and the UI5 application ZAQO_UI5 (BSP)
  4. Run the report ZAQO_UI5_SETUP: first in test mode, then without it. It registers and activates the OData service ZAQO_UI5_SRV. With a separate Gateway hub use /IWFND/MAINT_SERVICE there
  5. Run /UI5/APP_INDEX_CALCULATE for the application ZAQO_UI5 (needed by the launchpad)
  6. Start: report ZAQO_UI5 or /sap/bc/ui5_ui5/sap/zaqo_ui5/index.html
Right Authorization objects
Start S_SERVICE for ZAQO_UI5_SRV
View S_TCODE ZAQO_VIEWER_OLD, or any edit right
Edit S_TCODE ZAQO_EDITOR_OLD or ZAQO
Compare with system S_RFC for ZFM_AQO_READ_OPTION in the other system

Outside of the development client only fields marked editable in PROD can be changed.

Launchpad tile

The application has the inbound ZAqoOption-manage (URL /sap/bc/ui2/flp#ZAqoOption-manage):

  1. /UI2/SEMOBJ: create the semantic object ZAqoOption
  2. /UI2/FLPD_CUST (or the launchpad content manager), a catalog, Target mapping: semantic object ZAqoOption, action manage, application type SAPUI5 Fiori App, URL /sap/bc/ui5_ui5/sap/zaqo_ui5, ID zaqo.ui5, all device types, additional parameters allowed
  3. Tile: static app launcher, title “ABAP Quick Options”, navigation ZAqoOption / manage
  4. Group (or space and page), then a PFCG role with the catalog and the group for the users

Hooks

BEFORE_OPTION_SAVE gets IV_IN_EDITOR = X on the web too. No dialogs: return the text of an error in CV_ERROR_TEXT.