C_Schedgagrmnthdrcnd
SA header conditions Consumption
C_Schedgagrmnthdrcnd is a Consumption CDS View that provides data about "SA header conditions Consumption" in SAP S/4HANA. It reads from 1 data source (I_Schedgagrmthdrcndwithdraft) and exposes 17 fields with key fields SchedulingAgreement, ConditionType, ConditionValidityEndDate, ConditionSequentialNumber. It has 3 associations to related views. Part of development package ODATA_MM_SCHD_MAINTAIN.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_Schedgagrmthdrcndwithdraft | Document | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | C_Schedgagrmthdr | _SchedgagrmthdrWithDraft | _SchedgagrmthdrWithDraft.SchedulingAgreement = $projection.SchedulingAgreement |
| [1..*] | I_PurConditionText | _ConditionText | _ConditionText.ConditionType = $projection.ConditionType |
| [0..1] | I_Currency | _DocumentCurrency | $projection.ConditionRateValueUnit = _DocumentCurrency.Currency |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CSAHDRCND | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | SA header conditions Consumption | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.createEnabled | false | view | |
| ObjectModel.deleteEnabled | false | view | |
| ObjectModel.updateEnabled | false | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| UI.headerInfo.typeName | Header Condition | view | |
| UI.headerInfo.typeNamePlural | Header Conditions | view | |
| UI.headerInfo.title.value | ConditionText | view | |
| UI.headerInfo.description.value | ConditionType | view |
Fields (17)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SchedulingAgreement | I_Schedgagrmthdrcndwithdraft | SchedulingAgreement | Scheduling Agreement |
| KEY | ConditionType | I_Schedgagrmthdrcndwithdraft | ConditionType | Condition type |
| KEY | ConditionValidityEndDate | I_Schedgagrmthdrcndwithdraft | ConditionValidityEndDate | Valid To |
| KEY | ConditionSequentialNumber | I_Schedgagrmthdrcndwithdraft | ConditionSequentialNumber | SequNo of Cond. |
| ConditionValidityStartDate | I_Schedgagrmthdrcndwithdraft | ConditionValidityStartDate | Valid From | |
| CndnValdtyEndDteForEdit | I_Schedgagrmthdrcndwithdraft | CndnValdtyEndDteForEdit | Valid To | |
| ConditionTypeForEdit | I_Schedgagrmthdrcndwithdraft | ConditionTypeForEdit | Condition type | |
| ConditionRateValue | I_Schedgagrmthdrcndwithdraft | ConditionRateValue | Amount | |
| ConditionRateValueUnit | I_Schedgagrmthdrcndwithdraft | ConditionRateValueUnit | Currency | |
| ConditionQuantity | I_Schedgagrmthdrcndwithdraft | ConditionQuantity | Pricing Unit | |
| ConditionQuantityUnit | I_Schedgagrmthdrcndwithdraft | ConditionQuantityUnit | Unit of Measure | |
| ConditionApplication | I_Schedgagrmthdrcndwithdraft | ConditionApplication | Application | |
| ConditionIsDeleted | I_Schedgagrmthdrcndwithdraft | ConditionIsDeleted | Deletion Indic. | |
| ConditionText | _ConditionText | ConditionText | Node Condition Text | |
| _SchedgagrmthdrWithDraft | _SchedgagrmthdrWithDraft | |||
| _ConditionText | _ConditionText | |||
| _DocumentCurrency | _DocumentCurrency |
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 C_Schedgagrmnthdrcnd.
-- 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: CSAHDRCND
CREATE VIEW C_Schedgagrmnthdrcnd AS
SELECT
Document.SchedulingAgreement AS SchedulingAgreement,
Document.ConditionType AS ConditionType,
Document.ConditionValidityEndDate AS ConditionValidityEndDate,
Document.ConditionSequentialNumber AS ConditionSequentialNumber,
Document.ConditionValidityStartDate AS ConditionValidityStartDate,
Document.CndnValdtyEndDteForEdit AS CndnValdtyEndDteForEdit,
Document.ConditionTypeForEdit AS ConditionTypeForEdit,
Document.ConditionRateValue AS ConditionRateValue,
Document.ConditionRateValueUnit AS ConditionRateValueUnit,
Document.ConditionQuantity AS ConditionQuantity,
Document.ConditionQuantityUnit AS ConditionQuantityUnit,
Document.ConditionApplication AS ConditionApplication,
Document.ConditionIsDeleted AS ConditionIsDeleted,
_ConditionText.ConditionText AS ConditionText
FROM I_Schedgagrmthdrcndwithdraft AS Document
LEFT OUTER JOIN C_Schedgagrmthdr AS _SchedgagrmthdrWithDraft ON _SchedgagrmthdrWithDraft.SchedulingAgreement = SchedulingAgreement -- association [1..1]
LEFT OUTER JOIN I_PurConditionText AS _ConditionText ON _ConditionText.ConditionType = ConditionType -- association [1..*]
LEFT OUTER JOIN I_Currency AS _DocumentCurrency ON ConditionRateValueUnit = _DocumentCurrency.Currency -- 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