I_PT_SAFTGenLedgerOneTimeBP

DDL: I_PT_SAFTGENLEDGERONETIMEBP Type: view_entity COMPOSITE

SAFT PT General Ledger One Time BP

I_PT_SAFTGenLedgerOneTimeBP is a Composite CDS View that provides data about "SAFT PT General Ledger One Time BP" in SAP S/4HANA. It reads from 3 data sources (P_PT_BusinessPartner_Delivery, I_PT_SAFTGenericSettings, P_PT_BusinessPartner_VatReg) and exposes 8 fields with key fields CompanyCode, FiscalYear, AccountingDocument.

Data Sources (3)

SourceAliasJoin Type
P_PT_BusinessPartner_Delivery Doc from
I_PT_SAFTGenericSettings GenSet inner
P_PT_BusinessPartner_VatReg VatReg inner

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
EndUserText.label SAFT PT General Ledger One Time BP view
Metadata.ignorePropagatedAnnotations true view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode P_PT_BusinessPartner_Delivery CompanyCode Receiver Company Code
KEY FiscalYear P_PT_BusinessPartner_Delivery FiscalYear G/L Fiscal Year
KEY AccountingDocument P_PT_BusinessPartner_Delivery AccountingDocument Journal Entry
PostingDate P_PT_BusinessPartner_Delivery PostingDate Posting Date for GR
Customer P_PT_BusinessPartner_Delivery Customer Sold-to Party
VATRegistration
char32asSupplierToPartner
char32asBusinessPartnerCustomer

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 I_PT_SAFTGenLedgerOneTimeBP.
-- 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 I_PT_SAFTGenLedgerOneTimeBP AS
SELECT
  Doc.CompanyCode AS CompanyCode,
  Doc.FiscalYear AS FiscalYear,
  Doc.AccountingDocument AS AccountingDocument,
  Doc.PostingDate AS PostingDate,
  Doc.Customer AS Customer,
  cast(VatReg.VATRegistration as abap.char(20)) AS VATRegistration,
  cast( case when Doc.Supplier is not initial then case when VatReg.VATRegistration is initial or VatReg.VATRegistration is null then concat(Doc.Supplier, concat('/', '999999990')) else concat(Doc.Supplier, concat('/', VatReg.VATRegistration)) end end as abap.char(32) ) as SupplierToPartner AS char32asSupplierToPartner,
  cast (case when Doc.Customer is not initial then case when VatReg.VATRegistration is initial or VatReg.VATRegistration is null then concat(Doc.Customer, concat('/', '999999990')) else concat(Doc.Customer, concat('/', VatReg.VATRegistration)) end end as abap.char(32) ) as BusinessPartnerCustomer AS char32asBusinessPartnerCustomer
FROM P_PT_BusinessPartner_Delivery AS Doc
INNER JOIN I_PT_SAFTGenericSettings AS GenSet ON /* join condition not captured in parsed metadata */
INNER JOIN P_PT_BusinessPartner_VatReg AS VatReg ON /* join condition not captured in parsed metadata */
;