C_POAccountAssignmentFactSheet
Purchase Order Account Assignment
C_POAccountAssignmentFactSheet is a Consumption CDS View that provides data about "Purchase Order Account Assignment" in SAP S/4HANA. It reads from 1 data source (I_PurOrdAccountAssignment) and exposes 49 fields with key fields PurchaseOrder, PurchaseOrderItem, AccountAssignmentNumber. It has 9 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PurOrdAccountAssignment | I_PurOrdAccountAssignment | from |
Associations (9)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | P_Purordmaintaincustproj | _PurOrdCustProj | $projection.WBSElementInternalID = _PurOrdCustProj.WBSElementInternalID |
| [0..1] | I_MasterFixedAsset | _MasterFixedAsset | $projection.CompanyCode = _MasterFixedAsset.CompanyCode and $projection.MasterFixedAsset = _MasterFixedAsset.MasterFixedAsset |
| [0..1] | I_FixedAsset | _FixedAsset | $projection.MasterFixedAsset = _FixedAsset.MasterFixedAsset and $projection.FixedAsset = _FixedAsset.FixedAsset and $projection.CompanyCode = _FixedAsset.CompanyCode |
| [0..1] | I_ProjectNetwork | _ProjectNetwork | $projection.ProjectNetwork = _ProjectNetwork.ProjectNetwork |
| [0..1] | I_NetworkActivityByInternalKey | _NetworkActivityByInternalKey | $projection.ProjectNetworkInternalID = _NetworkActivityByInternalKey.ProjectNetworkInternalID and $projection.NetworkActivityInternalID = _NetworkActivityByInternalKey.NetworkActivityInternalID |
| [0..1] | I_CostCenterText | _CostCenterDesc | $projection.CostCenter = _CostCenterDesc.CostCenter and $projection.ControllingArea = _CostCenterDesc.ControllingArea and $projection.ValidityDate <= _CostCenterDesc.ValidityEndDate and $projection.ValidityDate >= _CostCenterDesc.ValidityStartDate and _CostCenterDesc.Language = $session.system_language |
| [0..1] | I_GLAccountText | _GLAccountDesc | $projection.GLAccount = _GLAccountDesc.GLAccount and $projection.ChartOfAccounts = _GLAccountDesc.ChartOfAccounts and _GLAccountDesc.Language = $session.system_language |
| [0..1] | I_FunctionalAreaText | _FunctionalAreaDesc | $projection.FunctionalArea = _FunctionalAreaDesc.FunctionalArea and _FunctionalAreaDesc.Language = $session.system_language |
| [0..1] | I_ProfitCenterText | _ProfitCenterDesc | $projection.ProfitCenter = _ProfitCenterDesc.ProfitCenter and $projection.ControllingArea = _ProfitCenterDesc.ControllingArea and $projection.ValidityDate <= _ProfitCenterDesc.ValidityEndDate and $projection.ValidityDate >= _ProfitCenterDesc.ValidityStartDate and _ProfitCenterDesc.Language = $session.system_language |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AbapCatalog.sqlViewName | CPOACCASSFS | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| UI.headerInfo.typeName | Purchase Order Account Assignment | view | |
| UI.headerInfo.typeNamePlural | Purchase Order Account Assignment | view | |
| UI.headerInfo.title.value | AccountAssignmentNumber | view | |
| ObjectModel.representativeKey | AccountAssignmentNumber | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| EndUserText.label | Purchase Order Account Assignment | view |
Fields (49)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseOrder | PurchaseOrder | ||
| KEY | PurchaseOrderItem | PurchaseOrderItem | ||
| KEY | AccountAssignmentNumber | AccountAssignmentNumber | ||
| CompanyCode | CompanyCode | |||
| ValidityDate | ValidityDate | |||
| CostCenter | CostCenter | |||
| MasterFixedAsset | MasterFixedAsset | |||
| FixedAsset | FixedAsset | |||
| ProjectNetwork | ProjectNetwork | |||
| NetworkActivityInternalID | NetworkActivityInternalID | |||
| ProjectNetworkInternalID | ProjectNetworkInternalID | |||
| NetworkActivity | _NetworkActivityByInternalKey | NetworkActivity | ||
| MultipleAcctAssgmtDistrPercent | MultipleAcctAssgmtDistrPercent | |||
| GLAccount | GLAccount | |||
| ChartOfAccounts | ChartOfAccounts | |||
| SalesOrder | SalesOrder | |||
| SalesOrderItem | SalesOrderItem | |||
| OrderID | OrderID | |||
| UnloadingPointName | UnloadingPointName | |||
| ControllingArea | ControllingArea | |||
| ProfitCenter | ProfitCenter | |||
| WBSElementExternalID | WBSElementExternalID | |||
| WBSElementInternalID | ||||
| CommitmentItemShortID | CommitmentItemShortID | |||
| CommitmentItem | _CommitmentItemShortID | CommitmentItem | ||
| FundsCenter | FundsCenter | |||
| Fund | Fund | |||
| FunctionalArea | FunctionalArea | |||
| GoodsRecipientName | GoodsRecipientName | |||
| BusinessProcess | BusinessProcess | |||
| GrantID | GrantID | |||
| BudgetPeriod | BudgetPeriod | |||
| EarmarkedFundsDocument | EarmarkedFundsDocument | |||
| EarmarkedFundsDocumentItem | EarmarkedFundsDocumentItem | |||
| ServiceDocumentType | ServiceDocumentType | |||
| ServiceDocument | ServiceDocument | |||
| ServiceDocumentItem | ServiceDocumentItem | |||
| ProjectName | _PurOrdCustProj | CustomerProjectName | Project Name | |
| WorkPackageName | _PurOrdCustProj | CustProjWorkPackageName | Work Package Name | |
| _PurchaseOrder | _PurchaseOrder | |||
| _PurchaseOrderItem | _PurchaseOrderItem | |||
| _CostCenterDesc | _CostCenterDesc | |||
| _ControllingArea | _ControllingArea | |||
| _MasterFixedAsset | _MasterFixedAsset | |||
| _FixedAsset | _FixedAsset | |||
| _ProjectNetwork | _ProjectNetwork | |||
| _GLAccountDesc | _GLAccountDesc | |||
| _FunctionalAreaDesc | _FunctionalAreaDesc | |||
| _ProfitCenterDesc | _ProfitCenterDesc |
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType: #CONSUMPTION
@AccessControl.authorizationCheck: #CHECK
@AbapCatalog.sqlViewName: 'CPOACCASSFS'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey:true
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #M
@ObjectModel.usageType.dataClass: #MIXED
@UI.headerInfo:{
typeName: 'Purchase Order Account Assignment',
typeNamePlural: 'Purchase Order Account Assignment',
title.value: 'AccountAssignmentNumber'
//description.value: 'PurchaseOrderItemCategory'
}
@ObjectModel: {
semanticKey: ['PurchaseOrder', 'PurchaseOrderItem', 'AccountAssignmentNumber'],
representativeKey: 'AccountAssignmentNumber'
}
@AccessControl.personalData.blocking: #NOT_REQUIRED
@EndUserText.label: 'Purchase Order Account Assignment'
define view C_POAccountAssignmentFactSheet
as select from I_PurOrdAccountAssignment
association [0..*] to P_Purordmaintaincustproj as _PurOrdCustProj on $projection.WBSElementInternalID = _PurOrdCustProj.WBSElementInternalID
association [0..1] to I_MasterFixedAsset as _MasterFixedAsset on $projection.CompanyCode = _MasterFixedAsset.CompanyCode
and $projection.MasterFixedAsset = _MasterFixedAsset.MasterFixedAsset
association [0..1] to I_FixedAsset as _FixedAsset on $projection.MasterFixedAsset = _FixedAsset.MasterFixedAsset
and $projection.FixedAsset = _FixedAsset.FixedAsset
and $projection.CompanyCode = _FixedAsset.CompanyCode
association [0..1] to I_ProjectNetwork as _ProjectNetwork on $projection.ProjectNetwork = _ProjectNetwork.ProjectNetwork
association [0..1] to I_NetworkActivityByInternalKey as _NetworkActivityByInternalKey on $projection.ProjectNetworkInternalID = _NetworkActivityByInternalKey.ProjectNetworkInternalID
and $projection.NetworkActivityInternalID = _NetworkActivityByInternalKey.NetworkActivityInternalID
association [0..1] to I_CostCenterText as _CostCenterDesc on $projection.CostCenter = _CostCenterDesc.CostCenter
and $projection.ControllingArea = _CostCenterDesc.ControllingArea
and $projection.ValidityDate <= _CostCenterDesc.ValidityEndDate
and $projection.ValidityDate >= _CostCenterDesc.ValidityStartDate
and _CostCenterDesc.Language = $session.system_language
association [0..1] to I_GLAccountText as _GLAccountDesc on $projection.GLAccount = _GLAccountDesc.GLAccount
and $projection.ChartOfAccounts = _GLAccountDesc.ChartOfAccounts
and _GLAccountDesc.Language = $session.system_language
association [0..1] to I_FunctionalAreaText as _FunctionalAreaDesc on $projection.FunctionalArea = _FunctionalAreaDesc.FunctionalArea
and _FunctionalAreaDesc.Language = $session.system_language
association [0..1] to I_ProfitCenterText as _ProfitCenterDesc on $projection.ProfitCenter = _ProfitCenterDesc.ProfitCenter
and $projection.ControllingArea = _ProfitCenterDesc.ControllingArea
and $projection.ValidityDate <= _ProfitCenterDesc.ValidityEndDate
and $projection.ValidityDate >= _ProfitCenterDesc.ValidityStartDate
and _ProfitCenterDesc.Language = $session.system_language
{
@UI.facet: [
{ label:'General Information',
id:'GeneralInformation',
isSummary: true,
type: #COLLECTION,
position: 10
},
{
label: 'Basic Data',
id: 'BasicData',
parentId: 'GeneralInformation',
type: #IDENTIFICATION_REFERENCE,
position: 10
},
{
label: 'Asset Management',
id: 'AssetManagementGroupID',
parentId: 'GeneralInformation',
type: #FIELDGROUP_REFERENCE,
position: 20,
targetQualifier: 'AssetManagementGroup'
},
{
label: 'Network',
id: 'NetworkGroupID',
parentId: 'GeneralInformation',
type: #FIELDGROUP_REFERENCE,
position: 30,
targetQualifier: 'NetworkGroup'
},
{
label: 'Sales and Distribution Information',
id: 'SDInfoGroupID',
parentId: 'GeneralInformation',
type: #FIELDGROUP_REFERENCE,
position: 40,
targetQualifier: 'SDInfoGroup'
},
{
label: 'Project',
id: 'ProjectGroupID',
parentId: 'GeneralInformation',
type: #FIELDGROUP_REFERENCE,
position: 50,
targetQualifier: 'ProjectGroup'
},
{
label: 'Service Order',
id: 'ServiceOrderGroupID',
parentId: 'GeneralInformation',
type: #FIELDGROUP_REFERENCE,
position: 60,
targetQualifier: 'ServiceOrderGroup'
}
]
@ObjectModel.foreignKey.association: '_PurchaseOrder'
key PurchaseOrder,
@ObjectModel.foreignKey.association: '_PurchaseOrderItem'
key PurchaseOrderItem,
@UI.lineItem: [{
qualifier: 'AccAssItem',
position: 10,
importance: #HIGH }, {
position: 10,
importance: #HIGH
}]
key AccountAssignmentNumber,
@Consumption.hidden: true
CompanyCode,
@Consumption.hidden: true
ValidityDate,
@UI:{ identification: {position: 90, importance: #HIGH}}
@ObjectModel.text.association: '_CostCenterDesc'
@UI.lineItem: [{
qualifier: 'AccAssItem',
position: 30,
importance: #HIGH }, {
position: 30,
importance: #HIGH
}]
CostCenter,
@UI.fieldGroup: [ { groupLabel: 'AssetManagement', position: 120, qualifier: 'AssetManagementGroup' } ]
@ObjectModel.text.association: '_MasterFixedAsset'
@UI.lineItem: [{
qualifier: 'AccAssItem',
position: 60,
importance: #HIGH }, {
position: 60,
importance: #HIGH
}]
MasterFixedAsset,
@UI.fieldGroup: [ { groupLabel: 'AssetManagement', position: 130, qualifier: 'AssetManagementGroup' } ]
@ObjectModel.text.association: '_FixedAsset'
FixedAsset,
@UI.fieldGroup: [ { groupLabel: 'Network', position: 100, qualifier: 'NetworkGroup' } ]
@ObjectModel.text.association: '_ProjectNetwork'
@UI.lineItem: [{
qualifier: 'AccAssItem',
position: 50,
importance: #HIGH }, {
position: 50,
importance: #HIGH
}]
ProjectNetwork,
@Consumption.hidden: true
NetworkActivityInternalID,
@Consumption.hidden: true
ProjectNetworkInternalID,
@UI.fieldGroup: [ { groupLabel: 'Network', position: 110, qualifier: 'NetworkGroup' } ]
_NetworkActivityByInternalKey.NetworkActivity,
@UI:{ identification: {position: 20, importance: #HIGH}}
@UI.lineItem: [{
qualifier: 'AccAssItem',
position: 20,
importance: #HIGH }, {
position: 20,
importance: #HIGH
}]
MultipleAcctAssgmtDistrPercent,
@UI:{ identification: {position: 80, importance: #HIGH}}
@ObjectModel.text.association: '_GLAccountDesc'
@UI.lineItem: [{
qualifier: 'AccAssItem',
position: 40,
importance: #HIGH }, {
position: 40,
importance: #HIGH
}]
GLAccount,
@Consumption.hidden: true
ChartOfAccounts,
@UI.fieldGroup: [ { groupLabel: 'SDInfo', position: 40, qualifier: 'SDInfoGroup' } ]
SalesOrder,
@UI.fieldGroup: [ { groupLabel: 'SDInfo', position: 50, qualifier: 'SDInfoGroup' } ]
SalesOrderItem,
@UI.fieldGroup: [ { groupLabel: 'SDInfo', position: 60, qualifier: 'SDInfoGroup' } ]
OrderID,
@UI.identification.position: 180
UnloadingPointName,
@UI.identification.position: 190
@ObjectModel.text.association: '_ControllingArea'
ControllingArea,
@UI.identification.position: 110
@ObjectModel.text.association: '_ProfitCenterDesc'
ProfitCenter,
@UI.fieldGroup: [ { groupLabel: 'Project', position: 10, qualifier: 'ProjectGroup' } ]
@UI.lineItem: [{
qualifier: 'AccAssItem',
position: 70,
importance: #HIGH }, {
position: 70,
importance: #HIGH
}]
WBSElementExternalID,
@Consumption.hidden: true
cast ( WBSElementInternalID as ps_s4_pspnr preserving type ) as WBSElementInternalID,
@Consumption.hidden: true
CommitmentItemShortID,
@UI.identification.position: 240
_CommitmentItemShortID.CommitmentItem,
@UI.identification.position: 210
FundsCenter,
@UI.identification.position: 200
Fund,
@UI.identification.position: 100
@ObjectModel.text.association: '_FunctionalAreaDesc'
FunctionalArea,
@UI.identification.position: 280
GoodsRecipientName,
@UI.identification.position: 270
BusinessProcess,
@UI.identification.position: 250
GrantID,
@UI.identification.position: 260
BudgetPeriod,
@UI.identification.position: 220
EarmarkedFundsDocument,
@UI.identification.position: 230
EarmarkedFundsDocumentItem,
@UI.fieldGroup: [ { groupLabel: 'ServiceOrder', position: 300, qualifier: 'ServiceOrderGroup' } ]
ServiceDocumentType,
@UI.fieldGroup: [ { groupLabel: 'ServiceOrder', position: 310, qualifier: 'ServiceOrderGroup' } ]
ServiceDocument,
@UI.fieldGroup: [ { groupLabel: 'ServiceOrder', position: 320, qualifier: 'ServiceOrderGroup' } ]
ServiceDocumentItem,
@UI.fieldGroup: [ { groupLabel: 'Project', position: 20, qualifier: 'ProjectGroup' } ]
@EndUserText.label: 'Project Name'
_PurOrdCustProj.CustomerProjectName as ProjectName,
@UI.fieldGroup: [ { groupLabel: 'Project', position: 30, qualifier: 'ProjectGroup' } ]
@EndUserText.label: 'Work Package Name'
_PurOrdCustProj.CustProjWorkPackageName as WorkPackageName,
_PurchaseOrder,
_PurchaseOrderItem,
_CostCenterDesc,
_ControllingArea,
_MasterFixedAsset,
_FixedAsset,
_ProjectNetwork,
_GLAccountDesc,
_FunctionalAreaDesc,
_ProfitCenterDesc
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_COMMITMENTITEMSHORTID",
"I_NETWORKACTIVITYBYINTERNALKEY",
"I_PURORDACCOUNTASSIGNMENT",
"P_PURORDMAINTAINCUSTPROJ"
],
"ASSOCIATED":
[
"I_CONTROLLINGAREA",
"I_COSTCENTERTEXT",
"I_FIXEDASSET",
"I_FUNCTIONALAREATEXT",
"I_GLACCOUNTTEXT",
"I_MASTERFIXEDASSET",
"I_NETWORKACTIVITYBYINTERNALKEY",
"I_PROFITCENTERTEXT",
"I_PROJECTNETWORK",
"I_PURCHASEORDER",
"I_PURCHASEORDERITEM",
"P_PURORDMAINTAINCUSTPROJ"
],
"BASE":
[
"I_PURORDACCOUNTASSIGNMENT"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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