Mmim_Purchase_Order_Items

DDL: MMIM_PURCHASE_ORDER_ITEMS SQL: MMIMPURORDITEMS Type: view Package: MBND_CLOUD_BL

Help-View for Items of Purchaset Order

Mmim_Purchase_Order_Items is a CDS View that provides data about "Help-View for Items of Purchaset Order" in SAP S/4HANA. It has 6 associations to related views. Part of development package MBND_CLOUD_BL.

Associations (6)

CardinalityTargetAliasCondition
[1..1] I_ProductPlant _ProductPlant $projection.Material = _ProductPlant.Product and $projection.Plant = _ProductPlant.Plant
[1..*] I_PurchaseOrderHistory _PurchaseOrderHistory $projection.PurchaseOrder = _PurchaseOrderHistory.PurchaseOrder and $projection.PurchaseOrderItem = _PurchaseOrderHistory.PurchaseOrderItem
[0..*] I_PurchasingDocumentTypeText _PurchasingDocumentTypeText $projection.PurchaseOrderType = _PurchasingDocumentTypeText.PurchasingDocumentType and $projection.PurchasingDocumentCategory = _PurchasingDocumentTypeText.PurchasingDocumentCategory
[0..*] I_PurgDocumentCategoryText _PurgDocumentCategoryText $projection.PurchasingDocumentCategory = _PurgDocumentCategoryText.PurchasingDocumentCategory
[1..1] I_Plant _Plant $projection.supplyingplant = _Plant.Plant
[1..1] Mmim_Supplier_Data _Supplier_Data $projection.supplier = _Supplier_Data.Supplier

Annotations (9)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName MMIMPURORDITEMS view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MIXED view
EndUserText.label Help-View for Items of Purchaset Order view

Fields (23)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder PurchasingDocument Purchasing Document
PurchaseOrderItem PurchasingDocumentItem Purchasing Doc. Item
PurchaseOrderType _PurchasingDocument PurchasingDocumentType RFQ Type
PurchasingDocumentCategory _PurchasingDocument PurchasingDocumentCategory Doc. Category
PurchasingDocumentSubtype _PurchasingDocument PurchasingDocumentSubtype Control
PurOrdPurchasingOrganization _PurchasingDocument PurchasingOrganization Purchasing Organization
PurOrdPurchasingGroup _PurchasingDocument PurchasingGroup Purchasing Group
PurchasingProcessingStatus _PurchasingDocument PurchasingProcessingStatus Proc. State
PurchaseOrderHistCategory _PurchaseOrderHistory PurchaseOrderHistCategory
SupplyingPlant _PurchasingDocument SupplyingPlant Supplying Plant
Supplier _PurchasingDocument Supplier Supplier
AccountAssignmentCategory AccountAssignmentCategory Acct Assgmt Cat
Material Material Vehicle Model
PurchaseOrderItemText PurchasingDocumentItemText Short Text
Plant Plant Valuation Area
IsCompletelyDelivered IsCompletelyDelivered Is completely delivered
PurchasingDocumentItemCategory PurchasingDocumentItemCategory Item Category
_PurchasingDocumentTypeText _PurchasingDocumentTypeText
_PurgDocumentCategoryText _PurgDocumentCategoryText
_ProductPlant _ProductPlant
_PurchasingDocument _PurchasingDocument
_Supplier_Data _Supplier_Data
_Plant _Plant

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 Mmim_Purchase_Order_Items.
-- 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: MMIMPURORDITEMS

CREATE VIEW Mmim_Purchase_Order_Items AS
SELECT
  PurchasingDocument AS PurchaseOrder,
  PurchasingDocumentItem AS PurchaseOrderItem,
  _PurchasingDocument.PurchasingDocumentType AS PurchaseOrderType,
  _PurchasingDocument.PurchasingDocumentCategory AS PurchasingDocumentCategory,
  _PurchasingDocument.PurchasingDocumentSubtype AS PurchasingDocumentSubtype,
  _PurchasingDocument.PurchasingOrganization AS PurOrdPurchasingOrganization,
  _PurchasingDocument.PurchasingGroup AS PurOrdPurchasingGroup,
  _PurchasingDocument.PurchasingProcessingStatus AS PurchasingProcessingStatus,
  _PurchaseOrderHistory.PurchaseOrderHistCategory AS PurchaseOrderHistCategory,
  _PurchasingDocument.SupplyingPlant AS SupplyingPlant,
  _PurchasingDocument.Supplier AS Supplier,
  AccountAssignmentCategory,
  Material,
  PurchasingDocumentItemText AS PurchaseOrderItemText,
  Plant,
  IsCompletelyDelivered,
  PurchasingDocumentItemCategory
LEFT OUTER JOIN I_ProductPlant AS _ProductPlant ON Material = _ProductPlant.Product AND Plant = _ProductPlant.Plant  -- association [1..1]
LEFT OUTER JOIN I_PurchaseOrderHistory AS _PurchaseOrderHistory ON PurchaseOrder = _PurchaseOrderHistory.PurchaseOrder AND PurchaseOrderItem = _PurchaseOrderHistory.PurchaseOrderItem  -- association [1..*]
LEFT OUTER JOIN I_PurchasingDocumentTypeText AS _PurchasingDocumentTypeText ON PurchaseOrderType = _PurchasingDocumentTypeText.PurchasingDocumentType AND PurchasingDocumentCategory = _PurchasingDocumentTypeText.PurchasingDocumentCategory  -- association [0..*]
LEFT OUTER JOIN I_PurgDocumentCategoryText AS _PurgDocumentCategoryText ON PurchasingDocumentCategory = _PurgDocumentCategoryText.PurchasingDocumentCategory  -- association [0..*]
LEFT OUTER JOIN I_Plant AS _Plant ON supplyingplant = _Plant.Plant  -- association [1..1]
LEFT OUTER JOIN Mmim_Supplier_Data AS _Supplier_Data ON supplier = _Supplier_Data.Supplier  -- association [1..1]
;