C_BG_SAFTBusPartEUTaxNumber

DDL: C_BG_SAFTBUSPARTEUTAXNUMBER Type: view_entity CONSUMPTION

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.

Data Sources (2)

SourceAliasJoin Type
I_Country Country from
I_Businesspartnertaxnumber TaxNumber inner

Annotations (8)

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

KeyFieldSource TableSource FieldDescription
KEY BusinessPartner I_Businesspartnertaxnumber BusinessPartner Issuing Authority
KEY BPTaxType I_Businesspartnertaxnumber BPTaxType Category
BPTaxNumber

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_BG_SAFTBusPartEUTaxNumber.
-- 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.

CREATE VIEW C_BG_SAFTBusPartEUTaxNumber AS
SELECT
  TaxNumber.BusinessPartner AS BusinessPartner,
  TaxNumber.BPTaxType AS BPTaxType,
  case when Country.CountryISOCode = 'BG' then replace(TaxNumber.BPTaxNumber, 'BG', '') else TaxNumber.BPTaxNumber end AS BPTaxNumber
FROM I_Country AS Country
INNER JOIN I_Businesspartnertaxnumber AS TaxNumber ON /* join condition not captured in parsed metadata */
;