C_Purchaseorderitemacctmntr

DDL: C_PURCHASEORDERITEMACCTMNTR SQL: CPOMNTRACCASSIGN Type: view CONSUMPTION

Purchase Order Items by Account Assignment

C_Purchaseorderitemacctmntr is a Consumption CDS View that provides data about "Purchase Order Items by Account Assignment" in SAP S/4HANA. It reads from 1 data source (P_PurchaseOrderItemAcctMntr) and exposes 76 fields with key fields PurchaseOrder, PurchaseOrderItem, AccountAssignmentCategory, AccountAssignmentNumber. It has 12 associations to related views.

Data Sources (1)

SourceAliasJoin Type
P_PurchaseOrderItemAcctMntr PurOrdAccAssign from

Associations (12)

CardinalityTargetAliasCondition
[0..1] I_MM_WBSElementValueHelp _WBSElementVH PurOrdAccAssign.WBSElementInternalID = _WBSElementVH.WBSElementInternalID
[0..1] I_MasterFixedAsset _MasterFixedAsset $projection.companycode = _MasterFixedAsset.CompanyCode and $projection.MasterFixedAsset = _MasterFixedAsset.MasterFixedAsset
[0..1] I_CompanyCode _CompanyCode $projection.companycode = _CompanyCode.CompanyCode
[0..*] I_GLAccountText _GLAccountText $projection.GLAccount = _GLAccountText.GLAccount and $projection.ChartOfAccounts = _GLAccountText.ChartOfAccounts
[0..1] C_OrderMasterVH _OrderVH $projection.OrderID = _OrderVH.OrderID
[0..1] I_MM_ProfitCenterValueHelp _ProfitCenter $projection.ControllingArea = _ProfitCenter.ControllingArea and $projection.ProfitCenter = _ProfitCenter.ProfitCenter and $projection.ValidityDate <= _ProfitCenter.ValidityEndDate
[0..1] I_ProfitCenterText _ProfitCenterText $projection.ControllingArea = _ProfitCenterText.ControllingArea and $projection.ProfitCenter = _ProfitCenterText.ProfitCenter and $projection.ValidityDate <= _ProfitCenterText.ValidityEndDate and $projection.ValidityDate >= _ProfitCenterText.ValidityStartDate
[0..1] I_MM_ProjectNetworkVH _ProjectNetworkVH _ProjectNetworkVH.ProjectNetwork = $projection.ProjectNetwork
[0..*] I_FundText _FundText $projection.Fund = _FundText.Fund and _FundText.Language = $session.system_language
[0..*] I_BudgetPeriodText _BudgetPeriodText $projection.BudgetPeriod = _BudgetPeriodText.BudgetPeriod and _BudgetPeriodText.Language = $session.system_language
[0..*] I_GrantText _GrantText $projection.GrantID = _GrantText.GrantID and _GrantText.Language = $session.system_language
[0..1] I_AccountAssignmentCategory _AccountAssignmentCategory $projection.AccountAssignmentCategory = _AccountAssignmentCategory.AccountAssignmentCategory

Annotations (17)

NameValueLevelField
AbapCatalog.sqlViewName CPOMNTRACCASSIGN view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
Search.searchable true view
EndUserText.label Purchase Order Items by Account Assignment view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
UI.headerInfo.typeName Purchase Order Item view
UI.headerInfo.typeNamePlural Purchase Order Items view
UI.headerInfo.title.value FormattedPurchaseOrderItem view
UI.headerInfo.description.value PurgDocItemCategoryName view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
Metadata.ignorePropagatedAnnotations true view
VDM.lifecycle.contract.type #NONE view

Fields (76)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder PurchaseOrder Purchase Order
KEY PurchaseOrderItem PurchaseOrderItem Item
KEY AccountAssignmentCategory AccountAssignmentCategory Account Assignment Category
KEY AccountAssignmentNumber AccountAssignmentNumber Sequence Number
AcctAssignmentCategoryName Account Assignment Category Description
FormattedPurchaseOrderItem FormattedPurchaseOrderItem Purchase Order Item
CompanyCode CompanyCode Receiver Company Code
CompanyCodeName CompanyCodeName Company Code Name
MultipleAcctAssgmtDistrPercent MultipleAcctAssgmtDistrPercent Distribution (%)
Quantity Quantity Account Assignment Quantity
PerformancePeriodStartDate PerformancePeriodStartDate Start of Performance Period
PerformancePeriodEndDate PerformancePeriodEndDate End of Performance Period
PurchaseOrderQuantityUnit PurchaseOrderQuantityUnit Unit of Measure
OrderQuantity OrderQuantity Order Quantity
DocumentCurrency DocumentCurrency Document Currency
PurgDocNetAmount PurgDocNetAmount Distributed Net Value
NetPriceAmount NetPriceAmount Net Price
DisplayCurrency DisplayCurrency Display Currency
PurchaseOrderItemNetAmount PurchaseOrderItemNetAmount Purchase Order Item Net Amount
Plant Plant Valuation Area
PlantName PlantName Plant Name
CostCenter CostCenter Cost Center
CostCenterName Cost Center Name
WBSElement _WBSElementVH WBSElement WBS Element
WBSDescription _WBSElementVH WBSDescription WBS Element Name
GLAccount GLAccount General Ledger
GLAccountName G/L Account Name
ChartOfAccounts ChartOfAccounts Node Class
SupplyingPlant SupplyingPlant Supplying Plant
SupplyingPlantName SupplyingPlantName Supply Plant Description
ScheduleLineDeliveryDate ScheduleLineDeliveryDate Next Delivery Date
PurchasingCategory PurchasingCategory Purchasing Category
PurgCatName PurgCatName Purchasing Category Name
PurgCatUUID PurgCatUUID
WBSElementInternalID WBSElementInternalID WBS Internal ID
MasterFixedAsset MasterFixedAsset Fixed Asset
MasterFixedAssetDescription MasterFixedAssetDescription Asset Description
Supplier Supplier Supplier
SupplierName SupplierName Supplier Name
SupplierSubrange SupplierSubrange Suppl. Subrange
PurchasingDocumentType PurchasingDocumentType Purchasing Document Type
PurchasingDocumentTypeName Purchasing Document Type Description
PurchasingOrganization PurchasingOrganization Purchasing Organization
PurchasingOrganizationName PurchasingOrganizationName Purchasing Organization Name
PurchasingGroup PurchasingGroup Purchasing Group
PurchasingGroupName PurchasingGroupName Purchasing Group Name
ProjectNetwork ProjectNetwork Order
ProjectNetworkDescription _ProjectNetworkVH ProjectNetworkDescription Network Name
SalesOrder SalesOrder SD Document
SalesOrderScheduleLine SalesOrderScheduleLine Schedule Line Number
PurchaseOrderItemCategory PurchaseOrderItemCategory Item Category
PurgDocExternalItemCategory
PurgDocItemCategoryName Item Category Text
Material Material Vehicle Model
MaterialNameendasMaterialName Material Description
MaterialGroup MaterialGroup Product Group
MaterialGroupName Material Group Description
PurchasingDocumentOrderDate PurchasingDocumentOrderDate Purchase Order Date
StorageLocation StorageLocation StorageLocation
StorageLocationName StorageLocationName Storage Location Name
AcctAsgtDistrdStillToInvcAmt AcctAsgtDistrdStillToInvcAmt Distributed Value Still to be Invoiced
StillToBeDeliveredQuantity StillToBeDeliveredQuantity Quantity Still to be Delivered
StillToBeDeliveredValue StillToBeDeliveredValue Value Still to be Delivered
StillToInvoiceQuantity StillToInvoiceQuantity Quantity Still to be Invoiced
StillToInvoiceValue StillToInvoiceValue Value Still to be Invoiced
PurchasingDocumentStatus PurchasingDocumentStatus Purchasing Document Status
PurchasingDocumentStatusName PurchasingDocumentStatusName Purchasing Document Status Name
PurchasingInfoRecord PurchasingInfoRecord Purchasing Info Record
TaxCode TaxCode Tax Code
ControllingArea ControllingArea Controlling Area
ControllingAreaName ControllingAreaName Long Text
SalesOrderItem SalesOrderItem Sales Order Item
FixedAsset FixedAsset Asset Subnumber
FixedAssetDescription FixedAssetDescription Asset Subnumber Description
BusinessArea BusinessArea Business Area
BusinessAreaName Business Area Description

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_Purchaseorderitemacctmntr.
-- 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: CPOMNTRACCASSIGN

CREATE VIEW C_Purchaseorderitemacctmntr AS
SELECT
  PurchaseOrder,
  PurchaseOrderItem,
  AccountAssignmentCategory,
  AccountAssignmentNumber,
  _AccountAssignmentCategory._Text [1: Language = $session.system_language ].AcctAssignmentCategoryName AS AcctAssignmentCategoryName,
  FormattedPurchaseOrderItem,
  CompanyCode,
  CompanyCodeName,
  MultipleAcctAssgmtDistrPercent,
  Quantity,
  PerformancePeriodStartDate,
  PerformancePeriodEndDate,
  PurchaseOrderQuantityUnit,
  OrderQuantity,
  DocumentCurrency,
  PurgDocNetAmount,
  NetPriceAmount,
  DisplayCurrency,
  PurchaseOrderItemNetAmount,
  Plant,
  PlantName,
  CostCenter,
  _CostCenter._Text[1: Language = $session.system_language ].CostCenterName AS CostCenterName,
  _WBSElementVH.WBSElement AS WBSElement,
  _WBSElementVH.WBSDescription AS WBSDescription,
  GLAccount,
  _GLAccountText[1: Language = $session.system_language].GLAccountName AS GLAccountName,
  ChartOfAccounts,
  SupplyingPlant,
  SupplyingPlantName,
  ScheduleLineDeliveryDate,
  PurchasingCategory,
  PurgCatName,
  PurgCatUUID,
  WBSElementInternalID,
  MasterFixedAsset,
  MasterFixedAssetDescription,
  Supplier,
  SupplierName,
  SupplierSubrange,
  PurchasingDocumentType,
  _PurchaseOrder._PurchaseOrderType._Text[1:Language = $session.system_language].PurchasingDocumentTypeName AS PurchasingDocumentTypeName,
  PurchasingOrganization,
  PurchasingOrganizationName,
  PurchasingGroup,
  PurchasingGroupName,
  ProjectNetwork,
  _ProjectNetworkVH.ProjectNetworkDescription AS ProjectNetworkDescription,
  SalesOrder,
  SalesOrderScheduleLine,
  PurchaseOrderItemCategory,
  _PurchaseOrderItem._PurgDocumentItemCategory._Text[1: Language = $session.system_language ].PurgDocExternalItemCategory AS PurgDocExternalItemCategory,
  _PurchaseOrderItem._PurgDocumentItemCategory._Text[1: Language = $session.system_language ].PurgDocItemCategoryName AS PurgDocItemCategoryName,
  Material,
  case when _PurchaseOrderItem._Material._Text[1: Language = $session.system_language].MaterialName is null then '' else _PurchaseOrderItem._Material._Text[1: Language = $session.system_language].MaterialName end as MaterialName AS MaterialNameendasMaterialName,
  MaterialGroup,
  _PurchaseOrderItem._MaterialGroup._Text[1: Language = $session.system_language].MaterialGroupName AS MaterialGroupName,
  PurchasingDocumentOrderDate,
  StorageLocation,
  StorageLocationName,
  AcctAsgtDistrdStillToInvcAmt,
  StillToBeDeliveredQuantity,
  StillToBeDeliveredValue,
  StillToInvoiceQuantity,
  StillToInvoiceValue,
  PurchasingDocumentStatus,
  PurchasingDocumentStatusName,
  PurchasingInfoRecord,
  TaxCode,
  ControllingArea,
  ControllingAreaName,
  SalesOrderItem,
  FixedAsset,
  FixedAssetDescription,
  BusinessArea,
  _BusinessAreaText[1: Language = $session.system_language].BusinessAreaName AS BusinessAreaName
FROM P_PurchaseOrderItemAcctMntr AS PurOrdAccAssign
LEFT OUTER JOIN I_MM_WBSElementValueHelp AS _WBSElementVH ON PurOrdAccAssign.WBSElementInternalID = _WBSElementVH.WBSElementInternalID  -- association [0..1]
LEFT OUTER JOIN I_MasterFixedAsset AS _MasterFixedAsset ON companycode = _MasterFixedAsset.CompanyCode AND MasterFixedAsset = _MasterFixedAsset.MasterFixedAsset  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON companycode = _CompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_GLAccountText AS _GLAccountText ON GLAccount = _GLAccountText.GLAccount AND ChartOfAccounts = _GLAccountText.ChartOfAccounts  -- association [0..*]
LEFT OUTER JOIN C_OrderMasterVH AS _OrderVH ON OrderID = _OrderVH.OrderID  -- association [0..1]
LEFT OUTER JOIN I_MM_ProfitCenterValueHelp AS _ProfitCenter ON ControllingArea = _ProfitCenter.ControllingArea AND ProfitCenter = _ProfitCenter.ProfitCenter AND ValidityDate <= _ProfitCenter.ValidityEndDate  -- association [0..1]
LEFT OUTER JOIN I_ProfitCenterText AS _ProfitCenterText ON ControllingArea = _ProfitCenterText.ControllingArea AND ProfitCenter = _ProfitCenterText.ProfitCenter AND ValidityDate <= _ProfitCenterText.ValidityEndDate AND ValidityDate >= _ProfitCenterText.ValidityStartDate  -- association [0..1]
LEFT OUTER JOIN I_MM_ProjectNetworkVH AS _ProjectNetworkVH ON _ProjectNetworkVH.ProjectNetwork = ProjectNetwork  -- association [0..1]
LEFT OUTER JOIN I_FundText AS _FundText ON Fund = _FundText.Fund AND _FundText.Language = $session.system_language  -- association [0..*]
LEFT OUTER JOIN I_BudgetPeriodText AS _BudgetPeriodText ON BudgetPeriod = _BudgetPeriodText.BudgetPeriod AND _BudgetPeriodText.Language = $session.system_language  -- association [0..*]
LEFT OUTER JOIN I_GrantText AS _GrantText ON GrantID = _GrantText.GrantID AND _GrantText.Language = $session.system_language  -- association [0..*]
LEFT OUTER JOIN I_AccountAssignmentCategory AS _AccountAssignmentCategory ON AccountAssignmentCategory = _AccountAssignmentCategory.AccountAssignmentCategory  -- association [0..1]
;