C_PL_SAFTCompany
SAFT PL Company
C_PL_SAFTCompany is a Consumption CDS View that provides data about "SAFT PL Company" in SAP S/4HANA. It reads from 2 data sources (I_CompanyCode, I_PL_SAFTGeneralSettings) and exposes 19 fields with key fields CompanyCode, ValidityEndDate. Part of development package GLO_FIN_IS_SAFT_PL.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_CompanyCode | I_CompanyCode | from |
| I_PL_SAFTGeneralSettings | I_PL_SAFTGeneralSettings | inner |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CPLSAFTCOMPANY | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | SAFT PL Company | view |
Fields (19)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_PL_SAFTGeneralSettings | CompanyCode | Receiver Company Code |
| KEY | ValidityEndDate | I_PL_SAFTGeneralSettings | ValidityEndDate | ValidTo |
| ValidityStartDate | I_PL_SAFTGeneralSettings | ValidityStartDate | Validity Start Date | |
| EmailAddress | I_PL_SAFTGeneralSettings | EmailAddress | E-Mail Address | |
| PL_OfficialEntityRegistration | I_PL_SAFTGeneralSettings | PL_OfficialEntityRegistration | REGON | |
| PL_CompanyDistrictName | I_PL_SAFTGeneralSettings | PL_CompanyDistrictName | District Court | |
| PL_CompanySubDistrictName | I_PL_SAFTGeneralSettings | PL_CompanySubDistrictName | Sub District | |
| PL_TaxOfficeCode | I_PL_SAFTGeneralSettings | PL_TaxOfficeCode | Tax Office Code | |
| BusinessPartnerName41asCompanyName | ||||
| CityName | ||||
| PostalCode | ||||
| StreetName | ||||
| HouseNumber | ||||
| HouseNumberSupplementText | ||||
| HomeCityNameendasHomeCityName | ||||
| RegionNameendendasRegion | ||||
| CompanyVATRegistration | ||||
| CompanyCodeCurrency | I_CompanyCode | Currency | Valuation Crcy | |
| _Currency | _Currency |
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_PL_SAFTCompany.
-- 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: CPLSAFTCOMPANY
CREATE VIEW C_PL_SAFTCompany AS
SELECT
I_PL_SAFTGeneralSettings.CompanyCode AS CompanyCode,
I_PL_SAFTGeneralSettings.ValidityEndDate AS ValidityEndDate,
I_PL_SAFTGeneralSettings.ValidityStartDate AS ValidityStartDate,
I_PL_SAFTGeneralSettings.EmailAddress AS EmailAddress,
I_PL_SAFTGeneralSettings.PL_OfficialEntityRegistration AS PL_OfficialEntityRegistration,
I_PL_SAFTGeneralSettings.PL_CompanyDistrictName AS PL_CompanyDistrictName,
I_PL_SAFTGeneralSettings.PL_CompanySubDistrictName AS PL_CompanySubDistrictName,
I_PL_SAFTGeneralSettings.PL_TaxOfficeCode AS PL_TaxOfficeCode,
concat_with_space( concat_with_space( concat_with_space( I_CompanyCode._Address.BusinessPartnerName1, I_CompanyCode._Address.BusinessPartnerName2, 1), I_CompanyCode._Address.BusinessPartnerName3, 1), I_CompanyCode._Address.BusinessPartnerName4, 1) as CompanyName AS BusinessPartnerName41asCompanyName,
I_CompanyCode._Address.CityName AS CityName,
I_CompanyCode._Address.PostalCode AS PostalCode,
I_CompanyCode._Address.StreetName AS StreetName,
I_CompanyCode._Address.HouseNumber AS HouseNumber,
I_CompanyCode._Address.HouseNumberSupplementText AS HouseNumberSupplementText,
case when I_CompanyCode._Address.HomeCityName is initial then I_CompanyCode._Address.CityName else I_CompanyCode._Address.HomeCityName end as HomeCityName AS HomeCityNameendasHomeCityName,
case when I_CompanyCode._Address.Region is initial then 'Nie dotyczy' else case when I_CompanyCode._Address._Region._RegionText[1: Language = 'L'].RegionName is not initial then I_CompanyCode._Address._Region._RegionText[1: Language = 'L'].RegionName when I_CompanyCode._Address._Region._RegionText[1: Language = 'L'].RegionName is initial then I_CompanyCode._Address._Region._RegionText[1: Language = $session.system_language].RegionName else I_CompanyCode._Address._Region._RegionText[1: Language = 'E'].RegionName end end as Region AS RegionNameendendasRegion,
replace(I_CompanyCode.VATRegistration,I_CompanyCode.Country,'') AS CompanyVATRegistration,
I_CompanyCode.Currency AS CompanyCodeCurrency
FROM I_CompanyCode
INNER JOIN I_PL_SAFTGeneralSettings ON /* join condition not captured in parsed metadata */
;
Learn More
- 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
- S/4HANA CDS View Deprecation: What You Need to Know
- 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