DD_OBJECT_MAINFLAG
Maintenance Flag for Tables and Views
DD_OBJECT_MAINFLAG is a CDS View that provides data about "Maintenance Flag for Tables and Views" in SAP S/4HANA. It reads from 4 data sources (dd02l, dd02b, tadir, tadir) and exposes 12 fields with key fields tabname, as4local, as4local. It has 3 associations to related views.
Data Sources (4)
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | dd02bt | _text_active | _text_active.strucobjn = stob.strucobjn and _text_active.as4local = stob.as4local and _text_active.ddlanguage = $session.system_language -- text English |
| [0..1] | dd02bt | _text_english | _text_english.strucobjn = stob.strucobjn and _text_english.as4local = stob.as4local and _text_english.ddlanguage = 'E' -- text Original |
| [0..1] | dd02bt | _text_original | _text_original.strucobjn = stob.strucobjn and _text_original.as4local = stob.as4local and _text_original.ddlanguage = tadir.masterlang |
Annotations (3)
| Name | Value | Level | Field |
|---|---|---|---|
| Metadata.ignorePropagatedAnnotations | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Maintenance Flag for Tables and Views | view |
Fields (12)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | tabname | Object Name | ||
| KEY | as4local | dd02b | as4local | State |
| tabclass | Object category | |||
| ddlanguage | Language Key | |||
| ddtext | Short Description of Repository Objects | |||
| mainflag | dd02b | mainflag | Maintenance with standard tools allowed | |
| KEY | as4local | dd02l | as4local | Activation State |
| tabclass | dd02l | tabclass | Table Category | |
| ddlanguage | ||||
| ddtext | ||||
| mainflag | dd02l | mainflag | Table Maintenance | |
| clidep | dd02l | clidep | Client-specific |
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 DD_OBJECT_MAINFLAG.
-- 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 DD_OBJECT_MAINFLAG AS
SELECT
cast(stob.strucobjn as tabname) AS tabname,
stob.as4local AS as4local,
cast( 'VIEW' as abap.char(8)) AS tabclass,
coalesce( coalesce( _text_active.ddlanguage, _text_english.ddlanguage ), _text_original.ddlanguage ) AS ddlanguage,
coalesce( coalesce( _text_active.ddtext, _text_english.ddtext ), _text_original.ddtext ) AS ddtext,
stob.mainflag AS mainflag,
dd02l.clidep AS clidep
FROM dd02b AS stob
INNER JOIN tadir ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN dd02bt AS _text_active ON _text_active.strucobjn = stob.strucobjn AND _text_active.as4local = stob.as4local AND _text_active.ddlanguage = $session.system_language -- association [0..1]
LEFT OUTER JOIN dd02bt AS _text_english ON _text_english.strucobjn = stob.strucobjn AND _text_english.as4local = stob.as4local AND _text_english.ddlanguage = 'E' -- association [0..1]
LEFT OUTER JOIN dd02bt AS _text_original ON _text_original.strucobjn = stob.strucobjn AND _text_original.as4local = stob.as4local AND _text_original.ddlanguage = tadir.masterlang -- association [0..1]
-- UNION with additional select branch(es): dd02l
;
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