I_PT_SAFTAcctgSupTaxRegnNmbr
SAF-T PT Registration Number Suppliers
I_PT_SAFTAcctgSupTaxRegnNmbr is a Composite CDS View that provides data about "SAF-T PT Registration Number Suppliers" in SAP S/4HANA. It reads from 5 data sources (I_SAFTGeneralLedgerSupplier, I_SAFTSupTaxRegnNmbr, I_PT_SAFTGenericSettings, I_GLAccountInCompanyCode, I_PT_SAFTIsAlternateAccount) and exposes 21 fields with key fields SourceLedger, CompanyCode, FiscalYear, AccountingDocument, Supplier.
Data Sources (5)
| Source | Alias | Join Type |
|---|---|---|
| I_SAFTGeneralLedgerSupplier | a | from |
| I_SAFTSupTaxRegnNmbr | b | inner |
| I_PT_SAFTGenericSettings | c | inner |
| I_GLAccountInCompanyCode | d | inner |
| I_PT_SAFTIsAlternateAccount | e | inner |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPTSAFTASUPREGN | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | 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 Registration Number Suppliers | view | |
| VDM.lifecycle.status | #DEPRECATED | view | |
| VDM.lifecycle.successor | NoSuccessor | view |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SourceLedger | I_SAFTGeneralLedgerSupplier | SourceLedger | Source Ledger |
| KEY | CompanyCode | I_SAFTGeneralLedgerSupplier | CompanyCode | Receiver Company Code |
| KEY | FiscalYear | I_SAFTGeneralLedgerSupplier | FiscalYear | G/L Fiscal Year |
| KEY | AccountingDocument | I_SAFTGeneralLedgerSupplier | AccountingDocument | Journal Entry |
| KEY | Supplier | |||
| Ledger | I_SAFTGeneralLedgerSupplier | Ledger | Ledger | |
| DocumentDate | I_SAFTGeneralLedgerSupplier | PostingDate | Posting Date for GR | |
| _SourceLedger | I_SAFTGeneralLedgerSupplier | _SourceLedger | ||
| _CompanyCode | I_SAFTGeneralLedgerSupplier | _CompanyCode | ||
| _FiscalYear | I_SAFTGeneralLedgerSupplier | _FiscalYear | ||
| _JournalEntry | I_SAFTGeneralLedgerSupplier | _JournalEntry | ||
| _Ledger | I_SAFTGeneralLedgerSupplier | _Ledger | ||
| VATRegistrationendasVATRegistration | ||||
| CompanyName | I_SAFTGeneralLedgerSupplier | CompanyName | Text | |
| CityNameendasCityName | ||||
| PostalCodeendasPostalCode | ||||
| CountryendasCountry | ||||
| PhoneNumber | ||||
| FaxNumber | ||||
| EmailAddress | ||||
| WebsiteURL |
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_SAFTAcctgSupTaxRegnNmbr.
-- 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: IPTSAFTASUPREGN
CREATE VIEW I_PT_SAFTAcctgSupTaxRegnNmbr AS
SELECT
a.SourceLedger AS SourceLedger,
a.CompanyCode AS CompanyCode,
a.FiscalYear AS FiscalYear,
a.AccountingDocument AS AccountingDocument,
concat(a.Supplier,concat('/', b.Country)) AS Supplier,
a.Ledger AS Ledger,
a.PostingDate AS DocumentDate,
a._SourceLedger AS _SourceLedger,
a._CompanyCode AS _CompanyCode,
a._FiscalYear AS _FiscalYear,
a._JournalEntry AS _JournalEntry,
a._Ledger AS _Ledger,
case when a.VATRegistration is initial or a.VATRegistration is null then 'Desconhecido' else a.VATRegistration end as VATRegistration AS VATRegistrationendasVATRegistration,
a.CompanyName AS CompanyName,
case when a.CityName is initial or a.CityName is null then 'Desconhecido' else a.CityName end as CityName AS CityNameendasCityName,
case when a.PostalCode is initial or a.PostalCode is null then 'Desconhecido' else a.PostalCode end as PostalCode AS PostalCodeendasPostalCode,
case when a.Country is initial or a.Country is null then 'Desconhecido' else a.Country end as Country AS CountryendasCountry,
a._AddressRepresentation._PhoneNumber[ 1: PhNmbrIsCurrentOverallDefault = 'X' ].InternationalPhoneNumber AS PhoneNumber,
a._AddressRepresentation._FaxNumber[ 1: FaxNumberIsCurrentDefault = 'X' ].InternationalFaxNumber AS FaxNumber,
a._AddressRepresentation._EmailAddress[ 1: EmailAddressIsCurrentDefault = 'X' ].EmailAddress AS EmailAddress,
' ' AS WebsiteURL
FROM I_SAFTGeneralLedgerSupplier AS a
INNER JOIN I_SAFTSupTaxRegnNmbr AS b ON /* join condition not captured in parsed metadata */
INNER JOIN I_PT_SAFTGenericSettings AS c ON /* join condition not captured in parsed metadata */
INNER JOIN I_PT_SAFTIsAlternateAccount AS e ON /* join condition not captured in parsed metadata */
INNER JOIN I_GLAccountInCompanyCode AS d ON /* join condition not captured in parsed metadata */
;
Learn More
- S/4HANA CDS View Deprecation: What You Need to Know
- 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
- 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