项目作者: bizhuka

项目描述 :
ABAP quick options
高级语言: ABAP
项目地址: git://github.com/bizhuka/aqo.git
创建时间: 2018-03-14T04:02:03Z
项目社区:https://github.com/bizhuka/aqo

开源协议:Apache License 2.0

下载


Now full documentation available here https://bizhuka.github.io/aqo

Описание интерфейса v3

ABAP quick options

User and programmer friendly options\
Create flexible application parameters with nested tables without any effort\
No more headache with Z* table maintenance SM30, view clusters SE54, SM34 or range options STVARV


Launch:

tr. SE38-> ZAQO_TESTER, tr. SE24 -> ZCL_AQO_TESTER

and then

tr. ZAQO_EDITOR_OLD


Separation by Package and Option ID

image

View change history\
Integration with transport system\
Editing nested catalogs (Labels & search helps)

image

Tables can contain checkboxes, lists, ranges, memo fields and even another tables
image


All you need is to describe structure(or class) in program ms_opt and press F8

  1. TRY.
  2. zcl_aqo_option=>create(
  3. iv_package_id = '$TMP' " Package "#EC NOTEXT
  4. iv_option_id = 'Main options'(op1) " Any text < 30 symbols
  5. ir_data = REF #( ms_opt )
  6. " iv_repair = abap_true
  7. ).
  8. CATCH zcx_aqo_exception INTO lo_error.
  9. MESSAGE lo_error TYPE 'S' DISPLAY LIKE 'E'.
  10. RETURN.
  11. ENDTRY.

The main purpose of the library is to avoid magic numbers#Unnamed_numerical_constants) and other "permanent data" from the code. And give the ability to user to change the "constants" in friendly interface.

Accounts by specific mask or texts in generated FI documents or range of BLART in selections are all good examples of options to maintain.

The best way to describe the library,it is something like tr. STVARV but all parameters and select-options are grouped together as in tr. SLG1, with the interface similar to SAP Fiori and displayed directly in SAP GUI via CL_GUI_HTML_VIEWER.

The maintainable data usually stored in a program structure (or in class attributes) and can contain data such as:

  • ranges (SELECT-OPTION)
  • parameters (any simple value as dates, time or BUKRS)
  • strings (memo texts)
  • any tables (structure based tables)

The first 2 are completely similar to STVARV, in strings for example you can store message templates, and tables are suitable when you need to write a large CASE that depends on a condition that can change, but creating a database table is burdensome.