ESH_B_CNDNCONTR

DDL: ESH_B_CNDNCONTR SQL: ESH_B_CC Type: view Package: WCB_CC_PERS

Enterprise Search for Condition Contracts "Basicview"

ESH_B_CNDNCONTR is a CDS View that provides data about "Enterprise Search for Condition Contracts "Basicview"" in SAP S/4HANA. It reads from 1 data source (I_ConditionContract) and exposes 31 fields. It has 2 associations to related views. Part of development package WCB_CC_PERS.

Data Sources (1)

SourceAliasJoin Type
I_ConditionContract coco from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_Customer _Customer $projection.Customer = _Customer.Customer
[1..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName ESH_B_CC view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Enterprise Search for Condition Contracts "Basicview" view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #XXL view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (31)

KeyFieldSource TableSource FieldDescription
ConditionContract
CreatedByUser I_ConditionContract CreatedByUser User Name
CreationDate I_ConditionContract CreationDate Time Stamp
CndnContrValidFrom I_ConditionContract CndnContrValidFrom Valid From
CndnContrValidTo I_ConditionContract CndnContrValidTo Valid To
ExternalDocumentReferenceID I_ConditionContract ExternalDocumentReferenceID Ext. Identifier
CndnContrType I_ConditionContract CndnContrType Contract Type
Customer I_ConditionContract Customer Sold-to Party
CustomerBpUUID
Supplier I_ConditionContract Supplier Supplier
SupplierBpUUID
PurchasingOrganization I_ConditionContract PurchasingOrganization Purchasing Organization
PurchasingGroup I_ConditionContract PurchasingGroup Purchasing Group
SalesOrganization I_ConditionContract SalesOrganization Sales Organization
DistributionChannel I_ConditionContract DistributionChannel RefDistCh-Cust/Mat.
Division I_ConditionContract Division Internal Division ID
CndnContrIsInactive I_ConditionContract CndnContrIsInactive
CompanyCode I_ConditionContract CompanyCode Receiver Company Code
PersonWorkAgreement I_ConditionContract PersonWorkAgreement Personnel No.
CndnContrWorkerCostCenter I_ConditionContract CndnContrWorkerCostCenter
_CndnContrType _CndnContrType
_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_B_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_B_CC

CREATE VIEW ESH_B_CNDNCONTR AS
SELECT
  coco.CreatedByUser AS CreatedByUser,
  coco.CreationDate AS CreationDate,
  coco.CndnContrValidFrom AS CndnContrValidFrom,
  coco.CndnContrValidTo AS CndnContrValidTo,
  coco.ExternalDocumentReferenceID AS ExternalDocumentReferenceID,
  coco.CndnContrType AS CndnContrType,
  coco.Customer AS Customer,
  _Customer._CustomerToBusinessPartner.BusinessPartnerUUID AS CustomerBpUUID,
  coco.Supplier AS Supplier,
  _Supplier._SupplierToBusinessPartner.BusinessPartnerUUID AS SupplierBpUUID,
  coco.PurchasingOrganization AS PurchasingOrganization,
  coco.PurchasingGroup AS PurchasingGroup,
  coco.SalesOrganization AS SalesOrganization,
  coco.DistributionChannel AS DistributionChannel,
  coco.Division AS Division,
  coco.CndnContrIsInactive AS CndnContrIsInactive,
  coco.CompanyCode AS CompanyCode,
  coco.PersonWorkAgreement AS PersonWorkAgreement,
  coco.CndnContrWorkerCostCenter AS CndnContrWorkerCostCenter
FROM I_ConditionContract AS coco
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer  -- association [1..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [1..1]
;