C_PT_BOPCustSuplrBalanceC
BOP PT Customer Vendor Balances - Cube
C_PT_BOPCustSuplrBalanceC is a Consumption CDS View (Cube) that provides data about "BOP PT Customer Vendor Balances - Cube" in SAP S/4HANA. It reads from 1 data source (P_PT_BOPCustSuplrCountry) and exposes 39 fields with key fields CompanyCode, AccountingDocument, FiscalYear, AccountingDocumentItem, StatryRptCategory. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_PT_BOPCustSuplrCountry | item | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_StRpJournalEntryLog | _ReportedItemsLog | $projection.CompanyCode = _ReportedItemsLog.CompanyCode and $projection.AccountingDocument = _ReportedItemsLog.AccountingDocument and $projection.FiscalYear = _ReportedItemsLog.FiscalYear |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | BOP PT Customer Vendor Balances - Cube | view | |
| Analytics.dataCategory | #CUBE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Metadata.allowExtensions | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Analytics.internalName | #LOCAL | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_INCLUDED | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (39)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | P_PT_BOPCustSuplrCountry | CompanyCode | Receiver Company Code |
| KEY | AccountingDocument | P_PT_BOPCustSuplrCountry | AccountingDocument | Journal Entry |
| KEY | FiscalYear | P_PT_BOPCustSuplrCountry | FiscalYear | G/L Fiscal Year |
| KEY | AccountingDocumentItem | P_PT_BOPCustSuplrCountry | AccountingDocumentItem | Posting View Item |
| KEY | StatryRptCategory | _ReportedItemsLog | StatryRptCategory | Report ID |
| KEY | StatryRptgEntity | _ReportedItemsLog | StatryRptgEntity | Reporting Entity |
| KEY | StatryRptRunID | _ReportedItemsLog | StatryRptRunID | Report Run ID |
| PostingDate | P_PT_BOPCustSuplrCountry | Postingdate | Posting Date for GR | |
| ClearingDate | P_PT_BOPCustSuplrCountry | ClearingDate | Clearing Date | |
| FinancialAccountType | P_PT_BOPCustSuplrCountry | FinancialAccountType | Fin. Account Type | |
| GLAccount | P_PT_BOPCustSuplrCountry | GLAccount | General Ledger | |
| ClearingJournalEntry | P_PT_BOPCustSuplrCountry | ClearingJournalEntry | Clrng doc. | |
| Customer | P_PT_BOPCustSuplrCountry | Customer | Sold-to Party | |
| Supplier | P_PT_BOPCustSuplrCountry | Supplier | Supplier | |
| BusinessPartner | P_PT_BOPCustSuplrCountry | BusinessPartner | Issuing Authority | |
| VATRegistration | P_PT_BOPCustSuplrCountry | VATRegistration | VAT Registration No. | |
| VATRegistrationCountry | P_PT_BOPCustSuplrCountry | VATRegistrationCountry | CtryRgnSlsTxNo. | |
| BusinessPartnerCountry | P_PT_BOPCustSuplrCountry | BPCountry | ||
| PT_BOPCtptyCountryISOCode | ||||
| DebitCreditCode | P_PT_BOPCustSuplrCountry | DebitCreditCode | Single-Character Flag | |
| AmountInTransactionCurrency | P_PT_BOPCustSuplrCountry | AmountInTransactionCurrency | Pt Crcy Amt | |
| TransactionCurrency | P_PT_BOPCustSuplrCountry | TransactionCurrency | Transaction Currency | |
| CurrencyISOCode | P_PT_BOPCustSuplrCountry | CurrencyISOCode | Document Currency | |
| PT_BOPAcctBalDebitClsfctn | P_PT_BOPCustSuplrCountry | PT_BOPAcctBalDebitClsfctn | ||
| PT_BOPAcctBalCreditClsfctn | P_PT_BOPCustSuplrCountry | PT_BOPAcctBalCreditClsfctn | ||
| PT_BOPValueType | P_PT_BOPCustSuplrCountry | PT_BOPValueType | ||
| PT_BOPAccountType | P_PT_BOPCustSuplrCountry | PT_BOPAccountType | ||
| ReviewComment | ||||
| AccountingDocumentCategory | P_PT_BOPCustSuplrCountry | AccountingDocumentCategory | Journal Entry Category | |
| ClearingDocFiscalYear | P_PT_BOPCustSuplrCountry | ClearingDocFiscalYear | Fiscal Year of Clearing Journal Entry | |
| AccountingDocumentType | P_PT_BOPCustSuplrCountry | AccountingDocumentType | Journal Entry Type | |
| SpecialGLCode | P_PT_BOPCustSuplrCountry | SpecialGLCode | Special G/L Ind | |
| PostingKey | P_PT_BOPCustSuplrCountry | PostingKey | Posting Key | |
| DocumentDate | P_PT_BOPCustSuplrCountry | DocumentDate | Journal Entry Date | |
| FinancialTransactionType | P_PT_BOPCustSuplrCountry | FinancialTransactionType | Transact. Type | |
| SupplierCountry | P_PT_BOPCustSuplrCountry | SupplierCountry | ||
| CustomerCountry | P_PT_BOPCustSuplrCountry | CustomerCountry | ||
| SupplierVATRegistration | P_PT_BOPCustSuplrCountry | SupplierVATRegistration | VAT Registration No. | |
| CustomerVATRegistration | P_PT_BOPCustSuplrCountry | CustomerVATRegistration | VAT Registration No. |
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_PT_BOPCustSuplrBalanceC.
-- 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.
CREATE VIEW C_PT_BOPCustSuplrBalanceC AS
SELECT
item.CompanyCode AS CompanyCode,
item.AccountingDocument AS AccountingDocument,
item.FiscalYear AS FiscalYear,
item.AccountingDocumentItem AS AccountingDocumentItem,
_ReportedItemsLog.StatryRptCategory AS StatryRptCategory,
_ReportedItemsLog.StatryRptgEntity AS StatryRptgEntity,
_ReportedItemsLog.StatryRptRunID AS StatryRptRunID,
item.Postingdate AS PostingDate,
item.ClearingDate AS ClearingDate,
item.FinancialAccountType AS FinancialAccountType,
item.GLAccount AS GLAccount,
item.ClearingJournalEntry AS ClearingJournalEntry,
item.Customer AS Customer,
item.Supplier AS Supplier,
item.BusinessPartner AS BusinessPartner,
item.VATRegistration AS VATRegistration,
item.VATRegistrationCountry AS VATRegistrationCountry,
item.BPCountry AS BusinessPartnerCountry,
cast(Country.CountryThreeLetterISOCode as fiappt_pais_contraparte ) AS PT_BOPCtptyCountryISOCode,
item.DebitCreditCode AS DebitCreditCode,
item.AmountInTransactionCurrency AS AmountInTransactionCurrency,
item.TransactionCurrency AS TransactionCurrency,
item.CurrencyISOCode AS CurrencyISOCode,
item.PT_BOPAcctBalDebitClsfctn AS PT_BOPAcctBalDebitClsfctn,
item.PT_BOPAcctBalCreditClsfctn AS PT_BOPAcctBalCreditClsfctn,
item.PT_BOPValueType AS PT_BOPValueType,
item.PT_BOPAccountType AS PT_BOPAccountType,
item. ReviewComment AS ReviewComment,
item.AccountingDocumentCategory AS AccountingDocumentCategory,
item.ClearingDocFiscalYear AS ClearingDocFiscalYear,
item.AccountingDocumentType AS AccountingDocumentType,
item.SpecialGLCode AS SpecialGLCode,
item.PostingKey AS PostingKey,
item.DocumentDate AS DocumentDate,
item.FinancialTransactionType AS FinancialTransactionType,
item.SupplierCountry AS SupplierCountry,
item.CustomerCountry AS CustomerCountry,
item.SupplierVATRegistration AS SupplierVATRegistration,
item.CustomerVATRegistration AS CustomerVATRegistration
FROM P_PT_BOPCustSuplrCountry AS item
LEFT OUTER JOIN I_StRpJournalEntryLog AS _ReportedItemsLog ON CompanyCode = _ReportedItemsLog.CompanyCode AND AccountingDocument = _ReportedItemsLog.AccountingDocument AND FiscalYear = _ReportedItemsLog.FiscalYear -- association [0..*]
;
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