ddcds_table_header
Tables (classical + CDS): Header Info
ddcds_table_header is a CDS View that provides data about "Tables (classical + CDS): Header Info" in SAP S/4HANA. It reads from 2 data sources (dd02b, dd02l) and exposes 14 fields with key fields table_name, state, state.
Annotations (3)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Tables (classical + CDS): Header Info | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (14)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | table_name | Table Name Upper Case | ||
| KEY | state | Table Activation State | ||
| change_user | Changed By | |||
| change_date | Changed On | |||
| change_time | Changed At | |||
| clientNULLastimestampaschanged_utc | Changed UTC | |||
| comprflagPthenelseXendasprimary_key | Existence of Primary Key | |||
| buffered | Buffering | |||
| KEY | state | dd02b | as4local | Activation State |
| change_user | dd02b | chguser | User Name | |
| change_date | dd02b | chgdate | Last Changed On | |
| change_time | dd02b | chgtime | Last Changed At | |
| clientNULLaschanged_utc | ||||
| buffered | dd02bnd | buffered | Buffering status |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view ddcds_table_header.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
CREATE VIEW ddcds_table_header AS
SELECT
cast( dd02l.tabname as abap.char(30) ) AS table_name,
cast( dd02l.as4local as abap.char(1) ) AS state,
cast( dd02l.as4user as abap.char(12) ) AS change_user,
cast( dd02l.as4date as abap.dats ) AS change_date,
cast( dd02l.as4time as abap.tims ) AS change_time,
cast( dats_tims_to_tstmp( change_date, change_time, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as timestamp ) as changed_utc AS clientNULLastimestampaschanged_utc,
case when dd02l.comprflag = 'P' then '' else 'X' end as primary_key AS comprflagPthenelseXendasprimary_key,
cast( dd02l.buffered as abap.char(1) ) AS buffered,
dats_tims_to_tstmp( change_date, change_time, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as changed_utc AS clientNULLaschanged_utc
FROM dd02l
-- UNION ALL with additional select branch(es): dd02b
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA