I_PlanningScopeHeaderDetail

DDL: I_PLANNINGSCOPEHEADERDETAIL SQL: IPLNSCPHDRDET Type: view BASIC

VEMP Planning Scope Header Details

I_PlanningScopeHeaderDetail is a Basic CDS View that provides data about "VEMP Planning Scope Header Details" in SAP S/4HANA. It reads from 1 data source (vmp_plnscp_hdr) and exposes 28 fields with key fields DocumentId, PlanningScopeAlternative, SourceMaterial.

Data Sources (1)

SourceAliasJoin Type
vmp_plnscp_hdr PlanningScopeHeader from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IPLNSCPHDRDET view
AbapCatalog.compiler.compareFilter true view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view
VDM.viewType #BASIC view
EndUserText.label VEMP Planning Scope Header Details view

Fields (28)

KeyFieldSource TableSource FieldDescription
KEY DocumentId vmp_plnscp_hdr documentid Routing slip doc. ID
KEY PlanningScopeAlternative vmp_plnscp_hdr plan_scope_alt Plan Scope Alternate
KEY SourceMaterial vmp_plnscp_hdr src_matnr Material
PlanningScopeDescription vmp_plnscp_hdr description Well Code Des.
Plant vmp_plnscp_hdr plant Valuation Area
LastChangeDateTime vmp_plnscp_hdr timestamp UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
ChangeNumber vmp_plnscp_hdr change_number Change Number
DocumentInfoRecordDocType vmp_plnscp_hdr dokar SW Document Type
DocumentInfoRecordDocNumber vmp_plnscp_hdr doknr Document
DocumentInfoRecordDocPart vmp_plnscp_hdr doktl Document Part
DocumentInfoRecordDocVersion vmp_plnscp_hdr dokvr Doc. Version
MBOMUsage vmp_plnscp_hdr mbom_usage Usage
LastChangedByUser vmp_plnscp_hdr last_synced_by Checkout User
Material vmp_plnscp_hdr target_matnr Material
MfgBillOfMaterialCategory
RecordCreationDate vmp_plnscp_hdr created_on Variant created on
CreatedByUser vmp_plnscp_hdr created_by Version Created By
SourcePlant vmp_plnscp_hdr source_plant Source plant
SourceBOMAlternative vmp_plnscp_hdr source_bom_alt Source BOM alt
SourceBOMUsage vmp_plnscp_hdr source_bom_usage Usage
EBOMValidity vmp_plnscp_hdr source_validity Source validity date
SourceBOMType vmp_plnscp_hdr source_bom_type EBom Type
BOMIsActive vmp_plnscp_hdr stlst Order level
ConfigurationSimulationDate vmp_plnscp_hdr psm_explosion_date Date
ProductStructureNodeUUID vmp_plnscp_hdr psm_node_guid PSM Node Name
ProductStructureUsage vmp_plnscp_hdr psm_usage Usage
sstring10endasPlanningSourceType
SourceChangeNumber vmp_plnscp_hdr source_change_number Change Number

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 I_PlanningScopeHeaderDetail.
-- 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: IPLNSCPHDRDET

CREATE VIEW I_PlanningScopeHeaderDetail AS
SELECT
  PlanningScopeHeader.documentid AS DocumentId,
  PlanningScopeHeader.plan_scope_alt AS PlanningScopeAlternative,
  PlanningScopeHeader.src_matnr AS SourceMaterial,
  PlanningScopeHeader.description AS PlanningScopeDescription,
  PlanningScopeHeader.plant AS Plant,
  PlanningScopeHeader.timestamp AS LastChangeDateTime,
  PlanningScopeHeader.change_number AS ChangeNumber,
  PlanningScopeHeader.dokar AS DocumentInfoRecordDocType,
  PlanningScopeHeader.doknr AS DocumentInfoRecordDocNumber,
  PlanningScopeHeader.doktl AS DocumentInfoRecordDocPart,
  PlanningScopeHeader.dokvr AS DocumentInfoRecordDocVersion,
  PlanningScopeHeader.mbom_usage AS MBOMUsage,
  PlanningScopeHeader.last_synced_by AS LastChangedByUser,
  PlanningScopeHeader.target_matnr AS Material,
  cast('M' as vmp_mbom_type preserving type ) AS MfgBillOfMaterialCategory,
  PlanningScopeHeader.created_on AS RecordCreationDate,
  PlanningScopeHeader.created_by AS CreatedByUser,
  PlanningScopeHeader.source_plant AS SourcePlant,
  PlanningScopeHeader.source_bom_alt AS SourceBOMAlternative,
  PlanningScopeHeader.source_bom_usage AS SourceBOMUsage,
  PlanningScopeHeader.source_validity AS EBOMValidity,
  PlanningScopeHeader.source_bom_type AS SourceBOMType,
  PlanningScopeHeader.stlst AS BOMIsActive,
  PlanningScopeHeader.psm_explosion_date AS ConfigurationSimulationDate,
  PlanningScopeHeader.psm_node_guid AS ProductStructureNodeUUID,
  PlanningScopeHeader.psm_usage AS ProductStructureUsage,
  case PlanningScopeHeader.doknr when '' then case PlanningScopeHeader.psm_usage when '' then cast ('EBOM' as abap.sstring(10) ) else cast('PSM' as abap.sstring(10) ) end else cast('DBOM' as abap.sstring(10) ) end as PlanningSourceType AS sstring10endasPlanningSourceType,
  PlanningScopeHeader.source_change_number AS SourceChangeNumber
FROM vmp_plnscp_hdr AS PlanningScopeHeader
;