C_PurReqnItemTypeAnalysis
Purchase Requisition Item Type Analysis
C_PurReqnItemTypeAnalysis is a Consumption CDS View that provides data about "Purchase Requisition Item Type Analysis" in SAP S/4HANA. It reads from 3 data sources (P_RequisitionTypeAnalysis, I_PurchasingCategoryMatlGroup, I_CalendarDate) and exposes 36 fields with key field PurchaseRequisitionItem. It has 8 associations to related views. It is exposed through 1 OData service (ASQL_F1990). Part of development package ODATA_PRC_OVP.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| P_RequisitionTypeAnalysis | P_RequisitionTypeAnalysis | from |
| I_PurchasingCategoryMatlGroup | PurchasingCategoryMatlGroup | left_outer |
| I_CalendarDate | RelevantDates | left_outer |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_DateFunction | datefunctionid | |
| P_StartDate | badat | |
| P_EndDate | badat |
Associations (8)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Purreqvaluationarea | _Purreqvaluationarea | $projection.Plant = _Purreqvaluationarea.ValuationArea |
| [1..1] | C_MM_MaterialValueHelp | _Material | $projection.Material = _Material.Material and $projection.Plant = _Material.Plant |
| [1..1] | I_MaterialGroup | _MaterialGroup | $projection.MaterialGroup = _MaterialGroup.MaterialGroup |
| [1..1] | C_PurchasingGroupValueHelp | _PurchasingGroup | $projection.PurchasingGroup = _PurchasingGroup.PurchasingGroup |
| [1..1] | C_PurchasingOrgValueHelp | _PurchasingOrg | $projection.PurchasingOrganization = _PurchasingOrg.PurchasingOrganization |
| [1..1] | I_PurReqnItemClassfctn | _PurReqnItemClassfctn | $projection.PurReqnItemClassification = _PurReqnItemClassfctn.PurReqnItemClassification |
| [1..1] | I_PurReqnCreationInd | _PurReqnCreationInd | $projection.PurReqnOrigin = _PurReqnCreationInd.PurReqnOrigin |
| [1..1] | I_Supplier | _Supplier | RequisitionItem.FixedSupplier = _Supplier.Supplier |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| AbapCatalog.sqlViewName | CMMREQTYPEANA2 | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| EndUserText.label | Purchase Requisition Item Type Analysis | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #CHECK | view |
OData Services (1)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F1990 | ASQL_F1990 | C2 | NOT_RELEASED |
Fields (36)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| resultElementDateFunctionStartDate | ||||
| resultElementDateFunctionEndDate | ||||
| P_StartDate | ||||
| PurchaseRequisition | ||||
| KEY | PurchaseRequisitionItem | RequisitionItem | PurchaseRequisitionItem | Requisn. item |
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| PurchasingGroupName | _PurchasingGroup | PurchasingGroupName | Purchasing Grp. Name | |
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| PurchasingOrganizationName | _PurchasingOrg | PurchasingOrganizationName | Purch. Org. Name | |
| FixedSupplier | ||||
| SupplierName | _Supplier | SupplierName | Supplier Name | |
| MaterialGroup | RequisitionItem | MaterialGroup | Product Group | |
| MaterialGroupName | ||||
| Material | Material | Vehicle Model | ||
| MaterialName | _Material | MaterialName | Material Description | |
| Plant | Plant | Valuation Area | ||
| PlantName | _Material | PlantName | Plant Name | |
| PurchasingCategory | ||||
| PurgCatName | ||||
| PurReqnOrigin | PurReqnOrigin | Creation ind. | ||
| PurReqnOriginDesc | ||||
| CompanyCode | _Purreqvaluationarea | CompanyCode | Receiver Company Code | |
| CreatedByUser | CreatedByUser | User Name | ||
| CreationDate | CreationDate | Time Stamp | ||
| CalendarYear | CalendarYear | Year | ||
| CalendarQuarter | CalendarQuarter | Calendar Quarter | ||
| CalendarMonth | CalendarMonth | Calendar Month | ||
| CalendarWeek | CalendarWeek | Calendar Week | ||
| PurReqnItemClassification | PurReqnItemClassification | |||
| PurReqItemClassificationText | ||||
| PurReqnItemClassfctnCount | Item Count | |||
| _PurReqnItemClassfctn | _PurReqnItemClassfctn | |||
| _PurReqnCreationInd | _PurReqnCreationInd | |||
| _Purreqvaluationarea | _Purreqvaluationarea | |||
| _MaterialGroup | _MaterialGroup | |||
| _Material | _Material |
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_PurReqnItemTypeAnalysis.
-- 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: CMMREQTYPEANA2
-- Parameters: P_DateFunction : datefunctionid, P_StartDate : badat, P_EndDate : badat
CREATE VIEW C_PurReqnItemTypeAnalysis AS
SELECT
resultElement: 'DateFunctionStartDate' AS resultElementDateFunctionStartDate,
resultElement: 'DateFunctionEndDate' AS resultElementDateFunctionEndDate,
binding: [ { targetParameter: 'P_DateFunction', type: #PARAMETER, value : 'P_DateFunction' AS P_StartDate,
RequisitionItem.PurchaseRequisitionItem AS PurchaseRequisitionItem,
PurchasingGroup,
_PurchasingGroup.PurchasingGroupName AS PurchasingGroupName,
PurchasingOrganization,
_PurchasingOrg.PurchasingOrganizationName AS PurchasingOrganizationName,
cast(RequisitionItem.FixedSupplier as flief ) AS FixedSupplier,
_Supplier.SupplierName AS SupplierName,
RequisitionItem.MaterialGroup AS MaterialGroup,
_MaterialGroup._Text[1: Language = $session.system_language].MaterialGroupName AS MaterialGroupName,
Material,
_Material.MaterialName AS MaterialName,
Plant,
_Material.PlantName AS PlantName,
PurchasingCategoryMatlGroup._PurchasingCategory.PurchasingCategory AS PurchasingCategory,
PurchasingCategoryMatlGroup._PurchasingCategory.PurgCatName AS PurgCatName,
PurReqnOrigin,
_PurReqnCreationInd._Text[1: Language = $session.system_language].PurReqnOriginDesc AS PurReqnOriginDesc,
_Purreqvaluationarea.CompanyCode AS CompanyCode,
CreatedByUser,
CreationDate,
CalendarYear,
CalendarQuarter,
CalendarMonth,
CalendarWeek,
PurReqnItemClassification,
_PurReqnItemClassfctn._PurReqnItemClassfctnText[1:Language = $session.system_language].PurReqItemClassificationText AS PurReqItemClassificationText,
cast( 1 as abap.int4 ) AS PurReqnItemClassfctnCount
FROM P_RequisitionTypeAnalysis
LEFT OUTER JOIN I_CalendarDate AS RelevantDates ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_PurchasingCategoryMatlGroup AS PurchasingCategoryMatlGroup ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Purreqvaluationarea AS _Purreqvaluationarea ON Plant = _Purreqvaluationarea.ValuationArea -- association [1..1]
LEFT OUTER JOIN C_MM_MaterialValueHelp AS _Material ON Material = _Material.Material AND Plant = _Material.Plant -- association [1..1]
LEFT OUTER JOIN I_MaterialGroup AS _MaterialGroup ON MaterialGroup = _MaterialGroup.MaterialGroup -- association [1..1]
LEFT OUTER JOIN C_PurchasingGroupValueHelp AS _PurchasingGroup ON PurchasingGroup = _PurchasingGroup.PurchasingGroup -- association [1..1]
LEFT OUTER JOIN C_PurchasingOrgValueHelp AS _PurchasingOrg ON PurchasingOrganization = _PurchasingOrg.PurchasingOrganization -- association [1..1]
LEFT OUTER JOIN I_PurReqnItemClassfctn AS _PurReqnItemClassfctn ON PurReqnItemClassification = _PurReqnItemClassfctn.PurReqnItemClassification -- association [1..1]
LEFT OUTER JOIN I_PurReqnCreationInd AS _PurReqnCreationInd ON PurReqnOrigin = _PurReqnCreationInd.PurReqnOrigin -- association [1..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON RequisitionItem.FixedSupplier = _Supplier.Supplier -- 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