ddcds_table_header

DDL: DDCDS_TABLE_HEADER Type: view_entity

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.

Data Sources (2)

SourceAliasJoin Type
dd02b dd02b union_all
dd02l dd02l from

Annotations (3)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Tables (classical + CDS): Header Info view
Metadata.ignorePropagatedAnnotations true view

Fields (14)

KeyFieldSource TableSource FieldDescription
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
;