I_PT_SAFTGenLedgerOneTimeCust
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)
| Source | Alias | Join Type |
|---|---|---|
| I_PT_SAFTIsAlternateAccount | c | inner |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 */
;
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