ESH_N_COST_CENTER_GRP_ER_GROUP
Set Header and Directory
ESH_N_COST_CENTER_GRP_ER_GROUP is a CDS View that provides data about "Set Header and Directory" in SAP S/4HANA. It reads from 1 data source (setheader) and exposes 28 fields with key fields setclass, subclass, setname. It has 6 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| setheader | setheader | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | setnode | _TO_CHILD_GROUP | $projection.setclass = _TO_CHILD_GROUP.setclass and $projection.subclass = _TO_CHILD_GROUP.subclass and $projection.setname = _TO_CHILD_GROUP.setname |
| [0..*] | setnode | _TO_PARENT_GROUP | $projection.setclass = _TO_PARENT_GROUP.subsetcls and $projection.subclass = _TO_PARENT_GROUP.subsetscls and $projection.setname = _TO_PARENT_GROUP.subsetname |
| [0..*] | setheadert | _TO_COST_CENTER_GROUP_T | $projection.setclass = _TO_COST_CENTER_GROUP_T.setclass and $projection.subclass = _TO_COST_CENTER_GROUP_T.subclass and $projection.setname = _TO_COST_CENTER_GROUP_T.setname |
| [0..*] | cskt | _COST_CENTER_GROUP2CSKT | $projection.subclass = _COST_CENTER_GROUP2CSKT.kokrs and $projection.rvalue = _COST_CENTER_GROUP2CSKT.kostl |
| [1..1] | tka01 | _SETHEADER2TKA01 | $projection.subclass = _SETHEADER2TKA01.kokrs |
| [1..1] | ESH_N_USER_USER | _SETHEADER2USER | $projection.creuser = _SETHEADER2USER.bname |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ESH_L_COST_CGRU | view | |
| EndUserText.label | Set Header and Directory | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #P | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ClientHandling.type | #INHERITED | view | |
| AbapCatalog.compiler.compareFilter | true | view |
Fields (28)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | setclass | setclass | Set Class | |
| KEY | subclass | subclass | Subclass | |
| KEY | setname | setname | Set Name | |
| settype | settype | Set Type | ||
| xdynamic | xdynamic | Dynamic Set | ||
| authgr | authgr | Authorization Group | ||
| xuniq | xuniq | Specific Account? | ||
| rvalue | rvalue | Repres. Value | ||
| creuser | creuser | Sett.Doc.Creat. | ||
| credate | credate | Settlement Date | ||
| cretime | cretime | Time | ||
| upduser | upduser | Changed By | ||
| upddate | upddate | Current Date | ||
| updtime | updtime | Updated At | ||
| saprl | saprl | SAP Release | ||
| tabname | tabname | Table/Constant Value | ||
| fieldname | fieldname | UI Group FieldName | ||
| rollname | rollname | Repr. Data Elem | ||
| set_olangu | set_olangu | Original Lang. | ||
| no_rwsheader | no_rwsheader | No Entries Exist in Table RWSHEADER for This Set | ||
| no_rwsline | no_rwsline | No Entries Exist in Table RWSLINE for This Set | ||
| no_setlinet | no_setlinet | No Entries Exist in Table SETLINET for This Set | ||
| _TO_CHILD_GROUP | _TO_CHILD_GROUP | |||
| _TO_PARENT_GROUP | _TO_PARENT_GROUP | |||
| _TO_COST_CENTER_GROUP_T | _TO_COST_CENTER_GROUP_T | |||
| _COST_CENTER_GROUP2CSKT | _COST_CENTER_GROUP2CSKT | |||
| _SETHEADER2TKA01 | _SETHEADER2TKA01 | |||
| _SETHEADER2USER | _SETHEADER2USER |
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 ESH_N_COST_CENTER_GRP_ER_GROUP.
-- 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.
-- SQL view name: ESH_L_COST_CGRU
CREATE VIEW ESH_N_COST_CENTER_GRP_ER_GROUP AS
SELECT
setclass,
subclass,
setname,
settype,
xdynamic,
authgr,
xuniq,
rvalue,
creuser,
credate,
cretime,
upduser,
upddate,
updtime,
saprl,
tabname,
fieldname,
rollname,
set_olangu,
no_rwsheader,
no_rwsline,
no_setlinet
FROM setheader
LEFT OUTER JOIN setnode AS _TO_CHILD_GROUP ON setclass = _TO_CHILD_GROUP.setclass AND subclass = _TO_CHILD_GROUP.subclass AND setname = _TO_CHILD_GROUP.setname -- association [0..*]
LEFT OUTER JOIN setnode AS _TO_PARENT_GROUP ON setclass = _TO_PARENT_GROUP.subsetcls AND subclass = _TO_PARENT_GROUP.subsetscls AND setname = _TO_PARENT_GROUP.subsetname -- association [0..*]
LEFT OUTER JOIN setheadert AS _TO_COST_CENTER_GROUP_T ON setclass = _TO_COST_CENTER_GROUP_T.setclass AND subclass = _TO_COST_CENTER_GROUP_T.subclass AND setname = _TO_COST_CENTER_GROUP_T.setname -- association [0..*]
LEFT OUTER JOIN cskt AS _COST_CENTER_GROUP2CSKT ON subclass = _COST_CENTER_GROUP2CSKT.kokrs AND rvalue = _COST_CENTER_GROUP2CSKT.kostl -- association [0..*]
LEFT OUTER JOIN tka01 AS _SETHEADER2TKA01 ON subclass = _SETHEADER2TKA01.kokrs -- association [1..1]
LEFT OUTER JOIN ESH_N_USER_USER AS _SETHEADER2USER ON creuser = _SETHEADER2USER.bname -- association [1..1]
;
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