I_PT_SAFTGenLedgerOneTimeCust

DDL: I_PT_SAFTGENLEDGERONETIMECUST SQL: IPTSAFTGENLCUST Type: view COMPOSITE Package: GLO_FIN_IS_SAFT_PT

SAF-T PT Gen Ledger OneTimeCustomer

I_PT_SAFTGenLedgerOneTimeCust is a Composite CDS View that provides data about "SAF-T PT Gen Ledger OneTimeCustomer" in SAP S/4HANA. It reads from 1 data source (I_PT_SAFTIsAlternateAccount) and exposes 14 fields with key fields CompanyCode, FiscalYear, AccountingDocument, Ledger. Part of development package GLO_FIN_IS_SAFT_PT.

Data Sources (1)

SourceAliasJoin Type
I_PT_SAFTIsAlternateAccount c inner

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IPTSAFTGENLCUST view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
EndUserText.label SAF-T PT Gen Ledger OneTimeCustomer view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode a CompanyCode Receiver Company Code
KEY FiscalYear a FiscalYear G/L Fiscal Year
KEY AccountingDocument a AccountingDocument Journal Entry
KEY Ledger a Ledger Ledger
_CompanyCode a _CompanyCode
_FiscalYear a _FiscalYear
_JournalEntry a _JournalEntry
_Ledger a _Ledger
PostingDateendasDocumentDate
Customer a Customer Sold-to Party
CityNameelseDesconhecidoendendasCityName
PostalCodeelse0000000endendasPostalCode
CountryelseDesconhecidoendendasCountry
_Customer a _Customer

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_SAFTGenLedgerOneTimeCust.
-- 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: IPTSAFTGENLCUST

CREATE VIEW I_PT_SAFTGenLedgerOneTimeCust AS
SELECT
  a.CompanyCode AS CompanyCode,
  a.FiscalYear AS FiscalYear,
  a.AccountingDocument AS AccountingDocument,
  a.Ledger AS Ledger,
  a._CompanyCode AS _CompanyCode,
  a._FiscalYear AS _FiscalYear,
  a._JournalEntry AS _JournalEntry,
  a._Ledger AS _Ledger,
  case when Sig.PortugueseInvoiceDate is not initial then Sig.PortugueseInvoiceDate else a.PostingDate end as DocumentDate AS PostingDateendasDocumentDate,
  a.Customer AS Customer,
  case when a.CustomerVATRegistration is initial or a.CustomerVATRegistration is null then 'Desconhecido' else case when a.CityName is not initial and a.CityName is not null then a.CityName else 'Desconhecido' end end as CityName AS CityNameelseDesconhecidoendendasCityName,
  case when a.CustomerVATRegistration is initial or a.CustomerVATRegistration is null then '0000-000' else case when a.PostalCode is not initial and a.PostalCode is not null then a.PostalCode else '0000-000' end end as PostalCode AS PostalCodeelse0000000endendasPostalCode,
  case when a.CustomerVATRegistration is initial or a.CustomerVATRegistration is null then 'Desconhecido' else case when a.Country is not initial and a.Country is not null then a.Country else 'Desconhecido' end end as Country AS CountryelseDesconhecidoendendasCountry,
  a._Customer AS _Customer
INNER JOIN I_PT_SAFTIsAlternateAccount AS c ON /* join condition not captured in parsed metadata */
;