R_CndnContrType
Condition Contract Type
R_CndnContrType is a Basic CDS View that provides data about "Condition Contract Type" in SAP S/4HANA. It reads from 1 data source (twcbcontrtype) and exposes 28 fields with key field CndnContrType. It has 13 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| twcbcontrtype | twcbcontrtype | from |
Associations (13)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | R_CndnContrTypeText | _Text | $projection.CndnContrType = _Text.CndnContrType |
| [0..1] | I_CndnContrTypeBlockUsage | _CndnContrTypeBlockUsage | $projection.CndnContrTypeBlockUsage = _CndnContrTypeBlockUsage.CndnContrTypeBlockUsage |
| [0..1] | I_CndnContrPartnerCat | _CndnContrPartnerCat | $projection.CndnContrPartnerCat = _CndnContrPartnerCat.CndnContrPartnerCat |
| [0..1] | I_CndnContrChangeability | _CndnContrChangeability | $projection.CndnContrChangeability = _CndnContrChangeability.CndnContrChangeability |
| [0..1] | R_BusVolFldCombnSet | _BusVolFldCombnSet | $projection.BusVolFldCombnSet = _BusVolFldCombnSet.BusVolFldCombnSet |
| [0..1] | I_CndnContrClassfctnType | _CndnContrClassfctnType | $projection.CndnContrClassfctnType = _CndnContrClassfctnType.CndnContrClassfctnType |
| [0..1] | I_CndnContrItemCategory | _CndnContrItemCategory | $projection.CndnContrItemCategory = _CndnContrItemCategory.CndnContrItemCategory |
| [0..1] | I_CndnContrEligibleCat | _CndnContrEligibleCat | $projection.CndnContrEligibleCat = _CndnContrEligibleCat.CndnContrEligibleCat |
| [0..1] | I_CndnContrSettlmtType | _CndnContrSettlmtType | $projection.CndnContrSettlmtType = _CndnContrSettlmtType.CndnContrSettlmtType |
| [0..1] | I_CndnContrPrtlSettlmtCat | _CndnContrPrtlSettlmtCat | $projection.CndnContrPrtlSettlmtCat = _CndnContrPrtlSettlmtCat.CndnContrPrtlSettlmtCat |
| [0..1] | I_CndnContrAccrRvslCat | _CndnContrAccrRvslCat | $projection.CndnContrAccrRvslCat = _CndnContrAccrRvslCat.CndnContrAccrRvslCat |
| [0..1] | I_CndnContrElmntBehaviorGrp | _ApplElmntBehaviorGrp | $projection.ApplElmntBehaviorGrp = _ApplElmntBehaviorGrp.ApplElmntBehaviorGrp |
| [0..1] | I_CnConMnlSettlmtAllwncCat | _CnConMnlSettlmtAllwncCat | $projection.CnConMnlSettlmtAllwncCat = _CnConMnlSettlmtAllwncCat.CnConMnlSettlmtAllwncCat |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | RWLFCOCOTYPE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| EndUserText.label | Condition Contract Type | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| ObjectModel.representativeKey | CndnContrType | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ClientHandling.type | #INHERITED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Metadata.allowExtensions | false | view |
Fields (28)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CndnContrType | contract_type | Document Type | |
| SAPObjectType | bo_type | SOT Name | ||
| CndnContrTypeBlockUsage | type_block | Type Block | ||
| CndnContrPartnerCat | owner_type | Partner Type | ||
| CndnContrEligibleCat | eligible_type | El. Part. Type | ||
| CndnContrClassfctnType | category | Violation Category | ||
| CndnContrHasNoConditions | no_condition | No Conditions | ||
| CndnContrSettlmtType | Type | |||
| CndnContrChangeability | ui_change | Changes on UI | ||
| BusVolFldCombnSet | busvolbase_type | Set of FldComb | ||
| CndnContrPrtlSettlmtCat | settl_part_type | Partial Settlement | ||
| CndnContrItemCategory | contract_items | Contract Items | ||
| CndnContrAccrRvslCat | accr_rev_type | Accruals Rev. Type | ||
| ApplElmntBehaviorGrp | visibility_group | Element Behavior Group | ||
| CnConMnlSettlmtAllwncCat | Manual Docs Allowed | |||
| _Text | _Text | |||
| _CndnContrTypeBlockUsage | _CndnContrTypeBlockUsage | |||
| _CndnContrPartnerCat | _CndnContrPartnerCat | |||
| _CndnContrClassfctnType | _CndnContrClassfctnType | |||
| _CndnContrChangeability | _CndnContrChangeability | |||
| _BusVolFldCombnSet | _BusVolFldCombnSet | |||
| _CndnContrItemCategory | _CndnContrItemCategory | |||
| _CndnContrEligibleCat | _CndnContrEligibleCat | |||
| _CndnContrSettlmtType | _CndnContrSettlmtType | |||
| _CndnContrPrtlSettlmtCat | _CndnContrPrtlSettlmtCat | |||
| _CndnContrAccrRvslCat | _CndnContrAccrRvslCat | |||
| _ApplElmntBehaviorGrp | _ApplElmntBehaviorGrp | |||
| _CnConMnlSettlmtAllwncCat | _CnConMnlSettlmtAllwncCat |
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 R_CndnContrType.
-- 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 R_CndnContrType AS
SELECT
contract_type AS CndnContrType,
bo_type AS SAPObjectType,
type_block AS CndnContrTypeBlockUsage,
owner_type AS CndnContrPartnerCat,
eligible_type AS CndnContrEligibleCat,
category AS CndnContrClassfctnType,
no_condition AS CndnContrHasNoConditions,
cast( rebate_type as wb2_rebate_type_fio preserving type ) AS CndnContrSettlmtType,
ui_change AS CndnContrChangeability,
busvolbase_type AS BusVolFldCombnSet,
settl_part_type AS CndnContrPrtlSettlmtCat,
contract_items AS CndnContrItemCategory,
accr_rev_type AS CndnContrAccrRvslCat,
visibility_group AS ApplElmntBehaviorGrp,
cast( man_settl_docs as wb2_mnl_settlmt_allowance preserving type ) AS CnConMnlSettlmtAllwncCat
FROM twcbcontrtype
LEFT OUTER JOIN R_CndnContrTypeText AS _Text ON CndnContrType = _Text.CndnContrType -- association [0..*]
LEFT OUTER JOIN I_CndnContrTypeBlockUsage AS _CndnContrTypeBlockUsage ON CndnContrTypeBlockUsage = _CndnContrTypeBlockUsage.CndnContrTypeBlockUsage -- association [0..1]
LEFT OUTER JOIN I_CndnContrPartnerCat AS _CndnContrPartnerCat ON CndnContrPartnerCat = _CndnContrPartnerCat.CndnContrPartnerCat -- association [0..1]
LEFT OUTER JOIN I_CndnContrChangeability AS _CndnContrChangeability ON CndnContrChangeability = _CndnContrChangeability.CndnContrChangeability -- association [0..1]
LEFT OUTER JOIN R_BusVolFldCombnSet AS _BusVolFldCombnSet ON BusVolFldCombnSet = _BusVolFldCombnSet.BusVolFldCombnSet -- association [0..1]
LEFT OUTER JOIN I_CndnContrClassfctnType AS _CndnContrClassfctnType ON CndnContrClassfctnType = _CndnContrClassfctnType.CndnContrClassfctnType -- association [0..1]
LEFT OUTER JOIN I_CndnContrItemCategory AS _CndnContrItemCategory ON CndnContrItemCategory = _CndnContrItemCategory.CndnContrItemCategory -- association [0..1]
LEFT OUTER JOIN I_CndnContrEligibleCat AS _CndnContrEligibleCat ON CndnContrEligibleCat = _CndnContrEligibleCat.CndnContrEligibleCat -- association [0..1]
LEFT OUTER JOIN I_CndnContrSettlmtType AS _CndnContrSettlmtType ON CndnContrSettlmtType = _CndnContrSettlmtType.CndnContrSettlmtType -- association [0..1]
LEFT OUTER JOIN I_CndnContrPrtlSettlmtCat AS _CndnContrPrtlSettlmtCat ON CndnContrPrtlSettlmtCat = _CndnContrPrtlSettlmtCat.CndnContrPrtlSettlmtCat -- association [0..1]
LEFT OUTER JOIN I_CndnContrAccrRvslCat AS _CndnContrAccrRvslCat ON CndnContrAccrRvslCat = _CndnContrAccrRvslCat.CndnContrAccrRvslCat -- association [0..1]
LEFT OUTER JOIN I_CndnContrElmntBehaviorGrp AS _ApplElmntBehaviorGrp ON ApplElmntBehaviorGrp = _ApplElmntBehaviorGrp.ApplElmntBehaviorGrp -- association [0..1]
LEFT OUTER JOIN I_CnConMnlSettlmtAllwncCat AS _CnConMnlSettlmtAllwncCat ON CnConMnlSettlmtAllwncCat = _CnConMnlSettlmtAllwncCat.CnConMnlSettlmtAllwncCat -- 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