C_PT_SAFTGeneralLedgerBPC

DDL: C_PT_SAFTGENERALLEDGERBPC Type: view_entity CONSUMPTION

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)

SourceAliasJoin Type
I_PT_SAFTGenLedgerOneTimeBP Doc from
I_PT_SAFTGenLedgerOneTimeBP Doc union
I_PT_SAFTGenericSettings GenSet inner

Parameters (2)

NameTypeDefault
P_StartDate dats
P_EndDate dats

Annotations (11)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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
;