C_PT_SAFTIntegratedCustomer
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)
| Source | Alias | Join Type |
|---|---|---|
| C_PT_SAFTCustomer | C_PT_SAFTCustomer | union |
| C_PT_SAFTGenLedgerCustomer | C_PT_SAFTGenLedgerCustomer | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_StartDate | dats | |
| P_EndDate | dats |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
;
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