C_MRPPurchaseRequisitionCard

DDL: C_MRPPURCHASEREQUISITIONCARD Type: view_entity CONSUMPTION

Quick view for MRP Purchase Requisition

C_MRPPurchaseRequisitionCard is a Consumption CDS View that provides data about "Quick view for MRP Purchase Requisition" in SAP S/4HANA. It reads from 1 data source (I_MRPPurchaseRequisition) and exposes 79 fields with key fields PurchaseRequisition, PurchaseRequisitionItem. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_MRPPurchaseRequisition I_MRPPurchaseRequisition from

Parameters (1)

NameTypeDefault
P_MRPElementCategory mrpelementcategory

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_Plant _SupplyingPlant $projection.SupplyingPlant = _SupplyingPlant.Plant
[0..1] I_Customer _SoldToParty $projection.Customer = _SoldToParty.Customer

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Quick view for MRP Purchase Requisition view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #CONSUMPTION view

Fields (79)

KeyFieldSource TableSource FieldDescription
KEY PurchaseRequisition PurchaseRequisition Requisition
KEY PurchaseRequisitionItem PurchaseRequisitionItem Requisn. item
PurchaseRequisitionType PurchaseRequisitionType Order Type
PurchasingOrganization PurchasingOrganization Purchasing Organization
SupplyingPlant SupplyingPlant Supplying Plant
SupplyingPlantName _SupplyingPlant PlantName Plant Name
MRPPlant MRPPlant Plant
MRPController MRPController MRP Controller
Material Material Vehicle Model
MRPControllerName
Supplier Supplier Supplier
SupplierName SupplierName Supplier Name
PhoneNumber1 PhoneNumber1 Telephone 1
SupplierNameNotSpecifiedText
ContactPersonName
ContactPersonPhoneNumber
InternalContactEmailAddress
PurchasingGroup PurchasingGroup Purchasing Group
PurchasingGroupName PurchasingGroupName Purchasing Grp. Name
PurchasingGroupPhoneNumber PurchasingGroupPhoneNumber Tel.No.Purch.Gp
PurchasingGroupEmailAddress PurchasingGroupEmailAddress
ExternalApprovalStatus ExternalApprovalStatus Ext Prcsng. Status
PurchaseRequisitionReleaseDate PurchaseRequisitionReleaseDate Release Date
DeliveryDate DeliveryDate Delivery Date
MaterialGoodsReceiptDuration MaterialGoodsReceiptDuration GR proc. time
TotalQuantity TotalQuantity Activity Quantity
OrderedQuantity OrderedQuantity Quantity
OpenQuantity OpenQuantity PBE Entry Open Qty
MaterialPlannedDeliveryDurn MaterialPlannedDeliveryDurn Pl. Deliv. Time
WBSElement WBSElement WBS Internal ID
WBSDescription WBSDescription WBS Element Name
Project Project WBS Element
ProjectDescription ProjectDescription Project Name
ProjectResponsiblePerson ProjectResponsiblePerson
ProjectResponsiblePersonName ProjectResponsiblePersonName
SalesDocument SalesDocument SD Document
SalesDocumentItem SalesDocumentItem Sales Document Item
MRPSalesOrderItemText
Customer Customer Sold-to Party
CustomerName _SoldToParty BPCustomerName Name of Customer
PurchaseRequisitionUnit PurchaseRequisitionUnit Unit of Measure
UnitOfMeasureDspNmbrOfDcmls UnitOfMeasureDspNmbrOfDcmls
UnitOfMeasureNumberOfDecimals UnitOfMeasureNumberOfDecimals
UnitOfMeasureCommercialName UnitOfMeasureCommercialName Commercial
OrderUoMCommercialName
OrderItemQtyToBaseQtyNmrtr
OrderItemQtyToBaseQtyDnmntr
OrderQuantityUnitDcmls
OrderQuantityUnitDisplayDcmls
MaterialOrderUnit MaterialOrderUnit
PurchaseRequisitionIsFixed PurchaseRequisitionIsFixed "Fixed" ind.
MRPElementCategory MRPElementCategory MRP Elmnt Ind.
LastChangeDateTime LastChangeDateTime Timestamp
UICT_SupplyingPlant
UICT_Supplier
UICT_SupplierViewTab
UICT_PurchReqViewTab
UICT_SupplierNameNotSpec
UICT_SupplierPhoneNumber
UICT_ContactPersonName
UICT_ContactPersonPhone
UICT_ContactPersonEmail
UICT_MRPControllerName
UICT_PurchasingGroup
UICT_PurchasingGroupPhone
UICT_PurchasingGroupEmail
UICT_ExternalApprovalStatus
UICT_PurchaseReqReleaseDate
UICT_PurchaseReqDeliveryDate
UICT_MatGoodsRcptDuration
UICT_TotalQuantity
UICT_OrderedQuantity
UICT_MRPQuantity
UICT_MatPlndDeliveryDurn
UICT_WBSElement
UICT_ProjectResponsiblePerson
UICT_Project
UICT_SalesOrder
UICT_RelatedObjectsSection

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_MRPPurchaseRequisitionCard.
-- 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.
-- Parameters: P_MRPElementCategory : mrpelementcategory

CREATE VIEW C_MRPPurchaseRequisitionCard AS
SELECT
  PurchaseRequisition,
  PurchaseRequisitionItem,
  PurchaseRequisitionType,
  PurchasingOrganization,
  SupplyingPlant,
  _SupplyingPlant.PlantName AS SupplyingPlantName,
  MRPPlant,
  MRPController,
  Material,
  cast('' as dsnam ) AS MRPControllerName,
  Supplier,
  SupplierName,
  PhoneNumber1,
  cast('' as ad_namtext) AS SupplierNameNotSpecifiedText,
  cast('' as ad_namtext) AS ContactPersonName,
  cast('' as ad_tlnmbr1) AS ContactPersonPhoneNumber,
  cast('' as ad_smtpadr) AS InternalContactEmailAddress,
  PurchasingGroup,
  PurchasingGroupName,
  PurchasingGroupPhoneNumber,
  PurchasingGroupEmailAddress,
  ExternalApprovalStatus,
  PurchaseRequisitionReleaseDate,
  DeliveryDate,
  MaterialGoodsReceiptDuration,
  TotalQuantity,
  OrderedQuantity,
  OpenQuantity,
  MaterialPlannedDeliveryDurn,
  WBSElement,
  WBSDescription,
  Project,
  ProjectDescription,
  ProjectResponsiblePerson,
  ProjectResponsiblePersonName,
  SalesDocument,
  SalesDocumentItem,
  cast( concat( concat( ltrim( SalesDocument, '0' ), '-' ), ltrim( SalesDocumentItem, '0' ) ) as char17 ) AS MRPSalesOrderItemText,
  Customer,
  _SoldToParty.BPCustomerName AS CustomerName,
  PurchaseRequisitionUnit,
  UnitOfMeasureDspNmbrOfDcmls,
  UnitOfMeasureNumberOfDecimals,
  UnitOfMeasureCommercialName,
  cast('' as mseh3) AS OrderUoMCommercialName,
  cast(0 as umbsz) AS OrderItemQtyToBaseQtyNmrtr,
  cast(0 as umbsn) AS OrderItemQtyToBaseQtyDnmntr,
  cast(0 as decan) AS OrderQuantityUnitDcmls,
  cast(0 as andec) AS OrderQuantityUnitDisplayDcmls,
  MaterialOrderUnit,
  PurchaseRequisitionIsFixed,
  MRPElementCategory,
  LastChangeDateTime,
  cast ( case when SupplyingPlant is initial then 'X' else '' end as boolean preserving type ) AS UICT_SupplyingPlant,
  cast ( case when SupplyingPlant is not initial or Supplier is initial then 'X' else '' end as boolean preserving type ) AS UICT_Supplier,
  cast ( case when SupplyingPlant is not initial then 'X' else '' end as boolean preserving type ) AS UICT_SupplierViewTab,
  cast ( case when SupplyingPlant is not initial then 'X' else '' end as boolean preserving type ) AS UICT_PurchReqViewTab,
  cast ( '' as boolean preserving type ) AS UICT_SupplierNameNotSpec,
  cast ( '' as boolean preserving type ) AS UICT_SupplierPhoneNumber,
  cast ( '' as boolean preserving type ) AS UICT_ContactPersonName,
  cast ( '' as boolean preserving type ) AS UICT_ContactPersonPhone,
  cast ( '' as boolean preserving type ) AS UICT_ContactPersonEmail,
  cast ( '' as boolean preserving type ) AS UICT_MRPControllerName,
  cast ( case when PurchasingGroup is initial then 'X' else '' end as boolean preserving type ) AS UICT_PurchasingGroup,
  cast ( '' as boolean preserving type ) AS UICT_PurchasingGroupPhone,
  cast ( '' as boolean preserving type ) AS UICT_PurchasingGroupEmail,
  cast ( case when ExternalApprovalStatus is initial then 'X' else '' end as boolean preserving type ) AS UICT_ExternalApprovalStatus,
  cast ( case when PurchaseRequisitionReleaseDate is initial then 'X' else '' end as boolean preserving type ) AS UICT_PurchaseReqReleaseDate,
  cast ( case when DeliveryDate is initial then 'X' else '' end as boolean preserving type ) AS UICT_PurchaseReqDeliveryDate,
  cast ( case when MaterialGoodsReceiptDuration is initial then 'X' else '' end as boolean preserving type ) AS UICT_MatGoodsRcptDuration,
  cast ( case when TotalQuantity is initial then 'X' else '' end as boolean preserving type ) AS UICT_TotalQuantity,
  cast ( case when OrderedQuantity is initial then 'X' else '' end as boolean preserving type ) AS UICT_OrderedQuantity,
  cast ( case when OpenQuantity = TotalQuantity then 'X' else '' end as boolean preserving type ) AS UICT_MRPQuantity,
  cast ( case when MaterialPlannedDeliveryDurn is initial then 'X' else '' end as boolean preserving type ) AS UICT_MatPlndDeliveryDurn,
  cast ( '' as boolean preserving type ) AS UICT_WBSElement,
  cast ( '' as boolean preserving type ) AS UICT_ProjectResponsiblePerson,
  cast ( '' as boolean preserving type ) AS UICT_Project,
  cast ( '' as boolean preserving type ) AS UICT_SalesOrder,
  cast ( '' as boolean preserving type ) AS UICT_RelatedObjectsSection
FROM I_MRPPurchaseRequisition
LEFT OUTER JOIN I_Plant AS _SupplyingPlant ON SupplyingPlant = _SupplyingPlant.Plant  -- association [1..1]
LEFT OUTER JOIN I_Customer AS _SoldToParty ON Customer = _SoldToParty.Customer  -- association [0..1]
;