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

C_PT_SAFTIntegratedCustomer

DDL: C_PT_SAFTINTEGRATEDCUSTOMER SQL: CPTSAFTINTCUST Type: view CONSUMPTION

SAF-T Integrated Customers

C_PT_SAFTIntegratedCustomer is a Consumption CDS View that provides data about "SAF-T Integrated Customers" in SAP S/4HANA. It reads from 2 data sources (C_PT_SAFTCustomer, C_PT_SAFTGenLedgerCustomer) and exposes 28 fields with key fields CompanyCode, PortugueseCustomerWithVersion, PortugueseCustomerWithVersion.

Data Sources (2)

SourceAliasJoin Type
C_PT_SAFTCustomer C_PT_SAFTCustomer union
C_PT_SAFTGenLedgerCustomer C_PT_SAFTGenLedgerCustomer from

Parameters (2)

NameTypeDefault
P_StartDate dats
P_EndDate dats

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName CPTSAFTINTCUST view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
AccessControl.authorizationCheck #CHECK view
EndUserText.label SAF-T Integrated Customers view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor NoSuccessor view

Fields (28)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY PortugueseCustomerWithVersion PortugueseCustomerWithVersion Customer
ReconciliationAccount ReconciliationAccount Recon. account
CustomerVATRegistration VAT Registration No.
CompanyName CompanyName Text
StreetName Text
CityName Name
PostalCode PostalCode Postal Code
Country Country Venue: Ctry/Reg
CompanyContactPersonFullName
PhoneNumber
FaxNumber
EmailAddress
P_StartDate
P_EndDatekeyCompanyCode
KEY PortugueseCustomerWithVersion PortugueseCustomerWithVersion Customer
ReconciliationAccount ReconciliationAccount Recon. account
CustomerVATRegistration VAT Registration No.
CompanyName CompanyName Text
StreetName Text
CityName Name
PostalCode PostalCode Postal Code
Country Country Venue: Ctry/Reg
CompanyContactPersonFullName
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 C_PT_SAFTIntegratedCustomer.
-- 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: CPTSAFTINTCUST
-- Parameters: P_StartDate : dats, P_EndDate : dats

CREATE VIEW C_PT_SAFTIntegratedCustomer AS
SELECT
  CompanyCode,
  PortugueseCustomerWithVersion,
  ReconciliationAccount,
  cast(CustomerVATRegistration as stceg) AS CustomerVATRegistration,
  CompanyName,
  cast(StreetName as fieu_address ) AS StreetName,
  cast(CityName as ad_city1 ) AS CityName,
  PostalCode,
  Country,
  cast(coalesce(CompanyContactPersonFullName, '') as ad_namtext) AS CompanyContactPersonFullName,
  coalesce(PhoneNumber, '') AS PhoneNumber,
  cast(coalesce(FaxNumber, '') as telfx) AS FaxNumber,
  coalesce(EmailAddress, '') AS EmailAddress,
  ' ' as WebsiteURL AS P_StartDate,
  '' AS WebsiteURL
FROM C_PT_SAFTGenLedgerCustomer
-- UNION with additional select branch(es): C_PT_SAFTCustomer
;