C_PlanningScopeMBOM

DDL: C_PLANNINGSCOPEMBOM SQL: CPLNSCPMBOM Type: view CONSUMPTION Package: VEP_HFE_MODEL

Consumption View for Document Mbom links

C_PlanningScopeMBOM is a Consumption CDS View that provides data about "Consumption View for Document Mbom links" in SAP S/4HANA. It reads from 1 data source (I_PlanningScopeMBOMTP) and exposes 25 fields with key fields DocumentId, PlanningScopeAlternative, SourceMaterial, PlanningScopeItemCount. It has 1 association to related views. Part of development package VEP_HFE_MODEL.

Data Sources (1)

SourceAliasJoin Type
I_PlanningScopeMBOMTP PlanningScopeMBOM from

Associations (1)

CardinalityTargetAliasCondition
[1..1] C_PlanningScopeHeader _PlanningScopeHeader $projection.DocumentId = _PlanningScopeHeader.DocumentId and $projection.PlanningScopeAlternative = _PlanningScopeHeader.PlanningScopeAlternative and $projection.SourceMaterial = _PlanningScopeHeader.SourceMaterial

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName CPLNSCPMBOM view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Consumption View for Document Mbom links view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #CONSUMPTION view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled true view

Fields (25)

KeyFieldSource TableSource FieldDescription
KEY DocumentId I_PlanningScopeMBOMTP DocumentId Routing slip doc. ID
KEY PlanningScopeAlternative I_PlanningScopeMBOMTP PlanningScopeAlternative Planning Scope Alternative
KEY SourceMaterial I_PlanningScopeMBOMTP SourceMaterial
KEY PlanningScopeItemCount I_PlanningScopeMBOMTP PlanningScopeItemCount
BillOfMaterialHeaderUUID I_PlanningScopeMBOMTP BillOfMaterialHeaderUUID Guid
Material I_PlanningScopeMBOMTP Material Vehicle Model
TaskListGroupCounter I_PlanningScopeMBOMTP TaskListGroupCounter Group Counter
TaskListGroup I_PlanningScopeMBOMTP TaskListGroup Group
TaskListType I_PlanningScopeMBOMTP TaskListType Task List Type
AlternativeBillOfMaterial I_PlanningScopeMBOMTP AlternativeBillOfMaterial
MBOMState I_PlanningScopeMBOMTP MBOMState MBOM Status
MfgBillOfMaterialCategory I_PlanningScopeMBOMTP MfgBillOfMaterialCategory
MBOMUsage I_PlanningScopeMBOMTP MBOMUsage
ChangeNumber I_PlanningScopeMBOMTP ChangeNumber Change Number
Plant I_PlanningScopeMBOMTP Plant Valuation Area
BOMIsActive I_PlanningScopeMBOMTP BOMIsActive
BOMHeaderDraftUUID I_PlanningScopeMBOMTP BOMHeaderDraftUUID
StatusCount I_PlanningScopeMBOMTP StatusCount
BillOfMaterialVariantUsageDesc
_PlanningScopeHeader _PlanningScopeHeader
_BOMHeader I_PlanningScopeMBOMTP _BOMHeader
_BillOfMaterialVariantUsage I_PlanningScopeMBOMTP _BillOfMaterialVariantUsage
_BillOfOperationsGroup I_PlanningScopeMBOMTP _BillOfOperationsGroup
_BillOfOperationsType I_PlanningScopeMBOMTP _BillOfOperationsType
SyncedWithSyncUnitUUID I_PlanningScopeMBOMTP SyncedWithSyncUnitUUID

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_PlanningScopeMBOM.
-- 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: CPLNSCPMBOM

CREATE VIEW C_PlanningScopeMBOM AS
SELECT
  PlanningScopeMBOM.DocumentId AS DocumentId,
  PlanningScopeMBOM.PlanningScopeAlternative AS PlanningScopeAlternative,
  PlanningScopeMBOM.SourceMaterial AS SourceMaterial,
  PlanningScopeMBOM.PlanningScopeItemCount AS PlanningScopeItemCount,
  PlanningScopeMBOM.BillOfMaterialHeaderUUID AS BillOfMaterialHeaderUUID,
  PlanningScopeMBOM.Material AS Material,
  PlanningScopeMBOM.TaskListGroupCounter AS TaskListGroupCounter,
  PlanningScopeMBOM.TaskListGroup AS TaskListGroup,
  PlanningScopeMBOM.TaskListType AS TaskListType,
  PlanningScopeMBOM.AlternativeBillOfMaterial AS AlternativeBillOfMaterial,
  PlanningScopeMBOM.MBOMState AS MBOMState,
  PlanningScopeMBOM.MfgBillOfMaterialCategory AS MfgBillOfMaterialCategory,
  PlanningScopeMBOM.MBOMUsage AS MBOMUsage,
  PlanningScopeMBOM.ChangeNumber AS ChangeNumber,
  PlanningScopeMBOM.Plant AS Plant,
  PlanningScopeMBOM.BOMIsActive AS BOMIsActive,
  PlanningScopeMBOM.BOMHeaderDraftUUID AS BOMHeaderDraftUUID,
  PlanningScopeMBOM.StatusCount AS StatusCount,
  PlanningScopeMBOM._BillOfMaterialVariantUsage[ Language = $session.system_language ].BillOfMaterialVariantUsageDesc AS BillOfMaterialVariantUsageDesc,
  PlanningScopeMBOM._BOMHeader AS _BOMHeader,
  PlanningScopeMBOM._BillOfMaterialVariantUsage AS _BillOfMaterialVariantUsage,
  PlanningScopeMBOM._BillOfOperationsGroup AS _BillOfOperationsGroup,
  PlanningScopeMBOM._BillOfOperationsType AS _BillOfOperationsType,
  PlanningScopeMBOM.SyncedWithSyncUnitUUID AS SyncedWithSyncUnitUUID
FROM I_PlanningScopeMBOMTP AS PlanningScopeMBOM
LEFT OUTER JOIN C_PlanningScopeHeader AS _PlanningScopeHeader ON DocumentId = _PlanningScopeHeader.DocumentId AND PlanningScopeAlternative = _PlanningScopeHeader.PlanningScopeAlternative AND SourceMaterial = _PlanningScopeHeader.SourceMaterial  -- association [1..1]
;