C_PurgQuotaArrgmtWithDraft

DDL: C_PURGQUOTAARRGMTWITHDRAFT SQL: CPURGQTAHDRWD Type: view CONSUMPTION

Quota Arrangement Header View

C_PurgQuotaArrgmtWithDraft is a Consumption CDS View that provides data about "Quota Arrangement Header View" in SAP S/4HANA. It reads from 1 data source (I_PurgQuotaArrgmtTP) and exposes 18 fields with key field QuotaArrangement. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_PurgQuotaArrgmtTP Document from

Associations (3)

CardinalityTargetAliasCondition
[1..*] C_PurgQuotaArrgmtItemWD _PurgQuotaArrgmtItemWD $projection.QuotaArrangement = _PurgQuotaArrgmtItemWD.QuotaArrangement
[0..1] C_MM_MaterialValueHelp _MaterialValueHelp $projection.Material = _MaterialValueHelp.Material and $projection.Plant = _MaterialValueHelp.Plant
[0..*] C_MM_PlantValueHelp _PlantValueHelp $projection.Plant = _PlantValueHelp.Plant

Annotations (20)

NameValueLevelField
AbapCatalog.sqlViewName CPURGQTAHDRWD view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Quota Arrangement Header View view
VDM.viewType #CONSUMPTION view
ObjectModel.compositionRoot true view
ObjectModel.createEnabled true view
ObjectModel.deleteEnabled EXTERNAL_CALCULATION view
ObjectModel.updateEnabled true view
UI.headerInfo.typeName Quota Arrangement view
UI.headerInfo.typeNamePlural Quota Arrangements view
UI.headerInfo.title.value QuotaArrangement view
UI.headerInfo.title.type #STANDARD view
UI.headerInfo.description.type #STANDARD view
UI.headerInfo.typeImageUrl /sap/bc/ui5_ui5/sap/mm_qa_maints1/images/QuotaArrangement.jpg view
Search.searchable true view
ObjectModel.draftEnabled true view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY QuotaArrangement I_PurgQuotaArrgmtTP QuotaArrangement Quota arr.
Material I_PurgQuotaArrgmtTP Material Vehicle Model
Plant I_PurgQuotaArrgmtTP Plant Valuation Area
ValidityStartDate I_PurgQuotaArrgmtTP ValidityStartDate Validity Start Date
ValidityEndDate I_PurgQuotaArrgmtTP ValidityEndDate ValidTo
MinQtyForSpltQuota I_PurgQuotaArrgmtTP MinQtyForSpltQuota
CreationDate I_PurgQuotaArrgmtTP CreationDate Time Stamp
CreatedByUser I_PurgQuotaArrgmtTP CreatedByUser User Name
UserDescription I_PurgQuotaArrgmtTP UserDescription Full Name
MaterialBaseUnit I_PurgQuotaArrgmtTP MaterialBaseUnit Valuation Unit
_PurgQuotaArrgmtItemWD _PurgQuotaArrgmtItemWD
_MaterialValueHelp _MaterialValueHelp
_PlantValueHelp _PlantValueHelp
_Material I_PurgQuotaArrgmtTP _Material
_Plant I_PurgQuotaArrgmtTP _Plant
PlantName _Plant PlantName Plant Name
_BaseUnit I_PurgQuotaArrgmtTP _BaseUnit
_UnitOfMeasureText I_PurgQuotaArrgmtTP _UnitOfMeasureText

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_PurgQuotaArrgmtWithDraft.
-- 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: CPURGQTAHDRWD

CREATE VIEW C_PurgQuotaArrgmtWithDraft AS
SELECT
  Document.QuotaArrangement AS QuotaArrangement,
  Document.Material AS Material,
  Document.Plant AS Plant,
  Document.ValidityStartDate AS ValidityStartDate,
  Document.ValidityEndDate AS ValidityEndDate,
  Document.MinQtyForSpltQuota AS MinQtyForSpltQuota,
  Document.CreationDate AS CreationDate,
  Document.CreatedByUser AS CreatedByUser,
  Document.UserDescription AS UserDescription,
  Document.MaterialBaseUnit AS MaterialBaseUnit,
  Document._Material AS _Material,
  Document._Plant AS _Plant,
  _Plant.PlantName AS PlantName,
  Document._BaseUnit AS _BaseUnit,
  Document._UnitOfMeasureText AS _UnitOfMeasureText
FROM I_PurgQuotaArrgmtTP AS Document
LEFT OUTER JOIN C_PurgQuotaArrgmtItemWD AS _PurgQuotaArrgmtItemWD ON QuotaArrangement = _PurgQuotaArrgmtItemWD.QuotaArrangement  -- association [1..*]
LEFT OUTER JOIN C_MM_MaterialValueHelp AS _MaterialValueHelp ON Material = _MaterialValueHelp.Material AND Plant = _MaterialValueHelp.Plant  -- association [0..1]
LEFT OUTER JOIN C_MM_PlantValueHelp AS _PlantValueHelp ON Plant = _PlantValueHelp.Plant  -- association [0..*]
;