I_BusinessPartnerCustomerDEX
Data Extraction for BP Customer
I_BusinessPartnerCustomerDEX (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Customer · Database & Data Management
I_BusinessPartnerCustomerDEX is a Basic CDS View (Dimension) that provides data about "Data Extraction for BP Customer" in SAP S/4HANA. It reads from 2 data sources (cvi_cust_link, kna1) and exposes 88 fields with key field BusinessPartner. It has 1 association to related views.
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Database & Data Management |
| Application Component | LO-MD-BP |
| Capabilities | Data Source in SQL Select, Data Source for Defining CDS Entities, Association Target for Defining CDS Entities, Data Source for Data Extraction, Analytical Dimension |
| Package | Database & Data Management for SAP S/4HANA Cloud Private Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| cvi_cust_link | cvi_cust_link | inner |
| kna1 | kna1 | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Customer_to_BusinessPartner | _CustomerToBusinessPartner | $projection.Customer = _CustomerToBusinessPartner.Customer |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| Analytics.technicalName | IBUPACUSTOMERDEX | view | |
| Analytics.internalName | #LOCAL | view | |
| VDM.viewType | #BASIC | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| EndUserText.label | Data Extraction for BP Customer | view | |
| ObjectModel.representativeKey | BusinessPartner | view | |
| ObjectModel.sapObjectNodeType.name | Customer | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.dataExtraction.enabled | true | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (88)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BusinessPartner | but000 | partner | Business Partner Number |
| Customer | kna1 | kunnr | Customer Number | |
| BusinessPartnerUUID | cvi_cust_link | partner_guid | Business Partner GUID | |
| CustomerAccountGroup | kna1 | ktokd | Customer Account Group | |
| AlternativePayerAccount | kna1 | knrza | Account Number of an Alternative Payer | |
| DataMediumExchangeIndicator | kna1 | dtams | Recipient Code for Data Medium Exchange | |
| Supplier | kna1 | lifnr | Account Number of Supplier | |
| CustomerClassification | kna1 | kukla | Customer Classification | |
| VATLiability | kna1 | stkzu | Liable for VAT | |
| PostingIsBlocked | kna1 | sperr | Central posting block | |
| DeliveryIsBlocked | kna1 | lifsd | Central delivery block for the customer | |
| BillingIsBlockedForCustomer | kna1 | faksd | Central billing block for customer | |
| OrderIsBlockedForCustomer | kna1 | aufsd | Central order block for customer | |
| IsNaturalPerson | kna1 | stkzn | Natural person | |
| BusinessPartnerGrouping | but000 | bu_group | Business Partner Grouping | |
| AuthorizationGroup | kna1 | begru | Authorization Group | |
| DeliveryDateTypeRule | kna1 | delivery_date_rule | Delivery Date Rule | |
| IsActiveEntity | Draft - Indicator - Is active document | |||
| ExpressTrainStationName | kna1 | bahne | Express train station | |
| TrainStationName | kna1 | bahns | Train station | |
| CityLocationCoordinatesCode | kna1 | locco | City Coordinates | |
| Plant | kna1 | werks | Receiving Plant | |
| CustomerCorporateGroup | kna1 | konzs | Group key | |
| DataExchangeInstructionKey | kna1 | dtaws | Instruction Key for Data Medium Exchange | |
| IndustryCode1 | kna1 | bran1 | Industry code 1 | |
| IndustryCode2 | kna1 | bran2 | Industry code 2 | |
| IndustryCode3 | kna1 | bran3 | Industry code 3 | |
| IsCompetitor | kna1 | dear1 | Indicator: Competitor | |
| IsSalesPartner | kna1 | dear2 | Indicator: Sales partner | |
| IsDefaultSoldToParty | kna1 | dear5 | ID for default sold-to party | |
| IsConsumer | kna1 | dear6 | Indicator: Consumer | |
| FiscalAddress | kna1 | fiskn | Account number of the master record with the fiscal address | |
| FreeDefinedAttribute03 | kna1 | katr3 | Attribute 3 | |
| CustomerConditionGroup1 | kna1 | kdkg1 | Customer condition group 1 | |
| CustomerConditionGroup2 | kna1 | kdkg2 | Customer condition group 2 | |
| CustomerConditionGroup3 | kna1 | kdkg3 | Customer condition group 3 | |
| CustomerConditionGroup4 | kna1 | kdkg4 | Customer condition group 4 | |
| CustomerConditionGroup5 | kna1 | kdkg5 | Customer condition group 5 | |
| AddressID | kna1 | adrnr | Sold-To Address | |
| InternationalLocationNumber1 | kna1 | bbbnr | International location number (part 1) | |
| InternationalLocationNumber2 | kna1 | bbsnr | International location number (Part 2) | |
| InternationalLocationNumber3 | kna1 | bubkz | Check digit for the international location number | |
| CityCode | kna1 | cityc | City Code | |
| County | kna1 | counc | County Code | |
| CustomerHasUnloadingPoint | kna1 | exabl | Indicator: Unloading points exist | |
| CustomerWorkingTimeCalendar | kna1 | knazk | Working Time Calendar | |
| IsBusinessPurposeCompleted | kna1 | cvp_xblck | Business Purpose Completed Flag | |
| BPIsEqualizationTaxSubject | Checkbox | |||
| Country | kna1 | land1 | Country/Region Key | |
| Region | kna1 | regio | Region (State, Province, County) | |
| DeletionIndicator | kna1 | loevm | Central Deletion Flag for Master Record | |
| Language | kna1 | spras | Off. Language | |
| SalesIsBlockedForCustomer | Central sales block for customer | |||
| PaymentReason | kna1 | paytrsn | Payment Reason | |
| CustomerCentralDeletionIsBlock | kna1 | nodel | Central deletion block for master record | |
| AlternativePayerIsAllowed | kna1 | xzemp | Indicator: Is an alternative payer allowed in document? | |
| BPPlannedAnnualSalesYear | kna1 | umjah | Year For Which Sales are Given | |
| BPPlannedAnnualSalesCurrency | kna1 | uwaer | Currency of sales figure | |
| BPPlannedAnnualSalesAmount | kna1 | umsat | Annual sales | |
| CustomerTradingPartnerID | kna1 | vbund | Company ID of Trading Partner | |
| FiscalYearVariant | kna1 | periv | Fiscal Year Variant | |
| AccountTaxType | kna1 | stcdt | Tax number type | |
| IndustryCode4 | kna1 | bran4 | Industry code 4 | |
| IndustryCode5 | kna1 | bran5 | Industry code 5 | |
| TaxInvoiceRepresentativeName | kna1 | j_1kfrepre | Name of Representative | |
| BusinessType | kna1 | j_1kftbus | Type of Business | |
| IndustryType | kna1 | j_1kftind | Type of Industry | |
| FreeDefinedAttribute01 | kna1 | katr1 | Attribute 1 | |
| FreeDefinedAttribute02 | kna1 | katr2 | Attribute 2 | |
| FreeDefinedAttribute04 | kna1 | katr4 | Attribute 4 | |
| FreeDefinedAttribute05 | kna1 | katr5 | Attribute 5 | |
| FreeDefinedAttribute06 | kna1 | katr6 | Attribute 6 | |
| FreeDefinedAttribute07 | kna1 | katr7 | Attribute 7 | |
| FreeDefinedAttribute08 | kna1 | katr8 | Attribute 8 | |
| FreeDefinedAttribute09 | kna1 | katr9 | Attribute 9 | |
| FreeDefinedAttribute10 | kna1 | katr10 | Attribute 10 | |
| DataControllerSet | kna1 | xdcset | BP: Data Controller Set Flag | |
| DataController1 | kna1 | data_ctrlr1 | BP: Data Controller (Internal Use Only) | |
| DataController2 | kna1 | data_ctrlr2 | BP: Data Controller (Internal Use Only) | |
| DataController3 | kna1 | data_ctrlr3 | BP: Data Controller (Internal Use Only) | |
| DataController4 | kna1 | data_ctrlr4 | BP: Data Controller (Internal Use Only) | |
| DataController5 | kna1 | data_ctrlr5 | BP: Data Controller (Internal Use Only) | |
| DataController6 | kna1 | data_ctrlr6 | BP: Data Controller (Internal Use Only) | |
| DataController7 | kna1 | data_ctrlr7 | BP: Data Controller (Internal Use Only) | |
| DataController8 | kna1 | data_ctrlr8 | BP: Data Controller (Internal Use Only) | |
| DataController9 | kna1 | data_ctrlr9 | BP: Data Controller (Internal Use Only) | |
| DataController10 | kna1 | data_ctrlr10 | BP: Data Controller (Internal Use Only) | |
| _CustomerToBusinessPartner | _CustomerToBusinessPartner |
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 I_BusinessPartnerCustomerDEX.
-- 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 I_BusinessPartnerCustomerDEX AS
SELECT
but000.partner AS BusinessPartner,
kna1.kunnr AS Customer,
cvi_cust_link.partner_guid AS BusinessPartnerUUID,
kna1.ktokd AS CustomerAccountGroup,
kna1.knrza AS AlternativePayerAccount,
kna1.dtams AS DataMediumExchangeIndicator,
kna1.lifnr AS Supplier,
kna1.kukla AS CustomerClassification,
kna1.stkzu AS VATLiability,
kna1.sperr AS PostingIsBlocked,
kna1.lifsd AS DeliveryIsBlocked,
kna1.faksd AS BillingIsBlockedForCustomer,
kna1.aufsd AS OrderIsBlockedForCustomer,
kna1.stkzn AS IsNaturalPerson,
but000.bu_group AS BusinessPartnerGrouping,
kna1.begru AS AuthorizationGroup,
kna1.delivery_date_rule AS DeliveryDateTypeRule,
cast( 'X' as sdraft_is_active preserving type ) AS IsActiveEntity,
kna1.bahne AS ExpressTrainStationName,
kna1.bahns AS TrainStationName,
kna1.locco AS CityLocationCoordinatesCode,
kna1.werks AS Plant,
kna1.konzs AS CustomerCorporateGroup,
kna1.dtaws AS DataExchangeInstructionKey,
kna1.bran1 AS IndustryCode1,
kna1.bran2 AS IndustryCode2,
kna1.bran3 AS IndustryCode3,
kna1.dear1 AS IsCompetitor,
kna1.dear2 AS IsSalesPartner,
kna1.dear5 AS IsDefaultSoldToParty,
kna1.dear6 AS IsConsumer,
kna1.fiskn AS FiscalAddress,
kna1.katr3 AS FreeDefinedAttribute03,
kna1.kdkg1 AS CustomerConditionGroup1,
kna1.kdkg2 AS CustomerConditionGroup2,
kna1.kdkg3 AS CustomerConditionGroup3,
kna1.kdkg4 AS CustomerConditionGroup4,
kna1.kdkg5 AS CustomerConditionGroup5,
kna1.adrnr AS AddressID,
kna1.bbbnr AS InternationalLocationNumber1,
kna1.bbsnr AS InternationalLocationNumber2,
kna1.bubkz AS InternationalLocationNumber3,
kna1.cityc AS CityCode,
kna1.counc AS County,
kna1.exabl AS CustomerHasUnloadingPoint,
kna1.knazk AS CustomerWorkingTimeCalendar,
kna1.cvp_xblck AS IsBusinessPurposeCompleted,
cast (kna1.stkza as xfeld preserving type) AS BPIsEqualizationTaxSubject,
kna1.land1 AS Country,
kna1.regio AS Region,
kna1.loevm AS DeletionIndicator,
kna1.spras AS Language,
cast (kna1.cassd as abap.char(1)) AS SalesIsBlockedForCustomer,
kna1.paytrsn AS PaymentReason,
kna1.nodel AS CustomerCentralDeletionIsBlock,
kna1.xzemp AS AlternativePayerIsAllowed,
kna1.umjah AS BPPlannedAnnualSalesYear,
kna1.uwaer AS BPPlannedAnnualSalesCurrency,
kna1.umsat AS BPPlannedAnnualSalesAmount,
kna1.vbund AS CustomerTradingPartnerID,
kna1.periv AS FiscalYearVariant,
kna1.stcdt AS AccountTaxType,
kna1.bran4 AS IndustryCode4,
kna1.bran5 AS IndustryCode5,
kna1.j_1kfrepre AS TaxInvoiceRepresentativeName,
kna1.j_1kftbus AS BusinessType,
kna1.j_1kftind AS IndustryType,
kna1.katr1 AS FreeDefinedAttribute01,
kna1.katr2 AS FreeDefinedAttribute02,
kna1.katr4 AS FreeDefinedAttribute04,
kna1.katr5 AS FreeDefinedAttribute05,
kna1.katr6 AS FreeDefinedAttribute06,
kna1.katr7 AS FreeDefinedAttribute07,
kna1.katr8 AS FreeDefinedAttribute08,
kna1.katr9 AS FreeDefinedAttribute09,
kna1.katr10 AS FreeDefinedAttribute10,
kna1.xdcset AS DataControllerSet,
kna1.data_ctrlr1 AS DataController1,
kna1.data_ctrlr2 AS DataController2,
kna1.data_ctrlr3 AS DataController3,
kna1.data_ctrlr4 AS DataController4,
kna1.data_ctrlr5 AS DataController5,
kna1.data_ctrlr6 AS DataController6,
kna1.data_ctrlr7 AS DataController7,
kna1.data_ctrlr8 AS DataController8,
kna1.data_ctrlr9 AS DataController9,
kna1.data_ctrlr10 AS DataController10
FROM kna1
INNER JOIN cvi_cust_link ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Customer_to_BusinessPartner AS _CustomerToBusinessPartner ON Customer = _CustomerToBusinessPartner.Customer -- association [1..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA