P_PL_SAFTVATHeader
P_PL_SAFTVATHeader is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (I_CompanyCode) and exposes 10 fields with key field CompanyCode.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CompanyCode | Company | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_StartDate | datum | |
| P_EndDate | datum |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPLSAFTVATHDR | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #BASIC | view | |
| VDM.private | true | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #P | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (10)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_CompanyCode | CompanyCode | |
| BusinessPartnerName41asCompanyName | ||||
| HouseNumber1asCompanyCodeAddress | ||||
| PhoneNumber | ||||
| CompanyVATRegistration | ||||
| EmailAddress | ||||
| LocalTaxOffice | Settings | tax_office | ||
| CompanyCodeCurrency | I_CompanyCode | Currency | ||
| Country | I_CompanyCode | Country | ||
| _Currency | _Currency |
@AbapCatalog.sqlViewName: 'PPLSAFTVATHDR'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@VDM.viewType: #BASIC
@VDM.private: true
@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #P
@ClientHandling.algorithm: #SESSION_VARIABLE
define view P_PL_SAFTVATHeader
with parameters
P_StartDate : datum,
P_EndDate : datum
as select from I_CompanyCode as Company
left outer to one join snc_pl_bc as Settings on Settings.bukrs = Company.CompanyCode
and Settings.endda >= $parameters.P_StartDate
and Settings.begda <= $parameters.P_EndDate
{
key Company.CompanyCode,
concat_with_space( concat_with_space( concat_with_space(
Company._Address.BusinessPartnerName1,
Company._Address.BusinessPartnerName2, 1),
Company._Address.BusinessPartnerName3, 1),
Company._Address.BusinessPartnerName4, 1) as CompanyName,
concat_with_space(concat_with_space(concat_with_space(
Company._Address.CityName,
Company._Address.PostalCode, 1),
Company._Address.StreetName, 1),
Company._Address.HouseNumber, 1) as CompanyCodeAddress,
Company._Address.PhoneNumber as PhoneNumber,
replace(Company.VATRegistration, Company.Country,'') as CompanyVATRegistration,
cast(Settings.file_email as abap.sstring(241)) as EmailAddress,
Settings.tax_office as LocalTaxOffice,
Company.Currency as CompanyCodeCurrency,
Company.Country as Country,
_Currency
}
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