PackagePackagetypeA library you install and call yourself.See every one →What this type is →independently maintainedindependently maintainedoriginPublished by one person or a small company outside SAP. Says nothing about quality; the readings say that.See every one →

abeljohny/ZAP

A tiny DSL included into an ABAP report that replaces a SELECT and an ALV call with a pair of macros, _select to read a table and _display to show the result as an ALV list.

ZAP is a tiny DSL included into an ABAP report, replacing a SELECT and an ALV call with a pair of macros. _select reads a table into a reference variable with a compact table : fields + where syntax, and _display renders the result as an ALV list. Field catalog and layout can be set directly through _deffcat, _addfcat, _deflayout and _addlayout, using the structures slis_fieldcat_alv and slis_layout_alv, for reports that need custom columns. It lives inside the report that includes it rather than running as a standalone program.

Facts

Last pushLicenceGPL-2.0

Where it sits

Lives in
Provides
SAP GUI screens and listsABAPSAP GUI screens and listscapabilityBuilding screens, lists and interactive controls for the SAP GUI. Producing a web interface is [UI written in ABAP](capability:abap-ui-from-abap); operating an existing screen programmatically is [GUI automation](capability:gui-automation).

What it declares

Every artifact

Type
Package
Origin
Independently maintained

As a package

Where it runs
does not say
Distributed through
Copied into the project

Connections1

README

quoted from abeljohny/ZAP under GPL-2.0, read
abeljohny/ZAP/README.mdOn GitHub

ZAP

Tiny DSL in ABAP for rapid report prototyping. Featured on https://dotabap.org/explore.html.

Installation

Please visit https://app.assembla.com/spaces/saplink/wiki for installing the NUGG_ZAP.nugg file or simply copy the files in src/ into your system.

Usage

SELECT Syntax
_select '<table name> : <table fields | *> [+ <where condition1> + <where condition2> ...]' <reference variable> <reference variable | zap_null>.
DISPLAY Syntax
_display <reference variable>
Example: Displaying data from table SFLIGHT
INCLUDE zap.

START-OF-SELECTION.
  DATA: r_sflight TYPE REF TO DATA.

  _select 'sflight : carrid connid fldate price currency + carrid = ''AC'' + connid = 820' r_sflight zap_null.
  _display r_sflight.
Example: Displaying data from table SCARR based on data from table SFLIGHT
INCLUDE zap.

START-OF-SELECTION.
  DATA: r_sflight TYPE REF TO DATA,
        r_scarr   TYPE REF TO DATA.

  _select 'sflight : *' r_sflight zap_null.
  _select 'scarr : * + carrid = <t>-carrid' r_scarr r_sflight.
  _display r_scarr.

ZAP supports custom ALV fieldcatalog and layout settings for fine-grained control over report display using the fields defined in the structures slis_fieldcat_alv and slis_layout_alv.

DEFINE FIELD CATALOG Syntax
_deffcat '<field1> <field2> ...'.
ADD FIELD CATALOG Syntax
_addfcat '''<field1>'' ''<field2>'' ...'.
DEFINE LAYOUT Syntax
_deflayout '<field1> <field2> ...'.
ADD LAYOUT Syntax
_addlayout '''<field1>'' ''<field2>'' ...'.
Example: Displaying data from table SFLIGHT using custom field catalog and layout
INCLUDE ZAP.

START-OF-SELECTION.
  DATA: R_SFLIGHT TYPE REF TO DATA.

  _SELECT 'sflight : carrid connid price' R_SFLIGHT ZAP_NULL.
  _DEFFCAT 'col_pos fieldname tabname seltext_m'.
  _ADDFCAT: '''1'' ''connid'' ''sflight'' ''Flight No.''',
            '''2'' ''carrid'' ''sflight'' ''Airline''',
            '''3'' ''price'' ''sflight'' ''Price'''.
  _DEFLAYOUT 'no_vline'.
  _ADDLAYOUT '''X'''.
  _DISPLAY R_SFLIGHT.

License

GPL License 2.0

GPL-2.0, read
SAP GUI screens and lists
  1. abap-ui-toolboxABAP classes for classic SAP GUI development: ALV, screens, trees
  2. alv_utilitiesABAP class wrapping SALV to set column properties in one call
  3. abap-alv-struc-viewerALV table view generated from a DDIC structure
  4. abap-ui-toolsHelper class for classic ABAP dynpro field handling and popups
  5. abapEasyALVWrapper classes over classic ALV and SALV reporting
  6. cds2alvGenerator for ALV list reports from a CDS view's field definitions
  7. guidrasilVisual designer generating ABAP code for classic SAP GUI screens
  8. abapMermaidRenders Mermaid diagrams inside an SAP GUI container
  9. ZwdDynscreenSelection screens and popups generated from ABAP objects, no dynpro

Details

Sources3
Added by handdiscovered herechecked
github.com/abeljohny/ZAPtree, pushes, contributors, CIchecked
README.mdquoted, and what the entry declareschecked

Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.

Compatibility and provenance
discovered viaAdded by hand
first seen in the atlas
ecosystem and domainabap, ui-and-frontend-bridge
abaplint
issues under its own abaplint configuration236
lines690
statements555
objects4
files6
analysed, master
abaplint version2.120.84
History in the atlas1
  1. First seen.
For your agent
Ref
artifact:abeljohny-zap
JSON
/artifacts/abeljohny-zap.json
MCP
Connecting an agent