P_GteeMBillgItmsRRBBilled
GM Billing - Resource Related Billing - Billed
P_GteeMBillgItmsRRBBilled is a Composite CDS View that provides data about "GM Billing - Resource Related Billing - Billed" in SAP S/4HANA. It reads from 12 data sources and exposes 55 fields with key fields Ledger, CompanyCode, FiscalYear, AccountingDocument, LedgerGLLineItem. Part of development package PSM_S4C_GM_BILLING.
Data Sources (12)
| Source | Alias | Join Type |
|---|---|---|
| I_GLAccountLineItem | AcItem | from |
| I_GLAccountLineItem | AcItem | union_all |
| I_GLAccountLineItem | BillableDoc | inner |
| I_GteeMBillingElementEntry | GBEE | inner |
| I_GteeMBillingElementEntry | GBEE | inner |
| I_GteeMBillingElementEntryFlw | GBEEF | inner |
| I_GteeMBillingElementEntryFlw | GBEEF | inner |
| I_GteeMBillingPlanItem | GBPI | inner |
| P_GteeMBillingElmntEntrFlwDoc | SDBillDocItem | inner |
| P_GteeMBillingElmntEntrFlwDoc | SDBillDocItem | inner |
| I_SDDocumentMultiLevelProcFlow | SDDocFlow | inner |
| I_SDDocumentMultiLevelProcFlow | SDDocFlow | inner |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PGMGBRRBB | 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 (55)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 | 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_GLAccountLineItem | 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_GteeMBillingElementEntryFlw | DocumentCurrency | Document Currency | |
| GlobalCurrency | I_GteeMBillingElementEntryFlw | GlobalCurrency | GM Billing Element: Global Currency | |
| BillableRevenueAmtInDocCrcy | ||||
| NotPaidRevenueAmtInDocCrcy | ||||
| PaidRevenueAmtInDocCrcy | ||||
| BillableRevenueAmtInGlobalCrcy | ||||
| NotPaidRevenueAmtInGCrcy | ||||
| PaidRevenueAmtInGlobalCrcy | ||||
| _Grant | I_GLAccountLineItem | _Grant | ||
| 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 | GteeMBillgElmntEntrItmUUID | I_GteeMBillingElementEntry | GteeMBillgElmntEntrItmUUID | GMBE Entry UUID |
| GteeMBillingPlanItemUUID | I_GteeMBillingElementEntry | GteeMBillingPlanItemUUID | GMBPI UUID | |
| ReferenceDocumentType | Reference Document Type | |||
| ReferenceDocument | Reference Document | |||
| ReferenceDocumentItem | Reference item | |||
| GrantID | I_GLAccountLineItem | GrantID | Sender Grant | |
| SponsoredProgram | I_GLAccountLineItem | SponsoredProgram | Sponsored Program | |
| SponsoredClass | I_GteeMBillingElementEntry | 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_GteeMBillingElementEntryFlw | DocumentCurrency | Document Currency | |
| GlobalCurrency | I_GteeMBillingElementEntryFlw | GlobalCurrency | GM Billing Element: Global Currency | |
| BillableRevenueAmtInDocCrcy | ||||
| NotPaidRevenueAmtInDocCrcy | ||||
| PaidRevenueAmtInDocCrcy | ||||
| BillableRevenueAmtInGlobalCrcy | ||||
| NotPaidRevenueAmtInGCrcy | ||||
| PaidRevenueAmtInGlobalCrcy | ||||
| _Grant | I_GLAccountLineItem | _Grant | ||
| _SponsoredProgram | I_GLAccountLineItem | _SponsoredProgram |
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_GteeMBillgItmsRRBBilled.
-- 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: PGMGBRRBB
CREATE VIEW P_GteeMBillgItmsRRBBilled AS
SELECT
AcItem.Ledger AS Ledger,
AcItem.CompanyCode AS CompanyCode,
AcItem.FiscalYear AS FiscalYear,
AcItem.AccountingDocument AS AccountingDocument,
AcItem.LedgerGLLineItem AS LedgerGLLineItem,
GBEE.GteeMBillgElmntEntrItmUUID AS GteeMBillgElmntEntrItmUUID,
GBEE.GteeMBillingPlanItemUUID AS GteeMBillingPlanItemUUID,
BillableDoc.ReferenceDocumentType AS ReferenceDocumentType,
BillableDoc.ReferenceDocument AS ReferenceDocument,
BillableDoc.ReferenceDocumentItem AS ReferenceDocumentItem,
AcItem.GrantID AS GrantID,
AcItem.SponsoredProgram AS SponsoredProgram,
BillableDoc.SponsoredClass AS SponsoredClass,
AcItem.FinancialManagementArea AS FinancialManagementArea,
AcItem.Fund AS Fund,
AcItem.CreationDate AS CreationDate,
AcItem.PubSecBudgetCnsmpnType AS PubSecBudgetCnsmpnType,
AcItem.PubSecBudgetCnsmpnDate AS PubSecBudgetCnsmpnDate,
GBEEF.DocumentCurrency AS DocumentCurrency,
GBEEF.GlobalCurrency AS GlobalCurrency,
cast( '0' as gmbee_billablerevnindoccrcy ) AS BillableRevenueAmtInDocCrcy,
cast( 0 - AcItem.AmountInTransactionCurrency as gmbe_notpaidrevnamtindoccrcy ) AS NotPaidRevenueAmtInDocCrcy,
cast( '0' as gmbe_paidrevnindoccrcy ) AS PaidRevenueAmtInDocCrcy,
cast( '0' as gmbee_billablerevninglobcrcy ) AS BillableRevenueAmtInGlobalCrcy,
cast( 0 - AcItem.AmountInGlobalCurrency as gmbe_notpaidrevnamtingcrcy ) AS NotPaidRevenueAmtInGCrcy,
cast( '0' as gmbe_paidrevninglobcrcy ) AS PaidRevenueAmtInGlobalCrcy,
AcItem._Grant AS _Grant,
AcItem._SponsoredProgram AS _SponsoredProgram
FROM I_GLAccountLineItem AS AcItem
INNER JOIN P_GteeMBillingElmntEntrFlwDoc AS SDBillDocItem ON /* join condition not captured in parsed metadata */
INNER JOIN I_SDDocumentMultiLevelProcFlow AS SDDocFlow ON /* join condition not captured in parsed metadata */
INNER JOIN I_GteeMBillingElementEntryFlw AS GBEEF ON /* join condition not captured in parsed metadata */
INNER JOIN I_GteeMBillingElementEntry AS GBEE ON /* join condition not captured in parsed metadata */
INNER JOIN I_GLAccountLineItem AS BillableDoc ON /* join condition not captured in parsed metadata */
INNER JOIN I_GteeMBillingPlanItem AS GBPI ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): I_GLAccountLineItem
;
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