BlogBlogtypeA post on somebody's own site or a community platform. Nobody edits it after publication, so it dates from the day it was written.See every one →SAP Community

Beyond READ_TEXT: Decoding SAPscript Long Texts (STXL) with SQLScript in CDS/AMDP

STXL stores a SAPscript long text as a compressed ABAP cluster container — LZ77 plus canonical Huffman — so the only official reads are READ_TEXT, one call per text, and its mass variant READ_TEXT_TABLE, both of which ship every decompressed line to the application server and stay invisible to ABAP CDS. The author reverse-engineered that on-disk format and ported the decoder into SQLScript, wrapped in an AMDP procedure and exposed through CDS table functions, turning long texts into a joinable, filterable column read directly in the database. On ABAP 7.56 a table function needs the driver-and-filter pattern shown because a parameter cannot bind to a calling column; on ABAP 7.58/S/4HANA 2023 the same result becomes a parameter-less CDS scalar function with true filter push-down.

Where it sits

Explains
Data modellingABAPData modellingcapabilityDefining the shape of data before anything serves it: entities and their types, how they relate, and the projections and views that services and applications consume.
Source
reachable

Who is behind it

aamelin1author

Properties

About this work

declared and crawled
Published
declared
Published on
declared
Views
crawled
2,131

For data-modelling

on the edge
Applies in
authored
abap

More on this5

Group by
Piece, what it offersStill applies
Also explainingData modelling5
CDS Associations & Joins
YouTube — SAP Developers playlists, SAP Developers
nothing recorded
052: 10 Minutes from Start to Launchpad
Software-Heroes, Björn S.
nothing recorded
Calculating IBP Technical Week "Key Figure Date" in S/4HANA Using CDS View
SAP Community, bharatbajaj
nothing recorded
Generating Adobe Form Using RAP framework OData Services
SAP Community, Megastar
nothing recorded
Analyze and optimize ABAP Cloud model apps built on core data services
SAP TechEd — session catalogueThe reasoning
nothing recorded

Details

Graph3 edges
POINTS OUT →
explainsData modellingcapability, core and community
published onSAP Communitypublishing source
discovered viaSAP Communityabap-development-tag
Source
Type
blog
Published on
Host
community.sap.com
First seen
History1
  • Entered the atlasDiscovered via SAP Community · abap-development-tag.
For your agent
Ref
content:beyond-read-text-decoding-sapscript-long-texts-stxl-with-sqlscript-in-cds-amdp
JSON
/content/beyond-read-text-decoding-sapscript-long-texts-stxl-with-sqlscript-in-cds-amdp.json
MCP
Connecting an agent