R_ProjectBillingRequestTP

DDL: R_PROJECTBILLINGREQUESTTP SQL: RPROJBILLREQ Type: view_entity TRANSACTIONAL

Details of Project Billing Request

R_ProjectBillingRequestTP is a Transactional CDS View that provides data about "Details of Project Billing Request" in SAP S/4HANA. It reads from 1 data source (I_ProjectBillingRequest) and exposes 31 fields with key field ProjectBillingRequestUUID. It has 6 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_ProjectBillingRequest ProjectBillingRequest from

Associations (6)

CardinalityTargetAliasCondition
[1..1] I_SalesOrder _SalesOrder $projection.SalesDocument = _SalesOrder.SalesOrder
[1..1] I_UserContactCard _UserContactCard $projection.ProjBillgReqCreatedBy = _UserContactCard.ContactCardID
[0..1] P_MyProjectBillingRequests _MyProjectBillingRequests $projection.SalesDocument = _MyProjectBillingRequests.SalesOrder and _MyProjectBillingRequests.UserID = $session.user
[1..1] I_CustomerToBusinessPartner _CustomerToBusinessPartner $projection.customeruuid = _CustomerToBusinessPartner.BusinessPartnerUUID
[0..*] R_ProjectBillingRequestItemTP _ProjectBillingReqItemTP
[0..1] R_ProjBillgReqObjectLinkTP _ProjBillgReqObjectLink

Annotations (9)

NameValueLevelField
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
EndUserText.label Details of Project Billing Request view
ObjectModel.sapObjectNodeType.name ProjectBillingRequest view
AccessControl.personalData.blocking #REQUIRED view

Fields (31)

KeyFieldSource TableSource FieldDescription
KEY ProjectBillingRequestUUID I_ProjectBillingRequest ProjectBillingRequestUUID Proj Billg Req UUID
ProjectBillingRequest I_ProjectBillingRequest ProjectBillingRequest PBR
ProjectInternalID ProjectInternalID Project Def.
ProjectBillingRequestStatus I_ProjectBillingRequest ProjectBillingRequestStatus Billing Req Status
ProjBillgReqApprovalStatus I_ProjectBillingRequest ProjBillgReqApprovalStatus PBR Apprvl Sts
ProjectBillingRequestType I_ProjectBillingRequest ProjectBillingRequestType Document Type
SalesDocument I_ProjectBillingRequest SalesDocument SD Document
ProjectBillingCategory I_ProjectBillingRequest ProjectBillingCategory PBF Category
ProjBillgReqLastChgdBy I_ProjectBillingRequest ProjBillgReqLastChgdBy Changed By
ProjBillgReqLastChgdAtDteTme I_ProjectBillingRequest ProjBillgReqLastChgdAtDteTme Changed On
ProjBillgReqCreatedBy I_ProjectBillingRequest ProjBillgReqCreatedBy Created By
ProjBillgReqCreatedAtDteTme I_ProjectBillingRequest ProjBillgReqCreatedAtDteTme Created On
_ProjectBillingRequestItem I_ProjectBillingRequest _ProjectBillingRequestItem
clientNULLasProjBillgReqCreatedAtDte Created On
Project _EnterpriseProject Project WBS Element
CustomerUUID _EnterpriseProject CustomerUUID NodeID
Customer _SalesOrder SoldToParty Sold-to Party
UserID _MyProjectBillingRequests UserID User Name
CurrencyasDocumentCurrency
ProjectStartDate _EnterpriseProject ProjectStartDate Latest Planned Start
ProjectEndDate _EnterpriseProject ProjectEndDate Ltst Planned Finish
ProfitCenter _EnterpriseProject ProfitCenter Profit Center
ControllingArea _EnterpriseProject ControllingArea Controlling Area
ProjectDescription _EnterpriseProject ProjectDescription Project Name
_SalesOrder _SalesOrder
_EnterpriseProject _EnterpriseProject
_CustomerToBusinessPartner _CustomerToBusinessPartner
_ProjBillgReqObjectLink _ProjBillgReqObjectLink
_ProjectBillingRequestStatus _ProjectBillingRequestStatus
_ProjBillgReqApprovalStatus _ProjBillgReqApprovalStatus
_UserContactCard _UserContactCard

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_ProjectBillingRequestTP.
-- 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: RPROJBILLREQ

CREATE VIEW R_ProjectBillingRequestTP AS
SELECT
  ProjectBillingRequest.ProjectBillingRequestUUID AS ProjectBillingRequestUUID,
  ProjectBillingRequest.ProjectBillingRequest AS ProjectBillingRequest,
  ProjectInternalID,
  ProjectBillingRequest.ProjectBillingRequestStatus AS ProjectBillingRequestStatus,
  ProjectBillingRequest.ProjBillgReqApprovalStatus AS ProjBillgReqApprovalStatus,
  ProjectBillingRequest.ProjectBillingRequestType AS ProjectBillingRequestType,
  ProjectBillingRequest.SalesDocument AS SalesDocument,
  ProjectBillingRequest.ProjectBillingCategory AS ProjectBillingCategory,
  ProjectBillingRequest.ProjBillgReqLastChgdBy AS ProjBillgReqLastChgdBy,
  ProjectBillingRequest.ProjBillgReqLastChgdAtDteTme AS ProjBillgReqLastChgdAtDteTme,
  ProjectBillingRequest.ProjBillgReqCreatedBy AS ProjBillgReqCreatedBy,
  ProjectBillingRequest.ProjBillgReqCreatedAtDteTme AS ProjBillgReqCreatedAtDteTme,
  ProjectBillingRequest._ProjectBillingRequestItem AS _ProjectBillingRequestItem,
  tstmp_to_dats( cast( ProjBillgReqCreatedAtDteTme as timestamp ), abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as ProjBillgReqCreatedAtDte AS clientNULLasProjBillgReqCreatedAtDte,
  _EnterpriseProject.Project AS Project,
  _EnterpriseProject.CustomerUUID AS CustomerUUID,
  _SalesOrder.SoldToParty AS Customer,
  _MyProjectBillingRequests.UserID AS UserID,
  _EnterpriseProject.ProjectStartDate AS ProjectStartDate,
  _EnterpriseProject.ProjectEndDate AS ProjectEndDate,
  _EnterpriseProject.ProfitCenter AS ProfitCenter,
  _EnterpriseProject.ControllingArea AS ControllingArea,
  _EnterpriseProject.ProjectDescription AS ProjectDescription
FROM I_ProjectBillingRequest AS ProjectBillingRequest
LEFT OUTER JOIN I_SalesOrder AS _SalesOrder ON SalesDocument = _SalesOrder.SalesOrder  -- association [1..1]
LEFT OUTER JOIN I_UserContactCard AS _UserContactCard ON ProjBillgReqCreatedBy = _UserContactCard.ContactCardID  -- association [1..1]
LEFT OUTER JOIN P_MyProjectBillingRequests AS _MyProjectBillingRequests ON SalesDocument = _MyProjectBillingRequests.SalesOrder AND _MyProjectBillingRequests.UserID = $session.user  -- association [0..1]
LEFT OUTER JOIN I_CustomerToBusinessPartner AS _CustomerToBusinessPartner ON customeruuid = _CustomerToBusinessPartner.BusinessPartnerUUID  -- association [1..1]
LEFT OUTER JOIN R_ProjectBillingRequestItemTP AS _ProjectBillingReqItemTP ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_ProjBillgReqObjectLinkTP AS _ProjBillgReqObjectLink ON /* condition not available in parsed metadata */  -- association [0..1]
;