I_MstrProjPurchaseRequisition

DDL: I_MSTRPROJPURCHASEREQUISITION SQL: IMSTRPROJPR Type: view COMPOSITE

Purchase Requisition for Commercial Proj

I_MstrProjPurchaseRequisition is a Composite CDS View that provides data about "Purchase Requisition for Commercial Proj" in SAP S/4HANA. It reads from 6 data sources and exposes 55 fields with key fields PurchaseRequisition, PurchaseRequisitionItem, PurchaseRequisitionItem, PurchaseRequisitionItem. It has 1 association to related views.

Data Sources (6)

SourceAliasJoin Type
I_MPNetwork Network inner
I_MPNetworkActivity NetworkActivity inner
I_PurReqnAcctAssgmt PurchaseRequisition from
I_PurReqnAcctAssgmt PurchaseRequisition union
I_PurReqnAcctAssgmt PurchaseRequisition union
I_MPWBSElement WBSElement inner

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_MasterProject _MasterProject $projection.MasterProject = _MasterProject.MasterProject

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IMSTRPROJPR view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
EndUserText.label Purchase Requisition for Commercial Proj view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view

Fields (55)

KeyFieldSource TableSource FieldDescription
KEY PurchaseRequisition I_PurReqnAcctAssgmt PurchaseRequisition Requisition
KEY PurchaseRequisitionItem I_PurReqnAcctAssgmt PurchaseRequisitionItem Requisn. item
MasterProject I_MPWBSElement MasterProject Project ID
MasterProjectName I_MPWBSElement MasterProjectName
MasterProjectItem I_MPWBSElement MasterProjectItem
ControllingObjectExternalID
WBSElement I_MPWBSElement WBSElement WBS Internal ID
WBSElementShortID I_MPWBSElement WBSElementShortID
WBSDescription I_MPWBSElement WBSDescription WBS Element Name
ControllingObjectDescription I_MPWBSElement WBSDescription
WBSElementInternalID I_MPWBSElement WBSElementInternalID WBS Internal ID
ProjectNetwork Order
ProjectNetworkDescription Network Name
ProjectNetworkInternalID Plan No.f.Oper.
NetworkActivity Operation/Activity
NetworkActivityDescription
NetworkActivityInternalID Counter
NetworkActivityObject
PurchaseRequisition Requisition
KEY PurchaseRequisitionItem I_PurReqnAcctAssgmt PurchaseRequisitionItem Requisn. item
MasterProject I_MPNetwork MasterProject Project ID
MasterProjectName I_MPNetwork MasterProjectName
MasterProjectItem I_MPNetwork MasterProjectItem
ControllingObjectExternalID I_MPNetwork ProjectNetwork
WBSElement WBS Internal ID
WBSElementShortID
WBSDescription WBS Element Name
ControllingObjectDescription I_MPNetwork ProjectNetworkDescription
WBSElementInternalID WBS Internal ID
ProjectNetwork I_MPNetwork ProjectNetwork Order
ProjectNetworkDescription I_MPNetwork ProjectNetworkDescription Network Name
ProjectNetworkInternalID I_MPNetwork ProjectNetworkInternalID Plan No.f.Oper.
NetworkActivity Operation/Activity
NetworkActivityDescription
NetworkActivityInternalID Counter
NetworkActivityObject
PurchaseRequisition Requisition
KEY PurchaseRequisitionItem I_PurReqnAcctAssgmt PurchaseRequisitionItem Requisn. item
MasterProject I_MPNetworkActivity MasterProject Project ID
MasterProjectName I_MPNetworkActivity MasterProjectName
MasterProjectItem I_MPNetworkActivity MasterProjectItem
ControllingObjectExternalID I_MPNetworkActivity NetworkActivityObject
WBSElement WBS Internal ID
WBSElementShortID
WBSDescription WBS Element Name
ControllingObjectDescription I_MPNetworkActivity NetworkActivityDescription
WBSElementInternalID WBS Internal ID
ProjectNetwork I_MPNetworkActivity ProjectNetwork Order
ProjectNetworkDescription Network Name
ProjectNetworkInternalID I_MPNetworkActivity ProjectNetworkInternalID Plan No.f.Oper.
NetworkActivity I_MPNetworkActivity NetworkActivity Operation/Activity
NetworkActivityDescription I_MPNetworkActivity NetworkActivityDescription
NetworkActivityInternalID I_MPNetworkActivity NetworkActivityInternalID Counter
NetworkActivityObject I_MPNetworkActivity NetworkActivityObject
_MasterProject _MasterProject

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_MstrProjPurchaseRequisition.
-- 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: IMSTRPROJPR

CREATE VIEW I_MstrProjPurchaseRequisition AS
SELECT
  PurchaseRequisition.PurchaseRequisition AS PurchaseRequisition,
  PurchaseRequisition.PurchaseRequisitionItem AS PurchaseRequisitionItem,
  WBSElement.MasterProject AS MasterProject,
  WBSElement.MasterProjectName AS MasterProjectName,
  WBSElement.MasterProjectItem AS MasterProjectItem,
  cast (WBSElement.WBSElementShortID as abap.char( 22 )) AS ControllingObjectExternalID,
  WBSElement.WBSElement AS WBSElement,
  WBSElement.WBSElementShortID AS WBSElementShortID,
  WBSElement.WBSDescription AS WBSDescription,
  WBSElement.WBSDescription AS ControllingObjectDescription,
  WBSElement.WBSElementInternalID AS WBSElementInternalID,
  cast('' as ps_s4_aufnr) AS ProjectNetwork,
  cast('' as ps_s4_auftext) AS ProjectNetworkDescription,
  cast('' as abap.numc( 10 )) AS ProjectNetworkInternalID,
  cast('' as pt_vornr_receiver) AS NetworkActivity,
  cast('' as ps_s4_ltxa1) AS NetworkActivityDescription,
  cast('' as abap.numc( 8 )) AS NetworkActivityInternalID,
  cast('' as j_objnr) AS NetworkActivityObject
FROM I_PurReqnAcctAssgmt AS PurchaseRequisition
INNER JOIN I_MPWBSElement AS WBSElement ON /* join condition not captured in parsed metadata */
INNER JOIN I_MPNetwork AS Network ON /* join condition not captured in parsed metadata */
INNER JOIN I_MPNetworkActivity AS NetworkActivity ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_MasterProject AS _MasterProject ON MasterProject = _MasterProject.MasterProject  -- association [1..1]
-- UNION with additional select branch(es): I_PurReqnAcctAssgmt
;