P_GteeMBillgItmsRRBNotBilledR4

DDL: P_GTEEMBILLGITMSRRBNOTBILLEDR4 SQL: PGMGBRRBNOTB4 Type: view COMPOSITE Package: PSM_S4C_GM_BILLING

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

P_GteeMBillgItmsRRBNotBilledR4 is a Composite CDS View that provides data about "GM Billing - Resource Related Billing - Not Billed - Rule 4" in SAP S/4HANA. It reads from 2 data sources (I_GteeMBillingElementEntry, I_GteeMBillingPlanItem) 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_GteeMBillingElementEntry GBEE from
I_GteeMBillingPlanItem GBpItem 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 PGMGBRRBNOTB4 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_GteeMBillingElementEntry Ledger Ledger
KEY CompanyCode I_GteeMBillingElementEntry CompanyCode Receiver Company Code
KEY FiscalYear I_GteeMBillingElementEntry FiscalYear G/L Fiscal Year
KEY AccountingDocument I_GteeMBillingElementEntry AccountingDocument Journal Entry
KEY LedgerGLLineItem I_GteeMBillingElementEntry 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
ReferenceDocument
ReferenceDocumentItem
GrantID I_GteeMBillingElementEntry GrantID Sender Grant
SponsoredProgram I_GteeMBillingElementEntry SponsoredProgram Sponsored Program
SponsoredClass I_GteeMBillingElementEntry SponsoredClass Sponsored Class
FinancialManagementArea I_GteeMBillingElementEntry FinancialManagementArea FM Area
Fund I_GteeMBillingElementEntry Fund Sender Fund
clientNULLasfis_cpdatasCreationDate
PubSecBudgetCnsmpnType
PubSecBudgetCnsmpnDate
DocumentCurrency I_GteeMBillingElementEntry DocumentCurrency Document Currency
GlobalCurrency I_GteeMBillingElementEntry GlobalCurrency GM Billing Element: Global Currency
BilledRevenueAmtInDocCrcy
NotPaidRevenueAmtInDocCrcy
PaidRevenueAmtInDocCrcy
BilledRevenueAmtInGlobCrcy
NotPaidRevenueAmtInGCrcy
PaidRevenueAmtInGlobalCrcy
_Grant I_GteeMBillingElementEntry _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_GteeMBillgItmsRRBNotBilledR4.
-- 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: PGMGBRRBNOTB4

CREATE VIEW P_GteeMBillgItmsRRBNotBilledR4 AS
SELECT
  GBEE.Ledger AS Ledger,
  GBEE.CompanyCode AS CompanyCode,
  GBEE.FiscalYear AS FiscalYear,
  GBEE.AccountingDocument AS AccountingDocument,
  GBEE.LedgerGLLineItem AS LedgerGLLineItem,
  GBEE.SplitInformationSequenceNumber AS SplitInformationSequenceNumber,
  GBEE.GteeMBillgElmntEntrItmUUID AS GteeMBillgElmntEntrItmUUID,
  GBEE.GteeMBillingPlanItemUUID AS GteeMBillingPlanItemUUID,
  cast( '' as fis_awtyp ) AS ReferenceDocumentType,
  cast( '' as awref ) AS ReferenceDocument,
  cast( '000000' as fis_awitem ) AS ReferenceDocumentItem,
  GBEE.GrantID AS GrantID,
  GBEE.SponsoredProgram AS SponsoredProgram,
  GBEE.SponsoredClass AS SponsoredClass,
  GBEE.FinancialManagementArea AS FinancialManagementArea,
  GBEE.Fund AS Fund,
  cast( tstmp_to_dats( GBpItem._GteeMBillingPlanHeader.GteeMBillingPlanCrtedAtDteTme, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as fis_cpdat ) as CreationDate AS clientNULLasfis_cpdatasCreationDate,
  cast( '' as psm_bdgt_cnsmpn_type ) AS PubSecBudgetCnsmpnType,
  cast( GBpItem.GteeMBillingPlanItemBillgDate as psm_bdgt_cnsmpn_date ) 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,
  GBEE._Grant AS _Grant,
  GBEE._SponsoredProgramCore AS _SponsoredProgram
FROM I_GteeMBillingElementEntry AS GBEE
INNER JOIN I_GteeMBillingPlanItem AS GBpItem 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]
;