C_PPS_DrctPurOrdAcctAssgmtTP_2

DDL: C_PPS_DRCTPURORDACCTASSGMTTP_2 Type: view_entity CONSUMPTION

Purchase Order Account

C_PPS_DrctPurOrdAcctAssgmtTP_2 is a Consumption CDS View that provides data about "Purchase Order Account" in SAP S/4HANA. It reads from 1 data source (R_PPS_PurOrdAcctAssignmentTP) and exposes 114 fields with key fields PurchaseOrder, PurchaseOrderItem, AccountAssignmentNumber. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
R_PPS_PurOrdAcctAssignmentTP R_PPS_PurOrdAcctAssignmentTP projection

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_MM_SalesOrderItemVH _SalesOrderItemValueHelp $projection.SalesOrderItem = _SalesOrderItemValueHelp.SalesOrderItem and $projection.SalesOrder = _SalesOrderItemValueHelp.SalesOrder
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode

Annotations (9)

NameValueLevelField
VDM.viewType #CONSUMPTION view
EndUserText.label Purchase Order Account view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
Metadata.allowExtensions true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
Metadata.ignorePropagatedAnnotations true view

Fields (114)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder PurchaseOrder Purchasing Document
KEY PurchaseOrderItem PurchaseOrderItem Purchasing Document Item
KEY AccountAssignmentNumber AccountAssignmentNumber Account Assgmt No.
PurchasingDocument PurchasingDocument Purchasing Document
PurchasingDocumentItem PurchasingDocumentItem Purchasing Doc. Item
AccountAssignmentForEdit AccountAssignmentForEdit Account Assgmt No.
CostCenter CostCenter Cost Center
AcctAssignmentCategoryName _AccountAssignmentCatText AcctAssignmentCategoryName Description
MasterFixedAsset MasterFixedAsset Fixed Asset
ProjectNetwork ProjectNetwork Order
ProjectNetworkDescription
NetworkActivity Operation/Activity
NetworkActivityDescription _NetworkActivityDescription OperationText Description
PurchaseOrderQuantityUnit _PurchaseOrderItem PurchaseOrderQuantityUnit Order Unit
OrderQuantityUnit OrderQuantityUnit Sales Unit
Quantity Quantity Value
DocumentCurrency DocumentCurrency Document Currency
PurgDocNetAmount PurgDocNetAmount Net Value
PPSMultiAcctAssgmtDistrPct PPSMultiAcctAssgmtDistrPct
IsDeleted IsDeleted TRUE
GLAccountName
GLAccount GLAccount General Ledger
BusinessAreaName
BusinessArea BusinessArea Business Area
SalesOrder SalesOrder SD Document
SalesOrderItem SalesOrderItem Sales Order Item
SalesOrderScheduleLine SalesOrderScheduleLine SOrder schedule
FixedAssetDescription _FixedAsset FixedAssetDescription Description
FixedAsset FixedAsset Sub-number
OrderID OrderID Order ID
OrderDescription
UnloadingPointName UnloadingPointName Unloading Point Name
ControllingAreaName _ControllingArea ControllingAreaName Long Text
ControllingArea ControllingArea Controlling Area
CostObject CostObject Cost Object
ProfitabilitySegment ProfitabilitySegment Profitability Segment
ProfitCenter ProfitCenter Profit Center
ProfitCenterName
WBSElementInternalID WBSElementInternalID WBS Internal ID
WBSElementExternalID WBSElementExternalID WBS Element External ID
ProjectNetworkInternalID ProjectNetworkInternalID Plan No.f.Oper.
FinancialManagementArea FinancialManagementArea FM Area
FundsCenter Funds Center
FundsCenterName
FundsCenterDescription
Fund Fund Sender Fund
FundName
FundDescription
FunctionalArea FunctionalArea Sendr Fctl Area
FunctionalAreaNamelocalized
GoodsRecipientName GoodsRecipientName Recipient Name
IsFinallyInvoiced IsFinallyInvoiced Final Invoice
NetworkActivityInternalID NetworkActivityInternalID Counter
PartnerAccountNumber PartnerAccountNumber Partner
JointVentureRecoveryCode JointVentureRecoveryCode Recovery Ind.
SettlementReferenceDate SettlementReferenceDate Reference date
OrderInternalID OrderInternalID Plan No.f.Oper.
OrderIntBillOfOperationsItem OrderIntBillOfOperationsItem Order Internal Bill of Operations Item
TaxCode TaxCode Tax Code
TaxJurisdiction TaxJurisdiction Tax Jurisdiction
CostCtrActivityType CostCtrActivityType Activity Type
BusinessProcessName
BusinessProcess BusinessProcess Business Process
GrantID GrantID Sender Grant
GrantName
BudgetPeriod BudgetPeriod Budget Period
BudgetPeriodNamelocalized
USFedGovernmentUUID USFedGovernmentUUID US Govt
EarmarkedFundsDocument EarmarkedFundsDocument Earmarked Funds
EarmarkedFundsDocumentItem EarmarkedFundsDocumentItem Document Item
ValidityDate ValidityDate Valid On
ServiceDocumentType Transaction Type
ServiceDocument ServiceDocument Transaction ID
ServiceDocumentItem Service Document
CreationDate CreationDate Time Stamp
IsAcctLineFinal IsAcctLineFinal Final AA
AcctLineFinalReason AcctLineFinalReason Final AA Reason
CompanyCode CompanyCode Receiver Company Code
CompanyCodeName
PPSAccountAssignmentIsUnfunded PPSAccountAssignmentIsUnfunded Acc. Asg is Unfunded
WBSDescription _WBSElement WBSDescription WBS Element Name
PPSBdgtPeriodValdtyEndDateCat PPSBdgtPeriodValdtyEndDateCat
PPSBdgtPerdValdtyEndDteCatName _BdgtPerdValdtyEndDteCat PPSBdgtPerdValdtyEndDteCatName
ValidityEndDate _BudgetPeriodStdVH ValidityEndDate ValidTo
virtualValidityEndDateIsHdnboolean
CostCenterDescription
CostCtrActivityTypeDesc
char60
AccountAssignmentCategory Acct Assgmt Cat
CommitmentItem CommitmentItem Commitment item
CommitmentItemDescription _CommitmentItemText CommitmentItemDescription
PurchaseContractItem _PurchaseOrderItem PurchaseContractItem Item
MultipleAcctAssgmtDistribution
PartialInvoiceDistribution _PurchaseOrderItem PartialInvoiceDistribution Partial invoice
virtualUICT_CostCenterboolean
virtualUICT_OrderIDboolean
virtualUICT_NetworkActivityboolean
virtualUICT_WBSElementInternalIDboolean
virtualUICT_ProjectNetworkboolean
virtualUICT_MasterFixedAssetboolean
virtualUICT_FixedAssetboolean
virtualUICT_BusinessAreaboolean
virtualUICT_GLAccountboolean
virtualUICT_ControllingAreaboolean
virtualUICT_Fundboolean
virtualUICT_FundsCenterboolean
virtualUICT_CommitmentItemboolean
virtualUICT_EarmarkedFundsItemboolean
virtualUICT_FunctionalAreaboolean
virtualUICT_GrantIDboolean
virtualUICT_BudgetPeriodboolean
virtualUICT_Quantityboolean
virtualUICT_PurgDocNetAmountboolean
virtualPPSPurgDocNetAmountbwert

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_PPS_DrctPurOrdAcctAssgmtTP_2.
-- 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.

CREATE VIEW C_PPS_DrctPurOrdAcctAssgmtTP_2 AS
SELECT
  PurchaseOrder,
  PurchaseOrderItem,
  AccountAssignmentNumber,
  PurchasingDocument,
  PurchasingDocumentItem,
  AccountAssignmentForEdit,
  CostCenter,
  _AccountAssignmentCatText.AcctAssignmentCategoryName AS AcctAssignmentCategoryName,
  MasterFixedAsset,
  ProjectNetwork,
  _ProjectNetwork[1:ProjectNetwork = ProjectNetwork].ProjectNetworkDescription AS ProjectNetworkDescription,
  cast ( NetworkActivity as pps_e_network_activity preserving type ) AS NetworkActivity,
  _NetworkActivityDescription.OperationText AS NetworkActivityDescription,
  _PurchaseOrderItem.PurchaseOrderQuantityUnit AS PurchaseOrderQuantityUnit,
  OrderQuantityUnit,
  Quantity,
  DocumentCurrency,
  PurgDocNetAmount,
  PPSMultiAcctAssgmtDistrPct,
  IsDeleted,
  _GLAccountText[1: Language = $session.system_language].GLAccountName AS GLAccountName,
  GLAccount,
  _BusinessAreaText[1: Language = $session.system_language].BusinessAreaName AS BusinessAreaName,
  BusinessArea,
  SalesOrder,
  SalesOrderItem,
  SalesOrderScheduleLine,
  _FixedAsset.FixedAssetDescription AS FixedAssetDescription,
  FixedAsset,
  OrderID,
  _OrderId[1:OrderID = OrderID].OrderDescription AS OrderDescription,
  UnloadingPointName,
  _ControllingArea.ControllingAreaName AS ControllingAreaName,
  ControllingArea,
  CostObject,
  ProfitabilitySegment,
  ProfitCenter,
  _ProfitCenterText[1: Language = $session.system_language ].ProfitCenterName AS ProfitCenterName,
  WBSElementInternalID,
  WBSElementExternalID,
  ProjectNetworkInternalID,
  FinancialManagementArea,
  cast ( FundsCenter as pps_e_funds_center preserving type ) AS FundsCenter,
  _FundsCenter[1:FinancialManagementArea = FinancialManagementArea]._Text[1: FinancialManagementArea = FinancialManagementArea and Language = $session.system_language].FundsCenterName AS FundsCenterName,
  _FundsCenter[1:FinancialManagementArea = FinancialManagementArea]._Text[1: FinancialManagementArea = FinancialManagementArea and Language = $session.system_language].FundsCenterDescription AS FundsCenterDescription,
  Fund,
  _Fund[1:FinancialManagementArea = FinancialManagementArea]._Text[1: Language = $session.system_language].FundName AS FundName,
  _Fund[1:FinancialManagementArea = FinancialManagementArea]._Text[1: Language = $session.system_language].FundDescription AS FundDescription,
  FunctionalArea,
  _FunctionalAreaText.FunctionalAreaName : localized AS FunctionalAreaNamelocalized,
  GoodsRecipientName,
  IsFinallyInvoiced,
  NetworkActivityInternalID,
  PartnerAccountNumber,
  JointVentureRecoveryCode,
  SettlementReferenceDate,
  OrderInternalID,
  OrderIntBillOfOperationsItem,
  TaxCode,
  TaxJurisdiction,
  CostCtrActivityType,
  _BusinessProcessText[1: Language = $session.system_language ].BusinessProcessName AS BusinessProcessName,
  BusinessProcess,
  GrantID,
  _GrantId._Text[1:Language = $session.system_language].GrantName AS GrantName,
  BudgetPeriod,
  _BudgetPeriodStdVH._Text.BudgetPeriodName : localized AS BudgetPeriodNamelocalized,
  USFedGovernmentUUID,
  EarmarkedFundsDocument,
  EarmarkedFundsDocumentItem,
  ValidityDate,
  cast( ServiceDocumentType as pps_e_service_doc_type preserving type ) AS ServiceDocumentType,
  ServiceDocument,
  cast( ServiceDocumentItem as pps_e_service_document_item preserving type ) AS ServiceDocumentItem,
  CreationDate,
  IsAcctLineFinal,
  AcctLineFinalReason,
  CompanyCode,
  _PurchaseOrderItem._CompanyCode.CompanyCodeName AS CompanyCodeName,
  PPSAccountAssignmentIsUnfunded,
  _WBSElement.WBSDescription AS WBSDescription,
  PPSBdgtPeriodValdtyEndDateCat,
  _BdgtPerdValdtyEndDteCat.PPSBdgtPerdValdtyEndDteCatName AS PPSBdgtPerdValdtyEndDteCatName,
  _BudgetPeriodStdVH.ValidityEndDate AS ValidityEndDate,
  virtual ValidityEndDateIsHdn : boolean AS virtualValidityEndDateIsHdnboolean,
  cast( _CostCenterText[1: Language = $session.system_language ].CostCenterDescription as pps_e_cost_center_desc preserving type ) AS CostCenterDescription,
  _CostCenterActivityTypeText[1: Language = $session.system_language].CostCtrActivityTypeDesc AS CostCtrActivityTypeDesc,
  virtual LeadingObjectDescription : abap.char( 60 ) AS char60,
  cast( AccountAssignmentCategory as pps_e_accnt_assignment_cat preserving type ) AS AccountAssignmentCategory,
  CommitmentItem,
  _CommitmentItemText.CommitmentItemDescription AS CommitmentItemDescription,
  _PurchaseOrderItem.PurchaseContractItem AS PurchaseContractItem,
  cast( _PurchaseOrderItem.MultipleAcctAssgmtDistribution as pps_e_multi_account_assignment preserving type ) AS MultipleAcctAssgmtDistribution,
  _PurchaseOrderItem.PartialInvoiceDistribution AS PartialInvoiceDistribution,
  virtual UICT_CostCenter : boolean AS virtualUICT_CostCenterboolean,
  virtual UICT_OrderID : boolean AS virtualUICT_OrderIDboolean,
  virtual UICT_NetworkActivity : boolean AS virtualUICT_NetworkActivityboolean,
  virtual UICT_WBSElementInternalID : boolean AS virtualUICT_WBSElementInternalIDboolean,
  virtual UICT_ProjectNetwork : boolean AS virtualUICT_ProjectNetworkboolean,
  virtual UICT_MasterFixedAsset : boolean AS virtualUICT_MasterFixedAssetboolean,
  virtual UICT_FixedAsset : boolean AS virtualUICT_FixedAssetboolean,
  virtual UICT_BusinessArea : boolean AS virtualUICT_BusinessAreaboolean,
  virtual UICT_GLAccount : boolean AS virtualUICT_GLAccountboolean,
  virtual UICT_ControllingArea : boolean AS virtualUICT_ControllingAreaboolean,
  virtual UICT_Fund : boolean AS virtualUICT_Fundboolean,
  virtual UICT_FundsCenter : boolean AS virtualUICT_FundsCenterboolean,
  virtual UICT_CommitmentItem : boolean AS virtualUICT_CommitmentItemboolean,
  virtual UICT_EarmarkedFundsItem : boolean AS virtualUICT_EarmarkedFundsItemboolean,
  virtual UICT_FunctionalArea : boolean AS virtualUICT_FunctionalAreaboolean,
  virtual UICT_GrantID : boolean AS virtualUICT_GrantIDboolean,
  virtual UICT_BudgetPeriod : boolean AS virtualUICT_BudgetPeriodboolean,
  virtual UICT_Quantity : boolean AS virtualUICT_Quantityboolean,
  virtual UICT_PurgDocNetAmount : boolean AS virtualUICT_PurgDocNetAmountboolean,
  virtual PPSPurgDocNetAmount : bwert AS virtualPPSPurgDocNetAmountbwert
FROM R_PPS_PurOrdAcctAssignmentTP
LEFT OUTER JOIN I_MM_SalesOrderItemVH AS _SalesOrderItemValueHelp ON SalesOrderItem = _SalesOrderItemValueHelp.SalesOrderItem AND SalesOrder = _SalesOrderItemValueHelp.SalesOrder  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
;