C_SrcPrjByPlntProcmtPrj
Sourcing Project by Plant and Proc Proj
C_SrcPrjByPlntProcmtPrj is a Consumption CDS View that provides data about "Sourcing Project by Plant and Proc Proj" in SAP S/4HANA. It reads from 1 data source (P_SRCPROJBYPROCANDPLANT2) and exposes 21 fields with key field ProcurementProjectUUID. It has 5 associations to related views. It is exposed through 1 OData service (UI_PRODUCT_SOURCING_OVWP). Part of development package ODATA_MM_PUR_PROD_SRCG_OVP.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_SRCPROJBYPROCANDPLANT2 | P_SRCPROJBYPROCANDPLANT2 | from |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_StartDate | vdm_srcgprojcreationdate | |
| P_EndDate | vdm_srcgprojcreationdate | |
| P_DateFunction | datefunctionid |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [1..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [1..1] | I_PurchasingGroup | _PurchasingGroup | $projection.PurchasingGroup = _PurchasingGroup.PurchasingGroup |
| [1..1] | I_PurchasingOrganization | _PurchasingOrganization | $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization |
| [1..1] | I_ProductGroup_2 | _MaterialGroup | $projection.MaterialGroup = _MaterialGroup.ProductGroup |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CMMSRCPRJ | view | |
| EndUserText.label | Sourcing Project by Plant and Proc Proj | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
OData Services (1)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| UI_PRODUCT_SOURCING_OVWP | UI_PRODUCT_SOURCING | V2 | C1 | NOT_RELEASED |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| resultElementDateFunctionStartDateTime | ||||
| resultElementDateFunctionEndDateTime | ||||
| P_StartDate | ||||
| SourcingProjectUUIDasSourcingProjectUUID | ||||
| KEY | ProcurementProjectUUID | ProcurementProjectUUID | Procurement Project UUID | |
| SourcingProject | SourcingProject | SourcingProject | Sourcing Project | |
| SourcingProjectName | SourcingProject | SourcingProjectName | Name | |
| ProcurementProject | ProcurementProject | Project | ||
| ProcurementProjectName | ProcurementProjectName | Name | ||
| Plant | Plant | Valuation Area | ||
| PlantName | _Plant | PlantName | Plant Name | |
| CompanyCode | CompanyCode | Receiver Company Code | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| MaterialGroup | MaterialGroup | Product Group | ||
| NumberOfSourcingProjects | ||||
| _Plant | _Plant | |||
| _CompanyCode | _CompanyCode | |||
| _MaterialGroup | _MaterialGroup | |||
| _PurchasingGroup | _PurchasingGroup | |||
| _PurchasingOrganization | _PurchasingOrganization |
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_SrcPrjByPlntProcmtPrj.
-- 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: CMMSRCPRJ
-- Parameters: P_StartDate : vdm_srcgprojcreationdate, P_EndDate : vdm_srcgprojcreationdate, P_DateFunction : datefunctionid
CREATE VIEW C_SrcPrjByPlntProcmtPrj AS
SELECT
resultElement: 'DateFunctionStartDateTime' AS resultElementDateFunctionStartDateTime,
resultElement: 'DateFunctionEndDateTime' AS resultElementDateFunctionEndDateTime,
binding: [ { targetParameter: 'P_DateFunction', type: #PARAMETER, value : 'P_DateFunction' AS P_StartDate,
ProcurementProjectUUID,
SourcingProject.SourcingProject AS SourcingProject,
SourcingProject.SourcingProjectName AS SourcingProjectName,
ProcurementProject,
ProcurementProjectName,
Plant,
_Plant.PlantName AS PlantName,
CompanyCode,
PurchasingGroup,
PurchasingOrganization,
MaterialGroup,
cast( 1 as mm_pur_ana_numbrofsrcgproj ) AS NumberOfSourcingProjects
FROM P_SRCPROJBYPROCANDPLANT2
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [1..1]
LEFT OUTER JOIN I_PurchasingGroup AS _PurchasingGroup ON PurchasingGroup = _PurchasingGroup.PurchasingGroup -- association [1..1]
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchasingOrganization ON PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization -- association [1..1]
LEFT OUTER JOIN I_ProductGroup_2 AS _MaterialGroup ON MaterialGroup = _MaterialGroup.ProductGroup -- association [1..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- 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