I_ConditionDocument

DDL: I_CONDITIONDOCUMENT Type: view_entity COMPOSITE Package: WCB_CC_PERS

Condition Document

I_ConditionDocument (Composite)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.

Sales

I_ConditionDocument is a Composite CDS View that provides data about "Condition Document" in SAP S/4HANA. It reads from 1 data source (R_ConditionDocument) and exposes 25 fields with key field ConditionDocument. It has 2 associations to related views. Part of development package WCB_CC_PERS.

SAP Help Documentation

CategoryCondition Contract
StatusActivation Status
Purpose
This CDS view provides the prerequisites for answering questions about condition documents. A condition document groups all relevant contract types in Settlement Management, for example condition contracts. This CDS view provides the data to answer the following business questions: What is the organizational data associated with the condition document? What is the contract type? Is the condition document relevant for the supplier or customer? What is the validity period of the condition document? Does a preceding condition document exist? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations Users who want to use this CDS view must have a role with the following restriction types set to read access: BEGRU_KNA1 (Authorization Group for Customers) BEGRU_LFA1 (Authorization Group for Suppliers) ORG_AREA (Organizational Area) CONTR_TYP (Condition Contract Type) BEGRU_BUPA_GRP (Authorization Group for Business Partners) BUKRS_KOSTL (Company Code/Cost Center) You can use the Display Restriction Types app to find out in which business catalogs these restriction types are included.

Structure
Important Fields Important fields in this view include the following: Field Name Description ConditionDocument Condition Document Number CndnContrType Condition Contract Type CndnDocActivationStatus Activation Status ConditionDocumentValidFromDate Valid From ConditionDocumentValidToDate Valid To Supplier Supplier Customer Customer PriorSupplier Prior Supplier CompanyCode Company Code PurchasingOrganization Purchasing Organization PurchasingGroup Purchasing Group SalesOrganization Sales Organization DistributionChannel Distribution Channel Division Division PrecedingConditionDocument Preceding Condition Document CndnDocObjNodeTypeAbbr Abbreviation of SAP Object Node Type CndnDocSemanticCode Semantic Type

View on SAP Help Portal →

SAP API Hub

CategoryComposite
StateC1
Line of BusinessSales
Application ComponentLO-GT-CHB
CapabilitiesAssociation Target for Defining CDS Entities,Data Source for Defining CDS Entities,Data Source in SQL Select
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Released
PackageSales for SAP S/4HANA Cloud Public Edition
Description <p>This CDS view provides the prerequisites for answering questions about condition documents. A condition document groups all relevant contract types in Settlement Management, for example condition contracts.</p> <p>This CDS view provides the data to answer the following business questions:</p> <ul> <li> <p>What is the organizational data associated with the condition document?</p> </li> <li> <p>What is the contract type?</p> </li> <li> <p>Is the condition document relevant for the supplier or customer?</p> </li> <li> <p>What is the validity period of the condition document?</p> </li> <li> <p>Does a preceding condition document exist?</p> </li> </ul> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
R_ConditionDocument R_ConditionDocument from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_CndnContrType _CndnContrType $projection.CndnContrType = _CndnContrType.CndnContrType
[0..1] I_ConditionDocument _PrecedingConditionDocument $projection.PrecedingConditionDocument = _PrecedingConditionDocument.ConditionDocument

Annotations (11)

NameValueLevelField
EndUserText.label Condition Document view
AccessControl.authorizationCheck #MANDATORY view
ObjectModel.representativeKey ConditionDocument view
ObjectModel.modelingPattern #NONE view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #XXL view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
Metadata.ignorePropagatedAnnotations true view
Metadata.allowExtensions false view

Fields (25)

KeyFieldSource TableSource FieldDescription
KEY ConditionDocument ConditionDocument Condition Document
CndnContrType CndnContrType Condition Contract Type
CndnDocActivationStatus CndnDocActivationStatus Condition Contract Activation Status
ConditionDocumentValidFromDate ConditionDocumentValidFromDate Validity Start Date
ConditionDocumentValidToDate ConditionDocumentValidToDate Validity End Date
Supplier Supplier Supplier as Partner of a Condition Contract
Customer Customer Customer as Partner of a Condition Contract
PriorSupplier PriorSupplier Prior Supplier
PersonWorkAgreement PersonWorkAgreement Worker as Partner of a Condition Contract
CompanyCode CompanyCode Receiver Company Code
PurchasingOrganization PurchasingOrganization Purchasing Organization
PurchasingGroup PurchasingGroup Purchasing Group
SalesOrganization SalesOrganization Sales Organization
DistributionChannel DistributionChannel Distribution Channel
Division Division Internal Division ID
PrecedingConditionDocument PrecedingConditionDocument Predecessor Condition Contract
CndnDocWorkerCostCenter CndnDocWorkerCostCenter Worker Cost Center
CndnDocObjNodeTypeAbbr CndnDocObjNodeTypeAbbr Abbreviation of SAP Object Node Type
CndnDocSemanticCode CndnDocSemanticCode Semantic Type
_CndnContrType _CndnContrType
_Supplier _Supplier
_Customer _Customer
_PriorSupplier _PriorSupplier
_PersonWorkAgreement _PersonWorkAgreement
_PrecedingConditionDocument _PrecedingConditionDocument

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 I_ConditionDocument.
-- 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 I_ConditionDocument AS
SELECT
  ConditionDocument,
  CndnContrType,
  CndnDocActivationStatus,
  ConditionDocumentValidFromDate,
  ConditionDocumentValidToDate,
  Supplier,
  Customer,
  PriorSupplier,
  PersonWorkAgreement,
  CompanyCode,
  PurchasingOrganization,
  PurchasingGroup,
  SalesOrganization,
  DistributionChannel,
  Division,
  PrecedingConditionDocument,
  CndnDocWorkerCostCenter,
  CndnDocObjNodeTypeAbbr,
  CndnDocSemanticCode
FROM R_ConditionDocument
LEFT OUTER JOIN I_CndnContrType AS _CndnContrType ON CndnContrType = _CndnContrType.CndnContrType  -- association [0..1]
LEFT OUTER JOIN I_ConditionDocument AS _PrecedingConditionDocument ON PrecedingConditionDocument = _PrecedingConditionDocument.ConditionDocument  -- association [0..1]
;