C_Schedgagrmnthdrcnd

DDL: C_SCHEDGAGRMNTHDRCND SQL: CSAHDRCND Type: view CONSUMPTION Package: ODATA_MM_SCHD_MAINTAIN

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)

SourceAliasJoin Type
I_Schedgagrmthdrcndwithdraft Document from

Associations (3)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;