ESH_N_CNDNCONTR
Condition Contracts ESH "Rootview"
ESH_N_CNDNCONTR is a CDS View that provides data about "Condition Contracts ESH "Rootview"" in SAP S/4HANA. It reads from 1 data source (ESH_B_CNDNCONTR) and exposes 40 fields. It has 4 associations to related views. Part of development package WCB_CC_PERS.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| ESH_B_CNDNCONTR | basic_view | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_BusinessPartner | _CustomerBusinessPartner | $projection.CustomerBpUUID = _CustomerBusinessPartner.BusinessPartnerUUID |
| [1..1] | I_BusinessPartner | _SupplierBusinessPartner | $projection.SupplierBpUUID = _SupplierBusinessPartner.BusinessPartnerUUID |
| [1..1] | I_CndnContrType | _ContractType | $projection.CndnContrType = _ContractType.CndnContrType |
| [1..1] | I_CndnContrIsInactive | _CndnContrIsInactive | $projection.CndnContrIsInactive = _CndnContrIsInactive.CndnContrIsInactive |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ESH_N_CC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Condition Contracts ESH "Rootview" | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (40)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| ConditionContract | ||||
| CreatedByUser | ESH_B_CNDNCONTR | CreatedByUser | User Name | |
| CreationDate | ESH_B_CNDNCONTR | CreationDate | Time Stamp | |
| CndnContrValidFrom | ESH_B_CNDNCONTR | CndnContrValidFrom | Valid From | |
| CndnContrValidTo | ESH_B_CNDNCONTR | CndnContrValidTo | Valid To | |
| ExternalDocumentReferenceID | ESH_B_CNDNCONTR | ExternalDocumentReferenceID | Ext. Identifier | |
| CndnContrType | ESH_B_CNDNCONTR | CndnContrType | Contract Type | |
| CndnContrTypeDesc | ||||
| Customer | ESH_B_CNDNCONTR | Customer | Sold-to Party | |
| CustomerBpUUID | ESH_B_CNDNCONTR | CustomerBpUUID | ||
| CustomerOrganizationBPName1 | _CustomerBusinessPartner | OrganizationBPName1 | Name 1 | |
| CustomerAuthorizationGroup | _CustomerBusinessPartner | AuthorizationGroup | AuthorizGroup | |
| Supplier | ESH_B_CNDNCONTR | Supplier | Supplier | |
| SupplierBpUUID | ESH_B_CNDNCONTR | SupplierBpUUID | ||
| SupplierOrganizationBPName1 | _SupplierBusinessPartner | OrganizationBPName1 | Name 1 | |
| SupplierAuthorizationGroup | _SupplierBusinessPartner | AuthorizationGroup | AuthorizGroup | |
| PurchasingOrganization | ESH_B_CNDNCONTR | PurchasingOrganization | Purchasing Organization | |
| PurchasingGroup | ESH_B_CNDNCONTR | PurchasingGroup | Purchasing Group | |
| SalesOrganization | ESH_B_CNDNCONTR | SalesOrganization | Sales Organization | |
| DistributionChannel | ESH_B_CNDNCONTR | DistributionChannel | RefDistCh-Cust/Mat. | |
| Division | ESH_B_CNDNCONTR | Division | Internal Division ID | |
| CndnContrIsInactive | ESH_B_CNDNCONTR | CndnContrIsInactive | ||
| CndnContrIsInactiveName | ||||
| CompanyCode | ESH_B_CNDNCONTR | CompanyCode | Receiver Company Code | |
| PersonWorkAgreement | ESH_B_CNDNCONTR | PersonWorkAgreement | Personnel No. | |
| PersonWorkAgrmtAuthznGrpg | _PersonWorkAgreement | AuthorizationGroup | AuthorizGroup | |
| CndnContrWorkerCostCenter | ESH_B_CNDNCONTR | CndnContrWorkerCostCenter | ||
| _CndnContrType | _CndnContrType | |||
| _CustomerBusinessPartner | _CustomerBusinessPartner | |||
| _SupplierBusinessPartner | _SupplierBusinessPartner | |||
| _Customer | _Customer | |||
| _Supplier | _Supplier | |||
| _CndnContrIsInactive | _CndnContrIsInactive | |||
| _PurchasingOrganization | _PurchasingOrganization | |||
| _CompanyCode | _CompanyCode | |||
| _PurchasingGroup | _PurchasingGroup | |||
| _SalesOrganization | _SalesOrganization | |||
| _DistributionChannel | _DistributionChannel | |||
| _Division | _Division | |||
| _PersonWorkAgreement | _PersonWorkAgreement |
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_CNDNCONTR.
-- 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_N_CC
CREATE VIEW ESH_N_CNDNCONTR AS
SELECT
basic_view.CreatedByUser AS CreatedByUser,
basic_view.CreationDate AS CreationDate,
basic_view.CndnContrValidFrom AS CndnContrValidFrom,
basic_view.CndnContrValidTo AS CndnContrValidTo,
basic_view.ExternalDocumentReferenceID AS ExternalDocumentReferenceID,
basic_view.CndnContrType AS CndnContrType,
_ContractType._Text[1: Language = $session.system_language ].CndnContrTypeDesc AS CndnContrTypeDesc,
basic_view.Customer AS Customer,
basic_view.CustomerBpUUID AS CustomerBpUUID,
_CustomerBusinessPartner.OrganizationBPName1 AS CustomerOrganizationBPName1,
_CustomerBusinessPartner.AuthorizationGroup AS CustomerAuthorizationGroup,
basic_view.Supplier AS Supplier,
basic_view.SupplierBpUUID AS SupplierBpUUID,
_SupplierBusinessPartner.OrganizationBPName1 AS SupplierOrganizationBPName1,
_SupplierBusinessPartner.AuthorizationGroup AS SupplierAuthorizationGroup,
basic_view.PurchasingOrganization AS PurchasingOrganization,
basic_view.PurchasingGroup AS PurchasingGroup,
basic_view.SalesOrganization AS SalesOrganization,
basic_view.DistributionChannel AS DistributionChannel,
basic_view.Division AS Division,
basic_view.CndnContrIsInactive AS CndnContrIsInactive,
_CndnContrIsInactive._Text[1: Language = $session.system_language ].CndnContrIsInactiveName AS CndnContrIsInactiveName,
basic_view.CompanyCode AS CompanyCode,
basic_view.PersonWorkAgreement AS PersonWorkAgreement,
_PersonWorkAgreement.AuthorizationGroup AS PersonWorkAgrmtAuthznGrpg,
basic_view.CndnContrWorkerCostCenter AS CndnContrWorkerCostCenter
FROM ESH_B_CNDNCONTR AS basic_view
LEFT OUTER JOIN I_BusinessPartner AS _CustomerBusinessPartner ON CustomerBpUUID = _CustomerBusinessPartner.BusinessPartnerUUID -- association [1..1]
LEFT OUTER JOIN I_BusinessPartner AS _SupplierBusinessPartner ON SupplierBpUUID = _SupplierBusinessPartner.BusinessPartnerUUID -- association [1..1]
LEFT OUTER JOIN I_CndnContrType AS _ContractType ON CndnContrType = _ContractType.CndnContrType -- association [1..1]
LEFT OUTER JOIN I_CndnContrIsInactive AS _CndnContrIsInactive ON CndnContrIsInactive = _CndnContrIsInactive.CndnContrIsInactive -- 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