P_BG_SAFTCUSTOMERID

DDL: P_BG_SAFTCUSTOMERID Type: view_entity CONSUMPTION

P_BG_SAFTCUSTOMERID is a Consumption CDS View in SAP S/4HANA. It reads from 3 data sources (I_BusinessPartner, I_Businesspartnertaxnumber, I_Customer_to_BusinessPartner) and exposes 2 fields with key field Customer.

Data Sources (3)

SourceAliasJoin Type
I_BusinessPartner BP inner
I_Businesspartnertaxnumber BPVAT from
I_Customer_to_BusinessPartner Cus inner

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view
VDM.private true view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.dataClass #MASTER view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY Customer I_Customer_to_BusinessPartner Customer Sold-to Party
BPTaxLongNumber I_Businesspartnertaxnumber BPTaxLongNumber Tax Number Long

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_BG_SAFTCUSTOMERID.
-- 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_BG_SAFTCUSTOMERID AS
SELECT
  Cus.Customer AS Customer,
  BPVAT.BPTaxLongNumber AS BPTaxLongNumber
FROM I_Businesspartnertaxnumber AS BPVAT
INNER JOIN I_BusinessPartner AS BP ON /* join condition not captured in parsed metadata */
INNER JOIN I_Customer_to_BusinessPartner AS Cus ON /* join condition not captured in parsed metadata */
;