I_ConditionDocument
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
| Category | Condition Contract |
|---|---|
| Status | Activation 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
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
SAP API Hub
| Category | Composite |
|---|---|
| State | C1 |
| Line of Business | Sales |
| Application Component | LO-GT-CHB |
| Capabilities | Association 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 |
| Package | Sales 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
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Public Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Public Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Public Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Custom Communication Scenarios — Create custom communication scenarios to configure custom communication arrangement
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Public Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| R_ConditionDocument | R_ConditionDocument | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CndnContrType | _CndnContrType | $projection.CndnContrType = _CndnContrType.CndnContrType |
| [0..1] | I_ConditionDocument | _PrecedingConditionDocument | $projection.PrecedingConditionDocument = _PrecedingConditionDocument.ConditionDocument |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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