C_PL_SAFTCompany

DDL: C_PL_SAFTCOMPANY SQL: CPLSAFTCOMPANY Type: view CONSUMPTION Package: GLO_FIN_IS_SAFT_PL

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)

SourceAliasJoin Type
I_CompanyCode I_CompanyCode from
I_PL_SAFTGeneralSettings I_PL_SAFTGeneralSettings inner

Annotations (11)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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 */
;