C_PPS_PurOrdAcctAssignmentTP
Purchase Order Account Assignment
C_PPS_PurOrdAcctAssignmentTP is a Consumption CDS View that provides data about "Purchase Order Account Assignment" in SAP S/4HANA. It reads from 1 data source (R_PPS_PurOrdAcctAssignmentTP) and exposes 129 fields with key fields PurchaseOrder, PurchaseOrderItem, AccountAssignmentNumber. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| R_PPS_PurOrdAcctAssignmentTP | R_PPS_PurOrdAcctAssignmentTP | projection |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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 (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.extensibility.extensible | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| EndUserText.label | Purchase Order Account Assignment | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (129)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 | ||
| AcctAssignmentCategoryNamelocalized | ||||
| MasterFixedAsset | MasterFixedAsset | Fixed Asset | ||
| ProjectNetwork | ProjectNetwork | Order | ||
| NetworkActivity | Operation/Activity | |||
| 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 | ||
| GLAccount | GLAccount | General Ledger | ||
| BusinessArea | BusinessArea | Business Area | ||
| SalesOrder | SalesOrder | SD Document | ||
| SalesOrderItem | SalesOrderItem | Sales Order Item | ||
| SalesOrderScheduleLine | SalesOrderScheduleLine | SOrder schedule | ||
| FixedAsset | FixedAsset | Sub-number | ||
| OrderID | OrderID | Order ID | ||
| UnloadingPointName | UnloadingPointName | Unloading Point Name | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| CostObject | CostObject | Cost Object | ||
| ProfitabilitySegment | ProfitabilitySegment | Profitability Segment | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| WBSElementInternalID | WBSElementInternalID | WBS Internal ID | ||
| WBSElementExternalID | WBSElementExternalID | WBS Element External ID | ||
| ProjectNetworkInternalID | ProjectNetworkInternalID | Plan No.f.Oper. | ||
| ChartOfAccounts | ||||
| FinancialManagementArea | FinancialManagementArea | FM Area | ||
| FundsCenter | Funds Center | |||
| FundsCenterName | ||||
| FundsCenterDescription | ||||
| Fund | Fund | Sender Fund | ||
| FundName | ||||
| FundDescription | ||||
| FunctionalArea | FunctionalArea | Sendr Fctl Area | ||
| 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 | ||
| BusinessProcess | BusinessProcess | Business Process | ||
| GrantID | GrantID | Sender Grant | ||
| BudgetPeriod | BudgetPeriod | Budget Period | ||
| USFedGovernmentUUID | USFedGovernmentUUID | US Govt | ||
| EarmarkedFundsDocument | EarmarkedFundsDocument | Earmarked Funds | ||
| EarmarkedFundsDocumentItem | EarmarkedFundsDocumentItem | Document Item | ||
| ValidityDate | ValidityDate | Valid On | ||
| ServiceDocumentType | ServiceDocumentType | Transaction Type | ||
| ServiceDocument | ServiceDocument | Transaction ID | ||
| ServiceDocumentItem | ServiceDocumentItem | Service Document | ||
| CreationDate | CreationDate | Time Stamp | ||
| IsAcctLineFinal | IsAcctLineFinal | Final AA | ||
| AcctLineFinalReason | AcctLineFinalReason | Final AA Reason | ||
| CompanyCode | _PurchaseOrderItem | CompanyCode | Receiver Company Code | |
| PPSAccountAssignmentIsUnfunded | PPSAccountAssignmentIsUnfunded | Acc. Asg is Unfunded | ||
| WBSDescription | _WBSElement | WBSDescription | WBS Element Name | |
| CostCenterDescription | ||||
| CostCtrActivityTypeDesc | ||||
| char60 | Leading object description | |||
| AccountAssignmentCategory | _PurchaseOrderItem | AccountAssignmentCategory | Acct Assgmt Cat | |
| CommitmentItem | CommitmentItem | Commitment item | ||
| PurchaseContractItem | _PurchaseOrderItem | PurchaseContractItem | Item | |
| MultipleAcctAssgmtDistribution | _PurchaseOrderItem | MultipleAcctAssgmtDistribution | Distribution | |
| 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 | ||||
| dec41 | Multiple account assignment | |||
| virtualUICT_SalesOrderboolean | ||||
| NetAmount | _PurchaseOrderItem | NetAmount | Stated Amount | |
| PPSAcctAsgtRefNmbr | PPSAcctAsgtRefNmbr | |||
| PPSAcctAsgtSublineItmNmbr | PPSAcctAsgtSublineItmNmbr | |||
| FundsCenterFinMgmtArea | ||||
| PurchaseContract | _PurchaseOrderItem | PurchaseContract | Purchasing Doc. | |
| _BusinessArea | _BusinessArea | |||
| _BusinessAreaText | _BusinessAreaText | |||
| _BusinessProcess | _BusinessProcess | |||
| _BusinessProcessText | _BusinessProcessText | |||
| _ControllingArea | _ControllingArea | |||
| _CostCenter | _CostCenter | |||
| _CostCenterActivityType | _CostCenterActivityType | |||
| _CostCenterActivityTypeText | _CostCenterActivityTypeText | |||
| _CostCenterText | _CostCenterText | |||
| _FunctionalArea | _FunctionalArea | |||
| _FunctionalAreaText | _FunctionalAreaText | |||
| _GLAccount | _GLAccount | |||
| _ProfitCenter | _ProfitCenter | |||
| _ProfitCenterText | _ProfitCenterText | |||
| _SalesDocumentScheduleLine | _SalesDocumentScheduleLine | |||
| _SalesOrder | _SalesOrder | |||
| _SalesOrderItem | _SalesOrderItem | |||
| _TaxCode | _TaxCode | |||
| _TaxCodeText | _TaxCodeText | |||
| _TaxJurisdiction | _TaxJurisdiction | |||
| _TaxJurisdictionText | _TaxJurisdictionText | |||
| _WBSElement | _WBSElement | |||
| _WBSElementByInternalKey | _WBSElementByInternalKey | |||
| _SalesOrderItemValueHelp | _SalesOrderItemValueHelp | |||
| _Fund | _Fund | |||
| _FundsCenter | _FundsCenter |
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_PurOrdAcctAssignmentTP.
-- 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_PurOrdAcctAssignmentTP AS
SELECT
PurchaseOrder,
PurchaseOrderItem,
AccountAssignmentNumber,
PurchasingDocument,
PurchasingDocumentItem,
AccountAssignmentForEdit,
CostCenter,
_PurchaseOrderItem._AccountAssignmentCatText.AcctAssignmentCategoryName : localized AS AcctAssignmentCategoryNamelocalized,
MasterFixedAsset,
ProjectNetwork,
cast(NetworkActivity as pps_e_network_activity preserving type) AS NetworkActivity,
_PurchaseOrderItem.PurchaseOrderQuantityUnit AS PurchaseOrderQuantityUnit,
OrderQuantityUnit,
Quantity,
DocumentCurrency,
PurgDocNetAmount,
PPSMultiAcctAssgmtDistrPct,
IsDeleted,
GLAccount,
BusinessArea,
SalesOrder,
SalesOrderItem,
SalesOrderScheduleLine,
FixedAsset,
OrderID,
UnloadingPointName,
ControllingArea,
CostObject,
ProfitabilitySegment,
ProfitCenter,
WBSElementInternalID,
WBSElementExternalID,
ProjectNetworkInternalID,
_PurchaseOrder._CompanyCode.ChartOfAccounts AS ChartOfAccounts,
FinancialManagementArea,
cast(FundsCenter as pps_e_funds_center preserving type) AS FundsCenter,
_FundsCenter._Text[1: 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._Text[1: Language = $session.system_language].FundName AS FundName,
_Fund[1: FinancialManagementArea = FinancialManagementArea]._Text[1: Language = $session.system_language].FundDescription AS FundDescription,
FunctionalArea,
GoodsRecipientName,
IsFinallyInvoiced,
NetworkActivityInternalID,
PartnerAccountNumber,
JointVentureRecoveryCode,
SettlementReferenceDate,
OrderInternalID,
OrderIntBillOfOperationsItem,
TaxCode,
TaxJurisdiction,
CostCtrActivityType,
BusinessProcess,
GrantID,
BudgetPeriod,
USFedGovernmentUUID,
EarmarkedFundsDocument,
EarmarkedFundsDocumentItem,
ValidityDate,
ServiceDocumentType,
ServiceDocument,
ServiceDocumentItem,
CreationDate,
IsAcctLineFinal,
AcctLineFinalReason,
_PurchaseOrderItem.CompanyCode AS CompanyCode,
PPSAccountAssignmentIsUnfunded,
_WBSElement.WBSDescription AS WBSDescription,
_CostCenterText[1: Language = $session.system_language].CostCenterDescription AS CostCenterDescription,
_CostCenterActivityTypeText[1: Language = $session.system_language].CostCtrActivityTypeDesc AS CostCtrActivityTypeDesc,
virtual LeadingObjectDescription : abap.char(60) AS char60,
_PurchaseOrderItem.AccountAssignmentCategory AS AccountAssignmentCategory,
CommitmentItem,
_PurchaseOrderItem.PurchaseContractItem AS PurchaseContractItem,
_PurchaseOrderItem.MultipleAcctAssgmtDistribution AS MultipleAcctAssgmtDistribution,
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,
virtual PPSDspMultiAccAssDistrPct : abap.dec(4,1) AS dec41,
virtual UICT_SalesOrder : boolean AS virtualUICT_SalesOrderboolean,
_PurchaseOrderItem.NetAmount AS NetAmount,
PPSAcctAsgtRefNmbr,
PPSAcctAsgtSublineItmNmbr,
cast(_PurchaseOrderItem._CompanyCode.FinancialManagementArea as fikrs preserving type) AS FundsCenterFinMgmtArea,
_PurchaseOrderItem.PurchaseContract AS PurchaseContract
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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA