C_BG_SAFTBusPartEUTaxNumber
BP EU VAT Number for BG SAFT
C_BG_SAFTBusPartEUTaxNumber is a Consumption CDS View that provides data about "BP EU VAT Number for BG SAFT" in SAP S/4HANA. It reads from 2 data sources (I_Country, I_Businesspartnertaxnumber) and exposes 3 fields with key fields BusinessPartner, BPTaxType. Part of development package GLO_FIN_IS_SAFT_BG.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_Country | Country | from |
| I_Businesspartnertaxnumber | TaxNumber | inner |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | BP EU VAT Number for BG SAFT | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_INCLUDED | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (3)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BusinessPartner | I_Businesspartnertaxnumber | BusinessPartner | |
| KEY | BPTaxType | I_Businesspartnertaxnumber | BPTaxType | |
| BPTaxNumber |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@VDM.viewType: #CONSUMPTION
@AccessControl.authorizationCheck: #MANDATORY
@EndUserText.label: 'BP EU VAT Number for BG SAFT'
@Metadata.ignorePropagatedAnnotations: true
@AccessControl.personalData.blocking: #BLOCKED_DATA_INCLUDED
@ObjectModel.usageType:{
serviceQuality: #X,
sizeCategory: #S,
dataClass: #MIXED
}
define view entity C_BG_SAFTBusPartEUTaxNumber
as select from I_Country as Country
inner join I_Businesspartnertaxnumber as TaxNumber on TaxNumber.BPTaxType = concat(
Country.CountryISOCode, '0'
)
{
key TaxNumber.BusinessPartner,
key TaxNumber.BPTaxType,
case when Country.CountryISOCode = 'BG' then replace(TaxNumber.BPTaxNumber, 'BG', '') else TaxNumber.BPTaxNumber end as BPTaxNumber
}
where
Country.IsEuropeanUnionMember = 'X'
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