C_PT_SAFTGeneralLedgerBPC
General Ledger BP Master - Cube
C_PT_SAFTGeneralLedgerBPC is a Consumption CDS View (Cube) that provides data about "General Ledger BP Master - Cube" in SAP S/4HANA. It reads from 3 data sources (I_PT_SAFTGenLedgerOneTimeBP, I_PT_SAFTGenLedgerOneTimeBP, I_PT_SAFTGenericSettings) and exposes 8 fields with key fields CompanyCode, FiscalYear, FiscalYear.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_PT_SAFTGenLedgerOneTimeBP | Doc | from |
| I_PT_SAFTGenLedgerOneTimeBP | Doc | union |
| I_PT_SAFTGenericSettings | GenSet | inner |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_StartDate | dats | |
| P_EndDate | dats |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| VDM.viewType | #CONSUMPTION | view | |
| EndUserText.label | General Ledger BP Master - Cube | view | |
| Analytics.dataCategory | #CUBE | view | |
| Analytics.internalName | #LOCAL | view | |
| Metadata.allowExtensions | true | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_INCLUDED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (8)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_PT_SAFTGenLedgerOneTimeBP | CompanyCode | Receiver Company Code |
| KEY | FiscalYear | I_PT_SAFTGenLedgerOneTimeBP | FiscalYear | G/L Fiscal Year |
| char4asBusinessPartnerType | ||||
| char32asSupplierToPartner | ||||
| CompanyCode | Receiver Company Code | |||
| KEY | FiscalYear | I_PT_SAFTGenLedgerOneTimeBP | FiscalYear | G/L Fiscal Year |
| SupplierToPartner | SupplierToPartner | CHAR35 | ||
| BusinessPartnerCustomer | I_PT_SAFTGenLedgerOneTimeBP | BusinessPartnerCustomer | CHAR35 |
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_SAFTGeneralLedgerBPC.
-- 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.
-- Parameters: P_StartDate : dats, P_EndDate : dats
CREATE VIEW C_PT_SAFTGeneralLedgerBPC AS
SELECT
Doc.CompanyCode AS CompanyCode,
Doc.FiscalYear AS FiscalYear,
cast(case when Doc.Customer is not initial then '0001' when Doc.Supplier is not initial then '0002' else '0000' end as abap.char(4)) as BusinessPartnerType AS char4asBusinessPartnerType,
cast( case when Doc.Supplier is not initial then case when Doc.DelivOfGoodsDestCountry is not initial then case when Doc.DelivOfGoodsDestCountry != Doc.Country then concat(Doc.Supplier,concat('/',Doc.DelivOfGoodsDestCountry)) else Doc.Supplier end else Doc.Supplier end end as abap.char(32) ) as SupplierToPartner AS char32asSupplierToPartner,
SupplierToPartner,
Doc.BusinessPartnerCustomer AS BusinessPartnerCustomer
FROM I_PT_SAFTGenLedgerOneTimeBP AS Doc
INNER JOIN I_PT_SAFTGenericSettings AS GenSet ON /* join condition not captured in parsed metadata */
-- UNION with additional select branch(es): I_PT_SAFTGenLedgerOneTimeBP
;
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