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

C_PT_SAFTCustomer

DDL: C_PT_SAFTCUSTOMER SQL: CPTSAFTCUST Type: view CONSUMPTION

SAF-T PT Customers

C_PT_SAFTCustomer is a Consumption CDS View that provides data about "SAF-T PT Customers" in SAP S/4HANA.

Parameters (2)

NameTypeDefault
P_StartDate dats
P_EndDate dats

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName CPTSAFTCUST 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 PT Customers view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor NoSuccessor view

Fields (49)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode a CompanyCode Receiver Company Code
KEY PortugueseCustomerWithVersion a PortugueseCustomerWithVersion
CustomerVATRegistration VAT Registration No.
CompanyName
StreetName a StreetName Text
CityName a CityName Name
PostalCode a PostalCode Postal Code
Country a Country Venue: Ctry/Reg
CompanyContactPersonFullName Full Name
PhoneNumber Telephone no.
FaxNumber Fax Number
EmailAddress E-Mail Address
CompanyCode Receiver Company Code
KEY PortugueseCustomerWithVersion a PortugueseCustomerWithVersion
CustomerVATRegistration VAT Registration No.
CompanyName
StreetName a StreetName Text
CityName a CityName Name
PostalCode a PostalCode Postal Code
Country a Country Venue: Ctry/Reg
CompanyContactPersonFullName Full Name
PhoneNumber Telephone no.
FaxNumber Fax Number
EmailAddress E-Mail Address
CompanyCode Receiver Company Code
KEY PortugueseCustomerWithVersion ac PortugueseCustomerWithVersion
CustomerVATRegistration ac CustomerVATRegistration VAT Registration No.
CompanyName
StreetName ac StreetName Text
CityName ac CityName Name
PostalCode ac PostalCode Postal Code
Country ac Country Venue: Ctry/Reg
CompanyContactPersonFullName ac CompanyContactPersonFullName Full Name
PhoneNumber ac PhoneNumber Telephone no.
FaxNumber ac FaxNumber Fax Number
EmailAddress ac EmailAddress E-Mail Address
CompanyCode Receiver Company Code
KEY PortugueseCustomerWithVersion bc PortugueseCustomerWithVersion
CustomerVATRegistration bc CustomerVATRegistration VAT Registration No.
CompanyName
StreetName bc StreetName Text
CityName bc CityName Name
PostalCode bc PostalCode Postal Code
Country bc Country Venue: Ctry/Reg
CompanyContactPersonFullName bc CompanyContactPersonFullName Full Name
PhoneNumber bc PhoneNumber Telephone no.
FaxNumber bc FaxNumber Fax Number
EmailAddress bc EmailAddress E-Mail Address
WebsiteURL bc WebsiteURL URI

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_SAFTCustomer.
-- 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: CPTSAFTCUST
-- Parameters: P_StartDate : dats, P_EndDate : dats

CREATE VIEW C_PT_SAFTCustomer AS
SELECT
  a.CompanyCode AS CompanyCode,
  a.PortugueseCustomerWithVersion AS PortugueseCustomerWithVersion,
  cast(a.CustomerVATRegistration as stceg) AS CustomerVATRegistration,
  cast(a.CompanyName as bu_name1tx) AS CompanyName,
  a.StreetName AS StreetName,
  a.CityName AS CityName,
  a.PostalCode AS PostalCode,
  a.Country AS Country,
  cast(' ' as ad_namtext) AS CompanyContactPersonFullName,
  coalesce( a.PhoneNumber , '') AS PhoneNumber,
  cast (coalesce( a.FaxNumber , '') as telfx) AS FaxNumber,
  coalesce( a.EmailAddress , '') AS EmailAddress,
  bc.WebsiteURL AS WebsiteURL
;