P_CO_DIANBusPartnerTaxNumber

DDL: P_CO_DIANBUSPARTNERTAXNUMBER Type: view CONSUMPTION Package: GLO_FIN_IS_CO_GEN

All Formats - Business Partner Tax Number

P_CO_DIANBusPartnerTaxNumber is a Consumption CDS View that provides data about "All Formats - Business Partner Tax Number" in SAP S/4HANA. It reads from 2 data sources (I_BusinessPartner, I_Businesspartnertaxnumber) and exposes 4 fields with key fields BusinessPartner, BPTaxLongNumberendasBPTaxNumber. Part of development package GLO_FIN_IS_CO_GEN.

Data Sources (2)

SourceAliasJoin Type
I_BusinessPartner BusinessPartner inner
I_Businesspartnertaxnumber BusinessPartnerTaxNumber from

Annotations (12)

NameValueLevelField
AbapCatalog.buffering.status #NOT_ALLOWED view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName PCODIANBPTXNMBR view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #P view
ObjectModel.usageType.sizeCategory #XXL view
VDM.private true view
VDM.viewType #CONSUMPTION view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY BusinessPartner I_Businesspartnertaxnumber BusinessPartner Issuing Authority
KEY BPTaxLongNumberendasBPTaxNumber
Supplier
Customer

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 P_CO_DIANBusPartnerTaxNumber.
-- 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 P_CO_DIANBusPartnerTaxNumber AS
SELECT
  BusinessPartnerTaxNumber.BusinessPartner AS BusinessPartner,
  case when ( BusinessPartnerTaxNumber.BPTaxNumber is not null and BusinessPartnerTaxNumber.BPTaxNumber <> '' ) then BusinessPartnerTaxNumber.BPTaxNumber else BusinessPartnerTaxNumber.BPTaxLongNumber end as BPTaxNumber AS BPTaxLongNumberendasBPTaxNumber,
  min(SupplierToBusinessPartner.Supplier) AS Supplier,
  min(CustomerToBusinessPartner.Customer) AS Customer
FROM I_Businesspartnertaxnumber AS BusinessPartnerTaxNumber
INNER JOIN I_BusinessPartner AS BusinessPartner ON /* join condition not captured in parsed metadata */
;