C_RRBSalesPricingDynamicItem

DDL: C_RRBSALESPRICINGDYNAMICITEM SQL: CRRBSLSPRDYNITEM Type: view CONSUMPTION

Resource Related Billing Dynamic Items

C_RRBSalesPricingDynamicItem is a Consumption CDS View that provides data about "Resource Related Billing Dynamic Items" in SAP S/4HANA. It reads from 1 data source (P_RRBSalesPricingDynamicItem) and exposes 62 fields with key fields RRBSalesPricingDocument, RRBDynamicItem, SalesDocument, SalesDocumentItem, BillingPlan. It has 11 associations to related views.

Data Sources (1)

SourceAliasJoin Type
P_RRBSalesPricingDynamicItem RRBSalesPricingDynamicItem from

Associations (11)

CardinalityTargetAliasCondition
[0..1] I_WorkPackageWorkItem _WorkPackageWorkItem RRBSalesPricingDynamicItem.WorkItem = _WorkPackageWorkItem.WorkItem and RRBSalesPricingDynamicItem.CustomerProjectWorkPackage = _WorkPackageWorkItem.WorkPackage
[0..1] I_WorkItem _WorkItem RRBSalesPricingDynamicItem.WorkItem = _WorkItem.WorkItem
[0..1] I_SalesDocumentItem _SalesDocumentItem $projection.SalesDocument = _SalesDocumentItem.SalesDocument and $projection.SalesDocumentItem = _SalesDocumentItem.SalesDocumentItem
[0..1] I_UnitOfMeasure _UnitOfMeasure $projection.UnitOfMeasure = _UnitOfMeasure.UnitOfMeasure
[0..1] I_Currency _TransactionCurrency $projection.TransactionCurrency = _TransactionCurrency.Currency
[0..1] I_Currency _DocumentCurrency $projection.DocumentCurrency = _DocumentCurrency.Currency
[1..1] E_JournalEntryItem _JournalEntryItemExtension $projection.SourceLedger = _JournalEntryItemExtension.SourceLedger and $projection.CompanyCode = _JournalEntryItemExtension.CompanyCode and $projection.FiscalYear = _JournalEntryItemExtension.FiscalYear and $projection.AccountingDocument = _JournalEntryItemExtension.AccountingDocument and $projection.LedgerGLLineItem = _JournalEntryItemExtension.LedgerGLLineItem
[0..1] I_BillingControlCategoryText _BillingControlCategoryText $projection.BillingControlCategory = _BillingControlCategoryText.BillingControlCategory and _BillingControlCategoryText.Language = $session.system_language
[0..1] I_JournalEntry _JournalEntry $projection.CompanyCode = _JournalEntry.CompanyCode and $projection.FiscalYear = _JournalEntry.FiscalYear and $projection.AccountingDocument = _JournalEntry.AccountingDocument
[0..1] I_PersonWorkAgreement_1 _PersonWorkAgreement $projection.Personnel = _PersonWorkAgreement.PersonWorkAgreement
[0..1] I_TimeSheetOvertimeCatText _TimeSheetOvertimeCatText $projection.TimeSheetOvertimeCategory = _TimeSheetOvertimeCatText.TimeSheetOvertimeCategory and _TimeSheetOvertimeCatText.Language = $session.system_language

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CRRBSLSPRDYNITEM view
EndUserText.label Resource Related Billing Dynamic Items view
VDM.viewType #CONSUMPTION view
ObjectModel.updateEnabled true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
AbapCatalog.compiler.compareFilter true view
AccessControl.personalData.blocking #NOT_REQUIRED view
AccessControl.authorizationCheck #CHECK view

Fields (62)

KeyFieldSource TableSource FieldDescription
KEY RRBSalesPricingDocument RRBSalesPricingDocument
KEY RRBDynamicItem RRBDynamicItem
KEY SalesDocument SalesDocument Sales Document
KEY SalesDocumentItem SalesDocumentItem Sales Document Item
KEY BillingPlan Bill. Plan No.
KEY BillingPlanItem Item
SourceLedger P_RRBSalesPricingDynamicItem SourceLedger Source Ledger
CompanyCode P_RRBSalesPricingDynamicItem CompanyCode Receiver Company Code
FiscalYear P_RRBSalesPricingDynamicItem FiscalYear G/L Fiscal Year
AccountingDocument P_RRBSalesPricingDynamicItem AccountingDocument Journal Entry
LedgerGLLineItem P_RRBSalesPricingDynamicItem LedgerGLLineItem Item
TimeSheetOvertimeCategory P_RRBSalesPricingDynamicItem TimeSheetOvertimeCategory
TimeSheetOvertimeCategoryText _TimeSheetOvertimeCatText TimeSheetOvertimeCategoryText
BillingControlCategory P_RRBSalesPricingDynamicItem BillingControlCategory Billing Category
ControllingObject ControllingObject Object number
WorkItem WorkItem Work Item ID
PostingDate Posting Date for GR
BillingPlanBillingDate BillingPlanBillingDate
Personnel Personnel No.
CostCtrActivityType CostCtrActivityType Activity Type
Material Material Vehicle Model
LastChangeDateTime P_RRBSalesPricingDynamicItem LastChangeDateTime Timestamp
TransactionCurrency TransactionCurrency Transaction Currency
DocumentCurrency DocumentCurrency Document Currency
UnitOfMeasure UnitOfMeasure Unit Of Measure
TotalQuantity TotalQuantity Total Quantity
PostponedQuantity PostponedQuantity Quantity to be Postponed
RejectedQuantity RejectedQuantity Quantity to be Written Off
BilledQuantity BilledQuantity Quantity
NetAmount NetAmount Net Amount
TotalAmountInTransactionCrcy TotalAmountInTransactionCrcy Total Amount
AmountToBeBilledInTransacCrcy AmountToBeBilledInTransacCrcy Amount
AmtToBePostponedInTransacCrcy AmtToBePostponedInTransacCrcy Amount to be Postponed
AmtToBeRejectedInTransacCrcy AmtToBeRejectedInTransacCrcy Amount to be Written Off
BaseUnitNetAmount BaseUnitNetAmount Sales Price
BaseUnitActualCost Cost Rate
CustomerProjectWorkPackage P_RRBSalesPricingDynamicItem CustomerProjectWorkPackage
CustProjWorkPackageName P_RRBSalesPricingDynamicItem CustProjWorkPackageName
DefaultEmailAddress
MobilePhoneNumber
PhoneNumber
CompanyCodeNameendasCompanyCodeName
MaterialNameendasMaterialName Expense Type/Activity Type
WorkItemName _WorkPackageWorkItem WorkItemName
SalesDocumentItemText
ReferenceDocument P_RRBSalesPricingDynamicItem ReferenceDocument Reference Document
ReferenceDocumentItem P_RRBSalesPricingDynamicItem ReferenceDocumentItem Reference item
SalesDocumentType
SalesOrganization
OrganizationDivision
DistributionChannel
_RRBDynamicItemLongText _RRBDynamicItemLongText
_CustomerProjectWorkPackage _CustomerProjectWorkPackage
_WorkPackageWorkItem _WorkPackageWorkItem
_WorkItem _WorkItem
_PersonWorkAgreement _PersonWorkAgreement
_Material _Material
_SalesDocumentItem _SalesDocumentItem
_UnitOfMeasure _UnitOfMeasure
_TransactionCurrency _TransactionCurrency
_DocumentCurrency _DocumentCurrency
_TimeSheetOvertimeCatText _TimeSheetOvertimeCatText

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_RRBSalesPricingDynamicItem.
-- 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: CRRBSLSPRDYNITEM

CREATE VIEW C_RRBSalesPricingDynamicItem AS
SELECT
  RRBSalesPricingDocument,
  RRBDynamicItem,
  SalesDocument,
  SalesDocumentItem,
  cast( BillingPlan as ps_s4_fplnr preserving type ) AS BillingPlan,
  cast( BillingPlanItem as ps_s4_fpltr preserving type ) AS BillingPlanItem,
  RRBSalesPricingDynamicItem.SourceLedger AS SourceLedger,
  RRBSalesPricingDynamicItem.CompanyCode AS CompanyCode,
  RRBSalesPricingDynamicItem.FiscalYear AS FiscalYear,
  RRBSalesPricingDynamicItem.AccountingDocument AS AccountingDocument,
  RRBSalesPricingDynamicItem.LedgerGLLineItem AS LedgerGLLineItem,
  RRBSalesPricingDynamicItem.TimeSheetOvertimeCategory AS TimeSheetOvertimeCategory,
  _TimeSheetOvertimeCatText.TimeSheetOvertimeCategoryText AS TimeSheetOvertimeCategoryText,
  RRBSalesPricingDynamicItem.BillingControlCategory AS BillingControlCategory,
  ControllingObject,
  WorkItem,
  cast( PostingDate as ps_s4_fis_bldat preserving type ) AS PostingDate,
  BillingPlanBillingDate,
  cast( Personnel as ps_s4_hr_pernr preserving type ) AS Personnel,
  CostCtrActivityType,
  Material,
  RRBSalesPricingDynamicItem.LastChangeDateTime AS LastChangeDateTime,
  TransactionCurrency,
  DocumentCurrency,
  UnitOfMeasure,
  TotalQuantity,
  PostponedQuantity,
  RejectedQuantity,
  BilledQuantity,
  NetAmount,
  TotalAmountInTransactionCrcy,
  AmountToBeBilledInTransacCrcy,
  AmtToBePostponedInTransacCrcy,
  AmtToBeRejectedInTransacCrcy,
  BaseUnitNetAmount,
  cast(BaseUnitActualCost as wtgxxx_cs ) AS BaseUnitActualCost,
  RRBSalesPricingDynamicItem.CustomerProjectWorkPackage AS CustomerProjectWorkPackage,
  RRBSalesPricingDynamicItem.CustProjWorkPackageName AS CustProjWorkPackageName,
  _PersonWorkAgreement._WorkforcePerson._WorkplaceAddress.DefaultEmailAddress AS DefaultEmailAddress,
  _PersonWorkAgreement._WorkforcePerson._WorkplaceAddress.MobilePhoneNumber AS MobilePhoneNumber,
  _PersonWorkAgreement._WorkforcePerson._WorkplaceAddress.PhoneNumber AS PhoneNumber,
  case when _PersonWorkAgreement._PersonWorkAgrmtOrglDetails[1: StartDate <= $session.system_date and EndDate >= $session.system_date].CompanyCode is null then '' else _PersonWorkAgreement._PersonWorkAgrmtOrglDetails[1: StartDate <= $session.system_date and EndDate >= $session.system_date]._CompanyCode.CompanyCodeName end as CompanyCodeName AS CompanyCodeNameendasCompanyCodeName,
  case when _Material._Text[1:Language = $session.system_language].MaterialName is null then '' else _Material._Text[1:Language = $session.system_language].MaterialName end as MaterialName AS MaterialNameendasMaterialName,
  _WorkPackageWorkItem.WorkItemName AS WorkItemName,
  cast( _SalesDocumentItem.SalesDocumentItemText as ps_s4_arktx preserving type ) AS SalesDocumentItemText,
  RRBSalesPricingDynamicItem.ReferenceDocument AS ReferenceDocument,
  RRBSalesPricingDynamicItem.ReferenceDocumentItem AS ReferenceDocumentItem,
  _SalesDocumentItem._SalesDocument.SalesDocumentType AS SalesDocumentType,
  _SalesDocumentItem._SalesDocument.SalesOrganization AS SalesOrganization,
  _SalesDocumentItem._SalesDocument.OrganizationDivision AS OrganizationDivision,
  _SalesDocumentItem._SalesDocument.DistributionChannel AS DistributionChannel
FROM P_RRBSalesPricingDynamicItem AS RRBSalesPricingDynamicItem
LEFT OUTER JOIN I_WorkPackageWorkItem AS _WorkPackageWorkItem ON RRBSalesPricingDynamicItem.WorkItem = _WorkPackageWorkItem.WorkItem AND RRBSalesPricingDynamicItem.CustomerProjectWorkPackage = _WorkPackageWorkItem.WorkPackage  -- association [0..1]
LEFT OUTER JOIN I_WorkItem AS _WorkItem ON RRBSalesPricingDynamicItem.WorkItem = _WorkItem.WorkItem  -- association [0..1]
LEFT OUTER JOIN I_SalesDocumentItem AS _SalesDocumentItem ON SalesDocument = _SalesDocumentItem.SalesDocument AND SalesDocumentItem = _SalesDocumentItem.SalesDocumentItem  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasure ON UnitOfMeasure = _UnitOfMeasure.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _TransactionCurrency ON TransactionCurrency = _TransactionCurrency.Currency  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _DocumentCurrency ON DocumentCurrency = _DocumentCurrency.Currency  -- association [0..1]
LEFT OUTER JOIN E_JournalEntryItem AS _JournalEntryItemExtension ON SourceLedger = _JournalEntryItemExtension.SourceLedger AND CompanyCode = _JournalEntryItemExtension.CompanyCode AND FiscalYear = _JournalEntryItemExtension.FiscalYear AND AccountingDocument = _JournalEntryItemExtension.AccountingDocument AND LedgerGLLineItem = _JournalEntryItemExtension.LedgerGLLineItem  -- association [1..1]
LEFT OUTER JOIN I_BillingControlCategoryText AS _BillingControlCategoryText ON BillingControlCategory = _BillingControlCategoryText.BillingControlCategory AND _BillingControlCategoryText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_JournalEntry AS _JournalEntry ON CompanyCode = _JournalEntry.CompanyCode AND FiscalYear = _JournalEntry.FiscalYear AND AccountingDocument = _JournalEntry.AccountingDocument  -- association [0..1]
LEFT OUTER JOIN I_PersonWorkAgreement_1 AS _PersonWorkAgreement ON Personnel = _PersonWorkAgreement.PersonWorkAgreement  -- association [0..1]
LEFT OUTER JOIN I_TimeSheetOvertimeCatText AS _TimeSheetOvertimeCatText ON TimeSheetOvertimeCategory = _TimeSheetOvertimeCatText.TimeSheetOvertimeCategory AND _TimeSheetOvertimeCatText.Language = $session.system_language  -- association [0..1]
;