Deprecated
This CDS view is deprecated in S/4HANA. Use NoSuccessor instead. View all deprecated CDS views →

I_PT_SAFTAcctgCustTaxRegnNmbr

DDL: I_PT_SAFTACCTGCUSTTAXREGNNMBR SQL: IPTSAFTACUSTREGN Type: view COMPOSITE Package: ID-FI-SAFT_DEPREC

SAF-T Accounting Tax Registration Number

I_PT_SAFTAcctgCustTaxRegnNmbr is a Composite CDS View that provides data about "SAF-T Accounting Tax Registration Number" in SAP S/4HANA. It reads from 3 data sources (I_PT_SAFTIsAlternateAccount, I_GLAccountInCompanyCode, I_PT_SAFTAcctgDocCustAddrHist) and exposes 15 fields with key fields CompanyCode, PortugueseCustomerWithVersion. Part of development package ID-FI-SAFT_DEPREC.

Data Sources (3)

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName IPTSAFTACUSTREGN view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #COMPOSITE 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 Accounting Tax Registration Number view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor NoSuccessor view

Fields (15)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_PT_SAFTAcctgDocCustAddrHist CompanyCode Receiver Company Code
KEY PortugueseCustomerWithVersion
DocumentDate a PostingDate Posting Date for GR
AccountingDocument I_PT_SAFTAcctgDocCustAddrHist AccountingDocument Journal Entry
CompanyName
PT_SAFTBPFullAddressTextendasStreetName
CityNameendasCityName
PostalCodeendasPostalCode
CountryendasCountry
Customer I_PT_SAFTAcctgDocCustAddrHist Customer Sold-to Party
CompanyContactPersonFullName I_PT_SAFTAcctgDocCustAddrHist ContactPersonName Full Name
PhoneNumberendasPhoneNumber
FaxNumberendasFaxNumber
EmailAddressendasEmailAddress
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_SAFTAcctgCustTaxRegnNmbr.
-- 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: IPTSAFTACUSTREGN

CREATE VIEW I_PT_SAFTAcctgCustTaxRegnNmbr AS
SELECT
  h.CompanyCode AS CompanyCode,
  concat(h.PortugueseCustomerWithVersion,concat('/',a.DelivOfGoodsDestCountry)) AS PortugueseCustomerWithVersion,
  a.PostingDate AS DocumentDate,
  h.AccountingDocument AS AccountingDocument,
  cast (h.CompanyName as bu_name1tx) AS CompanyName,
  case when h.PT_SAFTBPFullAddressText is initial then 'Desconhecido' else h.PT_SAFTBPFullAddressText end as StreetName AS PT_SAFTBPFullAddressTextendasStreetName,
  case when h.CityName is initial then 'Desconhecido' else h.CityName end as CityName AS CityNameendasCityName,
  case when h.PostalCode is initial then '0000-000' else h.PostalCode end as PostalCode AS PostalCodeendasPostalCode,
  case when h.Country is initial then 'Desconhecido' else h.Country end as Country AS CountryendasCountry,
  h.Customer AS Customer,
  h.ContactPersonName AS CompanyContactPersonFullName,
  case when h.PhoneNumber is initial then a._AddressRepresentation._PhoneNumber[ 1: PhNmbrIsCurrentOverallDefault = 'X' ].InternationalPhoneNumber else h.PhoneNumber end as PhoneNumber AS PhoneNumberendasPhoneNumber,
  case when h.FaxNumber is initial then a._AddressRepresentation._FaxNumber[ 1: FaxNumberIsCurrentDefault = 'X' ].InternationalFaxNumber else h.FaxNumber end as FaxNumber AS FaxNumberendasFaxNumber,
  case when h.EmailAddress is initial then a._AddressRepresentation._EmailAddress[ 1: EmailAddressIsCurrentDefault = 'X' ].EmailAddress else h.EmailAddress end as EmailAddress AS EmailAddressendasEmailAddress,
  ' ' AS WebsiteURL
INNER JOIN I_PT_SAFTAcctgDocCustAddrHist AS h ON /* join condition not captured in parsed metadata */
INNER JOIN I_PT_SAFTIsAlternateAccount AS c ON /* join condition not captured in parsed metadata */
INNER JOIN I_GLAccountInCompanyCode AS f ON /* join condition not captured in parsed metadata */
;