P_GteeMBillgItmsRRBNotBilledR2

DDL: P_GTEEMBILLGITMSRRBNOTBILLEDR2 SQL: PGMGBRRBNOTB2 Type: view COMPOSITE Package: PSM_S4C_GM_BILLING

GM Billing - Resource Related Billing - Not Billed - Rule 2

P_GteeMBillgItmsRRBNotBilledR2 is a Composite CDS View that provides data about "GM Billing - Resource Related Billing - Not Billed - Rule 2" in SAP S/4HANA. It reads from 2 data sources (I_GLAccountLineItem, I_GteeMBillingElementEntry) and exposes 29 fields with key fields Ledger, CompanyCode, FiscalYear, AccountingDocument, LedgerGLLineItem. It has 2 associations to related views. Part of development package PSM_S4C_GM_BILLING.

Data Sources (2)

SourceAliasJoin Type
I_GLAccountLineItem AcItem from
I_GteeMBillingElementEntry GBEE inner

Associations (2)

CardinalityTargetAliasCondition
[0..1] P_GteeMBillingElmntEntrFlwAgg2 _BillingElementEntryFlwAgg2 $projection.GteeMBillgElmntEntrItmUUID = _BillingElementEntryFlwAgg2.GteeMBillgElmntEntrItmUUID
[0..1] I_SponsoredClassCore _SponsoredClass $projection.SponsoredClass = _SponsoredClass.SponsoredClass

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName PGMGBRRBNOTB2 view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AbapCatalog.buffering.status #NOT_ALLOWED view
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
VDM.viewType #COMPOSITE view
VDM.private true view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #P view
ObjectModel.usageType.sizeCategory #XL view

Fields (29)

KeyFieldSource TableSource FieldDescription
KEY Ledger I_GLAccountLineItem Ledger Ledger
KEY CompanyCode I_GLAccountLineItem CompanyCode Receiver Company Code
KEY FiscalYear I_GLAccountLineItem FiscalYear G/L Fiscal Year
KEY AccountingDocument I_GLAccountLineItem AccountingDocument Journal Entry
KEY LedgerGLLineItem I_GLAccountLineItem LedgerGLLineItem Journal Entry Item
KEY SplitInformationSequenceNumber I_GteeMBillingElementEntry SplitInformationSequenceNumber Sequence Number
KEY GteeMBillgElmntEntrItmUUID I_GteeMBillingElementEntry GteeMBillgElmntEntrItmUUID GMBE Entry UUID
GteeMBillingPlanItemUUID I_GteeMBillingElementEntry GteeMBillingPlanItemUUID GMBPI UUID
ReferenceDocumentType I_GLAccountLineItem ReferenceDocumentType Reference Document Type
ReferenceDocument I_GLAccountLineItem ReferenceDocument Reference Document
ReferenceDocumentItem I_GLAccountLineItem ReferenceDocumentItem Reference item
GrantID I_GLAccountLineItem GrantID Sender Grant
SponsoredProgram I_GteeMBillingElementEntry SponsoredProgram Sponsored Program
SponsoredClass I_GLAccountLineItem SponsoredClass Sponsored Class
FinancialManagementArea I_GLAccountLineItem FinancialManagementArea FM Area
Fund I_GLAccountLineItem Fund Sender Fund
CreationDate I_GLAccountLineItem CreationDate Time Stamp
PubSecBudgetCnsmpnType I_GLAccountLineItem PubSecBudgetCnsmpnType Budget Consumption Type
PubSecBudgetCnsmpnDate I_GLAccountLineItem PubSecBudgetCnsmpnDate
DocumentCurrency I_GteeMBillingElementEntry DocumentCurrency Document Currency
GlobalCurrency I_GteeMBillingElementEntry GlobalCurrency GM Billing Element: Global Currency
BilledRevenueAmtInDocCrcy
NotPaidRevenueAmtInDocCrcy
PaidRevenueAmtInDocCrcy
BilledRevenueAmtInGlobCrcy
NotPaidRevenueAmtInGCrcy
PaidRevenueAmtInGlobalCrcy
_Grant I_GLAccountLineItem _Grant
_SponsoredProgram I_GteeMBillingElementEntry _SponsoredProgramCore

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 P_GteeMBillgItmsRRBNotBilledR2.
-- 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: PGMGBRRBNOTB2

CREATE VIEW P_GteeMBillgItmsRRBNotBilledR2 AS
SELECT
  AcItem.Ledger AS Ledger,
  AcItem.CompanyCode AS CompanyCode,
  AcItem.FiscalYear AS FiscalYear,
  AcItem.AccountingDocument AS AccountingDocument,
  AcItem.LedgerGLLineItem AS LedgerGLLineItem,
  GBEE.SplitInformationSequenceNumber AS SplitInformationSequenceNumber,
  GBEE.GteeMBillgElmntEntrItmUUID AS GteeMBillgElmntEntrItmUUID,
  GBEE.GteeMBillingPlanItemUUID AS GteeMBillingPlanItemUUID,
  AcItem.ReferenceDocumentType AS ReferenceDocumentType,
  AcItem.ReferenceDocument AS ReferenceDocument,
  AcItem.ReferenceDocumentItem AS ReferenceDocumentItem,
  AcItem.GrantID AS GrantID,
  GBEE.SponsoredProgram AS SponsoredProgram,
  AcItem.SponsoredClass AS SponsoredClass,
  AcItem.FinancialManagementArea AS FinancialManagementArea,
  AcItem.Fund AS Fund,
  AcItem.CreationDate AS CreationDate,
  AcItem.PubSecBudgetCnsmpnType AS PubSecBudgetCnsmpnType,
  AcItem.PubSecBudgetCnsmpnDate AS PubSecBudgetCnsmpnDate,
  GBEE.DocumentCurrency AS DocumentCurrency,
  GBEE.GlobalCurrency AS GlobalCurrency,
  cast( '0' as gmbe_billedrevnindoccrcy ) AS BilledRevenueAmtInDocCrcy,
  cast( '0' as gmbe_notpaidrevnamtindoccrcy ) AS NotPaidRevenueAmtInDocCrcy,
  cast( '0' as gmbe_paidrevnindoccrcy ) AS PaidRevenueAmtInDocCrcy,
  cast( '0' as gmbee_billedrevninglobcrcy ) AS BilledRevenueAmtInGlobCrcy,
  cast( '0' as gmbe_notpaidrevnamtingcrcy ) AS NotPaidRevenueAmtInGCrcy,
  cast( '0' as gmbe_paidrevninglobcrcy ) AS PaidRevenueAmtInGlobalCrcy,
  AcItem._Grant AS _Grant,
  GBEE._SponsoredProgramCore AS _SponsoredProgram
FROM I_GLAccountLineItem AS AcItem
INNER JOIN I_GteeMBillingElementEntry AS GBEE ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_GteeMBillingElmntEntrFlwAgg2 AS _BillingElementEntryFlwAgg2 ON GteeMBillgElmntEntrItmUUID = _BillingElementEntryFlwAgg2.GteeMBillgElmntEntrItmUUID  -- association [0..1]
LEFT OUTER JOIN I_SponsoredClassCore AS _SponsoredClass ON SponsoredClass = _SponsoredClass.SponsoredClass  -- association [0..1]
;