SAP tableObjectSTXLModuleABAP

STXL table — SAPscript text line storage cluster table

STXL is the cluster table that physically stores the line content of SAPscript texts (long texts, notes, PO texts, order item texts, etc). One logical row corresponds to the text identified by object, name, id and language in STXH, but the actual lines are packed into a raw cluster field, not stored as flat readable columns, so direct SQL reads return encoded data rather than the text itself.

STXL holds the raw line data behind every SAPscript text object whose header is registered in STXH. The page covers why the table cannot be read directly with a simple SELECT, how to prove a text exists or is missing, and the mistakes consultants make when they try to query it like a normal transparent table.

Published 15 Sept 2026· 1,000 words

What it stores

STXL stores the body content of SAPscript texts: the actual lines that make up a long text, a note, a PO item text, a delivery text, a material memo, or any other text object maintained through the SAPscript text editor and the text API (READ_TEXT, SAVE_TEXT, CREATE_TEXT). Each text is identified by the combination of object, name, id and language, mirrored from the header table STXH. Physically, STXL is a database cluster table: the line records for a given text key are packed together and stored as one raw blob in a cluster field rather than as individual rows with plain columns. Logically a consultant thinks of it as one row per text line, format and content, but the storage layer hides that structure behind the cluster mechanism, which is why the table cannot be browsed the way a normal transparent table can.

Key fields

  • MANDT - client
  • TDOBJECT - text object, e.g. VBBK for sales header text, EKKO for purchasing text, TEXT for general text
  • TDNAME - the key value inside that object, often a document number, material number or free key
  • TDID - text ID distinguishing which text within the object, e.g. header note vs internal note
  • TDSPRAS - language key of the stored text
  • SRTF2 - sort/continuation field used internally by the cluster to sequence the packed line records
  • CLUSTR - internal cluster technical field
  • CLUSTD - the raw packed cluster data holding the actual text lines, format codes and line content; not human readable via a plain SELECT

How it joins the data model

  • STXH-TDOBJECT = STXL-TDOBJECT
  • STXH-TDNAME = STXL-TDNAME
  • STXH-TDID = STXL-TDID
  • STXH-TDSPRAS = STXL-TDSPRAS

How to read it safely

Always restrict on MANDT first, then on the full key: TDOBJECT, TDNAME, TDID, TDSPRAS. Never select on STXL without at least TDOBJECT and TDNAME, the table is enormous in any live system because every long text ever saved for every document lives here. Because the payload is packed into CLUSTD, a raw SELECT against STXL from SE16 or native SQL will show a header row exists but will not give readable text content; the field appears as binary or truncated garbage. The only safe way to retrieve the actual lines is through the text read function module (commonly READ_TEXT) or through the SAPscript editor itself, both of which unpack the cluster correctly for the given key.

How to prove it in the data

To confirm whether a long text exists for a document, do not query STXL directly. First check STXH with TDOBJECT, TDNAME, TDID, TDSPRAS filled in for the document in question; a row there confirms a text object was created, along with TDLINECNT (line count) and change timestamp. If STXH shows a row but the user reports the text is empty in the transaction, call READ_TEXT with the same key to unpack STXL and see the actual lines returned in the internal table.

ECC vs S/4HANA

STXL remains in use on S/4HANA for classic SAPscript long texts and continues to be accessed through the same text API rather than direct SQL. It has not been replaced by a CDS compatibility view because its cluster storage format is not something a view can meaningfully expose as flat fields. Newer text scenarios increasingly use different storage models outside SAPscript, but wherever SAPscript text objects are still used, STXL keeps its original cluster shape and access pattern unchanged.

Common pitfalls

  • Trying to read text content with a direct SELECT on STXL and concluding the text is corrupted or empty because CLUSTD looks like binary noise; the table is a cluster, not a transparent table, and must be unpacked through the text API.
  • Joining STXL to a document table on TDNAME alone without also filtering TDOBJECT and TDID; the same TDNAME value can appear across unrelated text objects and IDs, producing false matches.
  • Assuming a missing row in STXH or STXL for a given key means the text was never entered, when in fact it may exist under a different TDSPRAS than the one checked, especially after translation or when the text was created in a fallback logon language.
  • Deleting or archiving STXH rows without also cleaning the corresponding STXL cluster entries, or vice versa, leaving orphaned data that later confuses reconciliation reports.
  • Assuming line count or content changes in STXL are timestamped per line; the change information lives on the STXH header, not per individual line inside the cluster.
  • Building a custom report that selects STXL for mass text extraction without batching by key range; because it is a cluster table, large unrestricted selects are far more expensive than an equivalent select on a transparent table of similar row count.

Whose problem this is

Ownership sits with the ABAP developer or technical consultant supporting whatever application uses the text object in question, since only they know the correct TDOBJECT, TDID and calling program. Functional consultants can confirm a text is missing or wrong from the transaction screen, but tracing it in the database requires someone comfortable calling READ_TEXT with the right key rather than querying STXL directly.

Related SAP objects

Reviewed pages this object connects to in the ERPClimb knowledge graph.

Source: ERPClimb — https://erpclimb.com/sap-tables/stxlERPClimb is an independent platform and is not affiliated with SAP SE. Reference pages are written and reviewed by SAP consultants for learning and troubleshooting.