P_SA_CompanyCode_Address
KSA VAT Company Code Address
P_SA_CompanyCode_Address is a Composite CDS View that provides data about "KSA VAT Company Code Address" in SAP S/4HANA. It reads from 3 data sources (I_CompanyCode, I_CountryText, I_OrganizationAddress) and exposes 12 fields with key field CompanyCode. Part of development package GLO_FIN_IS_VAT_SA.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_CompanyCode | I_CompanyCode | from |
| I_CountryText | I_CountryText | inner |
| I_OrganizationAddress | I_OrganizationAddress | inner |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PSACOMPCODEADDRS | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view |
Fields (12)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | CompanyCode | ||
| CompanyCodeName | CompanyCodeName | |||
| VATRegistration | VATRegistration | |||
| HouseNumber | I_OrganizationAddress | HouseNumber | ||
| StreetName | I_OrganizationAddress | StreetName | ||
| CityName | I_OrganizationAddress | CityName | ||
| POBox | I_OrganizationAddress | POBox | ||
| Country | I_OrganizationAddress | Country | ||
| EmailAddress | ||||
| PhoneNumber | ||||
| CompanyName | ||||
| CountryName1asCompanyCodeAddress |
@AbapCatalog.sqlViewName: 'PSACOMPCODEADDRS'
@VDM.viewType: #COMPOSITE
@VDM.private: true
@AccessControl.authorizationCheck:#NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.sizeCategory: #S
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.dataClass:#CUSTOMIZING
@AccessControl.personalData.blocking: #NOT_REQUIRED
define view P_SA_CompanyCode_Address as select from I_CompanyCode
inner join I_OrganizationAddress on I_OrganizationAddress.AddressID = I_CompanyCode.AddressID
and I_OrganizationAddress.AddressPersonID is initial
and I_OrganizationAddress.AddressRepresentationCode is initial
inner join I_CountryText on I_CountryText.Country = 'SA'
and I_CountryText.Language = $session.system_language
{
@ObjectModel.text.element: 'CompanyCodeName'
key CompanyCode,
@Semantics.text
CompanyCodeName,
VATRegistration,
I_OrganizationAddress.HouseNumber,
I_OrganizationAddress.StreetName,
I_OrganizationAddress.CityName,
I_OrganizationAddress.POBox,
I_OrganizationAddress.Country,
I_OrganizationAddress._EmailAddress[EmailAddressIsCurrentDefault = 'X'].EmailAddress,
I_OrganizationAddress._PhoneNumber[PhoneNumberType = '1'].PhoneAreaCodeSubscriberNumber as PhoneNumber,
concat_with_space(concat(CompanyCode,'-'), CompanyCodeName , 1) as CompanyName,
concat_with_space(concat_with_space( (concat_with_space(concat(I_OrganizationAddress.HouseNumber, ','),concat(I_OrganizationAddress.StreetName, ','),1)),
(concat_with_space(concat(I_OrganizationAddress.CityName, ','), concat(I_OrganizationAddress.POBox, ','),1)), 1),
I_CountryText.CountryName,1) as CompanyCodeAddress
}
where I_OrganizationAddress.CorrespondenceLanguage = $session.system_language
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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