R_ProjectBillingElementTP
Details of Billing Element
R_ProjectBillingElementTP is a Transactional CDS View that provides data about "Details of Billing Element" in SAP S/4HANA. It reads from 1 data source (I_ProjectBillingElement) and exposes 55 fields with key field ProjectBillingElementUUID. It has 16 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ProjectBillingElement | ProjectBillingElement | from |
Associations (16)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_EnterpriseProjectElement | _EnterpriseProjectElement | $projection.BillingWBSElementInternalID = _EnterpriseProjectElement.WBSElementInternalID |
| [1..1] | P_ProjBillgElmntSalesDets2 | _ProjBillgElmntSalesDets | $projection.ProjectBillingElementUUID = _ProjBillgElmntSalesDets.ProjectBillingElementUUID |
| [1..1] | P_ProjectBillingElmntDueDate3 | _DueBillingDate | $projection.ProjectBillingElementUUID = _DueBillingDate.ProjectBillingElementUUID |
| [0..1] | I_TmpProjectBillingRequest | _TmpProjectBillingRequest | $projection.ProjectBillingElementUUID = _TmpProjectBillingRequest.ProjectBillingElementUUID |
| [0..1] | I_PrjBlgElmOverduePrepayment | _PrjBlgElmOverduePrepayment | $projection.ProjectBillingElementUUID = _PrjBlgElmOverduePrepayment.ProjectBillingElementUUID |
| [0..1] | I_PrjBlgElmPrepaymentAmount | _PrjBlgElmPrepaymentAmount | $projection.ProjectBillingElementUUID = _PrjBlgElmPrepaymentAmount.ProjectBillingElementUUID |
| [0..1] | I_PrjBlgElmBllbleRevnAmt | _PrjBlgElmBllbleRevnAmt | $projection.ProjectBillingElementUUID = _PrjBlgElmBllbleRevnAmt.ProjectBillingElementUUID -- can be moved to C_ |
| [0..*] | I_ProjectBillingDocDetails | _ProjectBillingDocDetails | $projection.BillingWBSElementInternalID = _ProjectBillingDocDetails.WBSElementInternalID -- can be moved to C_ |
| [0..*] | R_ProjectBillingRequestItemTP | _ProjectBillingRequestItemTP | $projection.ProjectBillingElementUUID = _ProjectBillingRequestItemTP.ProjectBillingElementUUID |
| [1..1] | I_ProfitCenterText | _ProfitCenterName | $projection.WBSElementProfitCenter = _ProfitCenterName.ProfitCenter and $projection.ControllingArea = _ProfitCenterName.ControllingArea and $projection.projectstartdate <= _ProfitCenterName.ValidityEndDate and $projection.projectstartdate >= _ProfitCenterName.ValidityStartDate and _ProfitCenterName.Language = $session.system_language |
| [1..1] | I_Customer | _Customer | $projection.Customer = _Customer.Customer -- can be moved to C_ |
| [0..*] | I_PrjBlgElmEntrForPrepayment | _PrjBlgElmEntrForPrepayment | $projection.ProjectBillingElementUUID = _PrjBlgElmEntrForPrepayment.ProjectBillingElementUUID |
| [0..1] | I_EngagementProjectSrvcOrgText | _ServiceOrganizationText | _ServiceOrganizationText.EngagementProjectServiceOrg = $projection.EngagementProjectServiceOrg and _ServiceOrganizationText.Language = $session.system_language |
| [0..1] | E_ProjectBillingElement | _Extension | $projection.ProjectBillingElementUUID = _Extension.ProjectBillingElementUUID |
| [0..*] | R_ProjectBillingElementEntryTP | _ProjectBillingElementEntry | |
| [0..1] | R_ProjBillgElmObjectLinkTP | _ProjBillgElmObjectLink | |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.sapObjectNodeType.name | ProjectBillingElement | view | |
| EndUserText.label | Details of Billing Element | view |
Fields (55)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ProjectBillingElementUUID | I_ProjectBillingElement | ProjectBillingElementUUID | PBE UUID |
| BillingWBSElementInternalID | I_ProjectBillingElement | BillingWBSElementInternalID | WBS Internal ID | |
| DocumentCurrency | I_ProjectBillingElement | DocumentCurrency | Document Currency | |
| BilledRevenueAmtInDocCrcy | I_ProjectBillingElement | BilledRevenueAmtInDocCrcy | Billed Revenue | |
| WrittenOffRevenueAmtInDocCrcy | I_ProjectBillingElement | WrittenOffRevenueAmtInDocCrcy | Written-off Revenue | |
| ProjBillingProfile | I_ProjectBillingElement | ProjBillingProfile | Proj. Billg Profile | |
| ProjectBillingCategory | I_ProjectBillingElement | ProjectBillingCategory | PBF Category | |
| ProjBillgElmntCreatedByUser | I_ProjectBillingElement | ProjBillgElmntCreatedByUser | PBE Created By | |
| ProjBillgElmntCreatedAtDteTme | I_ProjectBillingElement | ProjBillgElmntCreatedAtDteTme | PBE Created On | |
| ProjBillgElmntLastChgdByUser | I_ProjectBillingElement | ProjBillgElmntLastChgdByUser | PBE Changed By | |
| ProjBillgElmntLastChgdAtDteTme | I_ProjectBillingElement | ProjBillgElmntLastChgdAtDteTme | PBE Changed On | |
| WBSElementExternalID | ||||
| BillingPlan | _ProjBillgElmntSalesDets | BillingPlan | Bill. Plan No. | |
| SalesOrder | _ProjBillgElmntSalesDets | SalesOrder | SD Document | |
| SalesOrderItem | _ProjBillgElmntSalesDets | SalesOrderItem | Sales Order Item | |
| TransactionCurrency | _ProjBillgElmntSalesDets | TransactionCurrency | Transaction Currency | |
| WBSElementProfitCenter | _EnterpriseProjectElement | ProfitCenter | Profit Center | |
| ProfitCenterHierarchyNode | ||||
| CappedNetAmount | _ProjBillgElmntSalesDets | CappedNetAmount | ||
| ControllingArea | ||||
| Project | ||||
| ProfitCenter | ||||
| ProcessingStatus | ||||
| ProjectStartDate | ||||
| ProjectEndDate | ||||
| SoldToPartyasCustomer | ||||
| ProjectBillingRequest | _TmpProjectBillingRequest | ProjectBillingRequest | PBR | |
| ProjectBillingRequestUUID | _TmpProjectBillingRequest | ProjectBillingRequestUUID | Proj Billg Req UUID | |
| BillingBlockStatus | _ProjBillgElmntSalesDets | BillingBlockStatus | ||
| TotalBlockStatus | ||||
| OverallBillingBlockStatus | ||||
| BillingBlockReason | _ProjBillgElmntSalesDets | BillingBlockReason | ||
| HeaderBillingBlockReason | ||||
| SalesDocumentRjcnReason | _ProjBillgElmntSalesDets | SalesDocumentRjcnReason | RejectionReason | |
| EngagementProjectServiceOrg | ||||
| DueBillingDate | _DueBillingDate | DueBillingDate | ||
| UserID | _DueBillingDate | UserID | User Name | |
| BillableRevenueAmtInDocCrcy | ||||
| PrjBlgElmPlndPrepaymentIsOvrd | _PrjBlgElmOverduePrepayment | PrjBlgElmPlndPrepaymentIsOvrd | ||
| PlndPrepaymentAmtInProjCrcy | _PrjBlgElmPrepaymentAmount | PlndPrepaymentAmtInProjCrcy | ||
| _ServiceOrganizationText | _ServiceOrganizationText | |||
| _ProfitCenterName | _ProfitCenterName | |||
| _PrjBlgElmBllbleRevnAmt | _PrjBlgElmBllbleRevnAmt | |||
| _PrjBlgElmEntrForPrepayment | _PrjBlgElmEntrForPrepayment | |||
| _SalesDocItemBillPlan | _ProjBillgElmntSalesDets | _SalesDocItemBillPlan | ||
| _SalesOrderItem | _ProjBillgElmntSalesDets | _SalesOrderItem | ||
| _SalesOrder | _ProjBillgElmntSalesDets | _SalesOrder | ||
| _ProjectBillingElementEntry | _ProjectBillingElementEntry | |||
| _WBSElement | I_ProjectBillingElement | _WBSElement | ||
| _ProjectBillingRequestItemTP | _ProjectBillingRequestItemTP | |||
| _Customer | _Customer | |||
| _EnterpriseProjectElement | _EnterpriseProjectElement | |||
| _PrjBlgElmPrepaymentAmount | _PrjBlgElmPrepaymentAmount | |||
| _PrjBlgElmOverduePrepayment | _PrjBlgElmOverduePrepayment | |||
| _ProjBillgElmObjectLink | _ProjBillgElmObjectLink |
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 R_ProjectBillingElementTP.
-- 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: RPRJBLGELMTP
CREATE VIEW R_ProjectBillingElementTP AS
SELECT
ProjectBillingElement.ProjectBillingElementUUID AS ProjectBillingElementUUID,
ProjectBillingElement.BillingWBSElementInternalID AS BillingWBSElementInternalID,
ProjectBillingElement.DocumentCurrency AS DocumentCurrency,
ProjectBillingElement.BilledRevenueAmtInDocCrcy AS BilledRevenueAmtInDocCrcy,
ProjectBillingElement.WrittenOffRevenueAmtInDocCrcy AS WrittenOffRevenueAmtInDocCrcy,
ProjectBillingElement.ProjBillingProfile AS ProjBillingProfile,
ProjectBillingElement.ProjectBillingCategory AS ProjectBillingCategory,
ProjectBillingElement.ProjBillgElmntCreatedByUser AS ProjBillgElmntCreatedByUser,
ProjectBillingElement.ProjBillgElmntCreatedAtDteTme AS ProjBillgElmntCreatedAtDteTme,
ProjectBillingElement.ProjBillgElmntLastChgdByUser AS ProjBillgElmntLastChgdByUser,
ProjectBillingElement.ProjBillgElmntLastChgdAtDteTme AS ProjBillgElmntLastChgdAtDteTme,
cast( _EnterpriseProjectElement.ProjectElement as ps_posid_edit preserving type ) AS WBSElementExternalID,
_ProjBillgElmntSalesDets.BillingPlan AS BillingPlan,
_ProjBillgElmntSalesDets.SalesOrder AS SalesOrder,
_ProjBillgElmntSalesDets.SalesOrderItem AS SalesOrderItem,
_ProjBillgElmntSalesDets.TransactionCurrency AS TransactionCurrency,
_EnterpriseProjectElement.ProfitCenter AS WBSElementProfitCenter,
cast('' as fis_prctr_hrynid_50) AS ProfitCenterHierarchyNode,
_ProjBillgElmntSalesDets.CappedNetAmount AS CappedNetAmount,
_EnterpriseProjectElement._Project.ControllingArea AS ControllingArea,
_EnterpriseProjectElement._Project.Project AS Project,
_EnterpriseProjectElement._Project.ProfitCenter AS ProfitCenter,
_EnterpriseProjectElement._Project.ProcessingStatus AS ProcessingStatus,
_EnterpriseProjectElement._Project.ProjectStartDate AS ProjectStartDate,
_EnterpriseProjectElement._Project.ProjectEndDate AS ProjectEndDate,
_TmpProjectBillingRequest.ProjectBillingRequest AS ProjectBillingRequest,
_TmpProjectBillingRequest.ProjectBillingRequestUUID AS ProjectBillingRequestUUID,
_ProjBillgElmntSalesDets.BillingBlockStatus AS BillingBlockStatus,
_ProjBillgElmntSalesDets._SalesOrder.TotalBlockStatus AS TotalBlockStatus,
_ProjBillgElmntSalesDets._SalesOrder.OverallBillingBlockStatus AS OverallBillingBlockStatus,
_ProjBillgElmntSalesDets.BillingBlockReason AS BillingBlockReason,
_ProjBillgElmntSalesDets._SalesOrder.HeaderBillingBlockReason AS HeaderBillingBlockReason,
_ProjBillgElmntSalesDets.SalesDocumentRjcnReason AS SalesDocumentRjcnReason,
_EnterpriseProjectElement._Project.EnterpriseProjectServiceOrg AS EngagementProjectServiceOrg,
_DueBillingDate.DueBillingDate AS DueBillingDate,
_DueBillingDate.UserID AS UserID,
_PrjBlgElmOverduePrepayment.PrjBlgElmPlndPrepaymentIsOvrd AS PrjBlgElmPlndPrepaymentIsOvrd,
_PrjBlgElmPrepaymentAmount.PlndPrepaymentAmtInProjCrcy AS PlndPrepaymentAmtInProjCrcy,
_ProjBillgElmntSalesDets._SalesDocItemBillPlan AS _SalesDocItemBillPlan,
_ProjBillgElmntSalesDets._SalesOrderItem AS _SalesOrderItem,
_ProjBillgElmntSalesDets._SalesOrder AS _SalesOrder,
ProjectBillingElement._WBSElement AS _WBSElement
FROM I_ProjectBillingElement AS ProjectBillingElement
LEFT OUTER JOIN I_EnterpriseProjectElement AS _EnterpriseProjectElement ON BillingWBSElementInternalID = _EnterpriseProjectElement.WBSElementInternalID -- association [1..1]
LEFT OUTER JOIN P_ProjBillgElmntSalesDets2 AS _ProjBillgElmntSalesDets ON ProjectBillingElementUUID = _ProjBillgElmntSalesDets.ProjectBillingElementUUID -- association [1..1]
LEFT OUTER JOIN P_ProjectBillingElmntDueDate3 AS _DueBillingDate ON ProjectBillingElementUUID = _DueBillingDate.ProjectBillingElementUUID -- association [1..1]
LEFT OUTER JOIN I_TmpProjectBillingRequest AS _TmpProjectBillingRequest ON ProjectBillingElementUUID = _TmpProjectBillingRequest.ProjectBillingElementUUID -- association [0..1]
LEFT OUTER JOIN I_PrjBlgElmOverduePrepayment AS _PrjBlgElmOverduePrepayment ON ProjectBillingElementUUID = _PrjBlgElmOverduePrepayment.ProjectBillingElementUUID -- association [0..1]
LEFT OUTER JOIN I_PrjBlgElmPrepaymentAmount AS _PrjBlgElmPrepaymentAmount ON ProjectBillingElementUUID = _PrjBlgElmPrepaymentAmount.ProjectBillingElementUUID -- association [0..1]
LEFT OUTER JOIN I_PrjBlgElmBllbleRevnAmt AS _PrjBlgElmBllbleRevnAmt ON ProjectBillingElementUUID = _PrjBlgElmBllbleRevnAmt.ProjectBillingElementUUID -- association [0..1]
LEFT OUTER JOIN I_ProjectBillingDocDetails AS _ProjectBillingDocDetails ON BillingWBSElementInternalID = _ProjectBillingDocDetails.WBSElementInternalID -- association [0..*]
LEFT OUTER JOIN R_ProjectBillingRequestItemTP AS _ProjectBillingRequestItemTP ON ProjectBillingElementUUID = _ProjectBillingRequestItemTP.ProjectBillingElementUUID -- association [0..*]
LEFT OUTER JOIN I_ProfitCenterText AS _ProfitCenterName ON WBSElementProfitCenter = _ProfitCenterName.ProfitCenter AND ControllingArea = _ProfitCenterName.ControllingArea AND projectstartdate <= _ProfitCenterName.ValidityEndDate AND projectstartdate >= _ProfitCenterName.ValidityStartDate AND _ProfitCenterName.Language = $session.system_language -- association [1..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer -- association [1..1]
LEFT OUTER JOIN I_PrjBlgElmEntrForPrepayment AS _PrjBlgElmEntrForPrepayment ON ProjectBillingElementUUID = _PrjBlgElmEntrForPrepayment.ProjectBillingElementUUID -- association [0..*]
LEFT OUTER JOIN I_EngagementProjectSrvcOrgText AS _ServiceOrganizationText ON _ServiceOrganizationText.EngagementProjectServiceOrg = EngagementProjectServiceOrg AND _ServiceOrganizationText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN E_ProjectBillingElement AS _Extension ON ProjectBillingElementUUID = _Extension.ProjectBillingElementUUID -- association [0..1]
LEFT OUTER JOIN R_ProjectBillingElementEntryTP AS _ProjectBillingElementEntry ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN R_ProjBillgElmObjectLinkTP AS _ProjBillgElmObjectLink ON /* condition not available in parsed metadata */ -- 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