C_PT_SAFTCustomer
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)
| Name | Type | Default |
|---|---|---|
| P_StartDate | dats | |
| P_EndDate | dats |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
;
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