I_CustomerCompany
Customer Company
I_CustomerCompany (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
CustomerCompanyCode · Database & Data Management
I_CustomerCompany is a Basic CDS View (Dimension) that provides data about "Customer Company" in SAP S/4HANA. It reads from 1 data source (knb1) and exposes 76 fields with key fields Customer, CompanyCode. It has 8 associations to related views.
SAP Help Documentation
| Category | CDS Views for Business Partner |
|---|---|
| Data Category | Fact |
| Status | Released |
Purpose
This CDS view retrieves company code data of customers.
Structure
Object types This view relates to the SAP object type Customer. Measures and attributes Some important measures and attributes are: Accounting Clerk Company Code Authorization Group Customer Head Office Alternative Payer Account
This CDS view retrieves company code data of customers.
Structure
Object types This view relates to the SAP object type Customer. Measures and attributes Some important measures and attributes are: Accounting Clerk Company Code Authorization Group Customer Head Office Alternative Payer Account
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, Analytical Dimension, Association Target for Defining CDS Entities, Data Source for Data Extraction |
| Package | Database & Data Management for SAP S/4HANA Cloud Private Edition |
| Description | <p>This CDS view retrieves company code data of customers.</p> |
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 (1)
| Source | Alias | Join Type |
|---|---|---|
| knb1 | knb1 | from |
Associations (8)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Customer | _Customer | $projection.Customer = _Customer.Customer |
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..*] | I_CustomerDunning | _CustomerDunning | $projection.Customer = _CustomerDunning.Customer and $projection.CompanyCode = _CustomerDunning.CompanyCode |
| [0..1] | I_CustomerDunning | _CustomerDefaultDunning | $projection.Customer = _CustomerDefaultDunning.Customer and $projection.CompanyCode = _CustomerDefaultDunning.CompanyCode and _CustomerDefaultDunning.DunningArea = '' |
| [0..1] | I_PaymentBlockingReason | _PaymentBlockValueHelp | $projection.PaymentBlockingReason = _PaymentBlockValueHelp.PaymentBlockingReason |
| [0..*] | I_PaymentBlockingReasonText | _PaymentBlockingReasonText | $projection.PaymentBlockingReason = _PaymentBlockingReasonText.PaymentBlockingReason |
| [0..1] | I_CashPlanningGroup | _CashPlanningGroup | $projection.CashPlanningGroup = _CashPlanningGroup.CashPlanningGroup |
| [0..1] | E_CUSCO_D | _CustCoExt | $projection.CompanyCode = _CustCoExt.CompanyCode and $projection.Customer = _CustCoExt.Customer |
Annotations (17)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Customer Company | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.dataExtraction.enabled | true | view | |
| VDM.viewType | #BASIC | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AbapCatalog.sqlViewName | ICUSTCMPY | view | |
| ObjectModel.modelingPattern | #NONE | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.sapObjectNodeType.name | CustomerCompanyCode | view | |
| ObjectModel.representativeKey | CompanyCode | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| AbapCatalog.preserveKey | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Metadata.allowExtensions | true | view |
Fields (76)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Customer | kunnr | Customer Number | |
| KEY | CompanyCode | bukrs | Company Code | |
| AccountingClerk | busab | Accounting Clerk Abbreviation | ||
| ReconciliationAccount | akont | Reconciliation Account in General Ledger | ||
| AuthorizationGroup | begru | Authorization Group | ||
| CustomerHeadOffice | knrze | Head Office Account Number (in branch accounts) | ||
| AlternativePayerAccount | knrzb | Account number of an alternative payer | ||
| PaymentBlockingReason | zahls | Block Key for Payment | ||
| InterestCalculationCode | vzskz | Interest Indicator | ||
| InterestCalculationDate | zindt | Key Date of Last Interest Calculation | ||
| IntrstCalcFrequencyInMonths | zinrt | Interest Calculation Frequency in Months | ||
| CustomerAccountNote | kverm | Account Memo | ||
| APARToleranceGroup | togru | Tolerance Group for Business Partner/G/L Account | ||
| HouseBank | hbkid | Short Key for a House Bank | ||
| ItemIsToBePaidSeparately | xpore | Indicator: Pay All Items Separately? | ||
| PaytAdviceIsSentbyEDI | xedip | Indicator: Send Payment Advices by EDI | ||
| PhysicalInventoryBlockInd | sperr | Posting block for company code | ||
| UserAtCustomer | zsabe | User at customer | ||
| AccountingClerkPhoneNumber | tlfns | Accounting clerk's telephone number at business partner | ||
| AccountingClerkFaxNumber | tlfxs | Accounting clerk's fax number at the customer/vendor | ||
| AccountingClerkInternetAddress | intad | Internet address of partner company clerk | ||
| AccountByCustomer | eikto | Our account number at customer | ||
| IsToBeLocallyProcessed | xdezv | Indicator: Local Processing? | ||
| CollectiveInvoiceVariant | perkz | Collective Invoice Variant | ||
| LayoutSortingRule | zuawa | Key for sorting according to assignment numbers | ||
| PaymentTerms | zterm | Terms of Payment Key | ||
| CustomerSupplierClearingIsUsed | xverr | Indicator: Clearing between customer and vendor ? | ||
| RecordPaymentHistoryIndicator | xzver | Indicator: Record Payment History ? | ||
| PaymentMethodsList | zwels | List of Respected Payment Methods | ||
| DeletionIndicator | loevm | Deletion Flag for Master Record (Company Code Level) | ||
| CreditMemoPaymentTerms | guzte | Payment Terms Key for Credit Memos | ||
| DunningNoticeGroup | mgrup | Key for Dunning Notice Grouping | ||
| LastInterestCalcRunDate | datlz | Date of Last Interest Calculation Run | ||
| CustPreviousMasterRecordNumber | altkn | Previous Master Record Number | ||
| ValueAdjustmentKey | wbrsl | Value Adjustment Key | ||
| CashPlanningGroup | fdgrv | Planning Group | ||
| SupplierReleaseGroup | frgrp | Release Approval Group | ||
| PersonnelNumber | pernr | Personnel Number | ||
| BuyingGroupAccountNumber | ekvbd | Account Number of Buying Group | ||
| BillExchChargePaymentTerms | wakon | Terms of Payment Key for Bill of Exchange Charges | ||
| CheckPaidDurationInDays | kultg | Probable Time Until Check Is Paid | ||
| CustomerPaymentBlockingReason | zahls | Block Key for Payment | ||
| PaymentMethodSupplement | uzawe | Payment method supplement | ||
| AcctsReceivablePledgingCode | cession_kz | Accounts Receivable Pledging Indicator | ||
| LockboxInternalID | lockb | Key of the Lockbox to Which the Customer Is to Pay | ||
| IsBusinessPurposeCompleted | cvp_xblck_b | Business Purpose Completed Flag | ||
| WithholdingTaxCountry | qland | Withholding Tax Country/Region Key | ||
| KnownOrNegotiatedLeave | urlid | Short Key for Known/Negotiated Leave | ||
| DeletionIsBlocked | nodel | Deletion Block for Master Record (Company Code Level) | ||
| PaymentClearingGroup | paymentclearinggrpid | Payment Clearing Group ID | ||
| PaymentReason | paytrsn | Payment Reason | ||
| BPPeriodicAccountStatement | xausz | Indicator for Periodic Account Statements | ||
| US_FrgnAcctTaxRcpntCntry | us_rec_country | Country/Region Key | ||
| US_GlobIntermediaryIdnNumber | us_giin | US Recipient GIIN | ||
| US_RecipientForeignTaxID | us_ftid | US Recipient Foreign Tax ID | ||
| US_LobTreatyCode | us_lob_code | LOB Treaty Code | ||
| US_FW8BENReceiveDate | us_w8_recvdate | US W8 Form Received Date | ||
| US_FW9ReceiveDate | us_w9_recvdate | US W8 Form Received Date | ||
| US_SecondTINNoticeIsIssued | us_tin_notice | Second TIN Notice from IRS | ||
| US_FrgnRecipientHasPartnership | us_partnership_ind | Partnership Interest Indicator | ||
| US_FrgnAcctTaxFilingIsRequired | us_fatca_ind | US FATCA Indicator | ||
| US_Chapter4StatusCode | us_chap4_status_code | US Chapter 4 Status Code | ||
| LastDunnedOn | _CustomerDefaultDunning | LastDunnedOn | Date of Last Dunning Notice | |
| DunningProcedure | _CustomerDefaultDunning | DunningProcedure | Dunning Procedure | |
| DunningLevel | _CustomerDefaultDunning | DunningLevel | Dunning Level | |
| DunningBlock | _CustomerDefaultDunning | DunningBlock | Dunning Block | |
| DunningRecipient | _CustomerDefaultDunning | DunningRecipient | Account Number of the Dunning Recipient | |
| LegDunningProcedureOn | _CustomerDefaultDunning | LegDunningProcedureOn | Date of the Legal Dunning Proceedings | |
| IsActiveEntity | Draft - Indicator - Is active document | |||
| _Customer | _Customer | |||
| _CompanyCode | _CompanyCode | |||
| _CustomerDunning | _CustomerDunning | |||
| _CustomerDefaultDunning | _CustomerDefaultDunning | |||
| _PaymentBlockValueHelp | _PaymentBlockValueHelp | |||
| _PaymentBlockingReasonText | _PaymentBlockingReasonText | |||
| _CashPlanningGroup | _CashPlanningGroup |
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_CustomerCompany.
-- 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.
-- SQL view name: ICUSTCMPY
CREATE VIEW I_CustomerCompany AS
SELECT
kunnr AS Customer,
bukrs AS CompanyCode,
busab AS AccountingClerk,
akont AS ReconciliationAccount,
begru AS AuthorizationGroup,
knrze AS CustomerHeadOffice,
knrzb AS AlternativePayerAccount,
zahls AS PaymentBlockingReason,
vzskz AS InterestCalculationCode,
zindt AS InterestCalculationDate,
zinrt AS IntrstCalcFrequencyInMonths,
kverm AS CustomerAccountNote,
togru AS APARToleranceGroup,
hbkid AS HouseBank,
xpore AS ItemIsToBePaidSeparately,
xedip AS PaytAdviceIsSentbyEDI,
sperr AS PhysicalInventoryBlockInd,
zsabe AS UserAtCustomer,
tlfns AS AccountingClerkPhoneNumber,
tlfxs AS AccountingClerkFaxNumber,
intad AS AccountingClerkInternetAddress,
eikto AS AccountByCustomer,
xdezv AS IsToBeLocallyProcessed,
perkz AS CollectiveInvoiceVariant,
zuawa AS LayoutSortingRule,
zterm AS PaymentTerms,
xverr AS CustomerSupplierClearingIsUsed,
xzver AS RecordPaymentHistoryIndicator,
zwels AS PaymentMethodsList,
loevm AS DeletionIndicator,
guzte AS CreditMemoPaymentTerms,
mgrup AS DunningNoticeGroup,
datlz AS LastInterestCalcRunDate,
altkn AS CustPreviousMasterRecordNumber,
wbrsl AS ValueAdjustmentKey,
fdgrv AS CashPlanningGroup,
frgrp AS SupplierReleaseGroup,
pernr AS PersonnelNumber,
ekvbd AS BuyingGroupAccountNumber,
wakon AS BillExchChargePaymentTerms,
kultg AS CheckPaidDurationInDays,
zahls AS CustomerPaymentBlockingReason,
uzawe AS PaymentMethodSupplement,
cession_kz AS AcctsReceivablePledgingCode,
lockb AS LockboxInternalID,
cvp_xblck_b AS IsBusinessPurposeCompleted,
qland AS WithholdingTaxCountry,
urlid AS KnownOrNegotiatedLeave,
nodel AS DeletionIsBlocked,
paymentclearinggrpid AS PaymentClearingGroup,
paytrsn AS PaymentReason,
xausz AS BPPeriodicAccountStatement,
us_rec_country AS US_FrgnAcctTaxRcpntCntry,
us_giin AS US_GlobIntermediaryIdnNumber,
us_ftid AS US_RecipientForeignTaxID,
us_lob_code AS US_LobTreatyCode,
us_w8_recvdate AS US_FW8BENReceiveDate,
us_w9_recvdate AS US_FW9ReceiveDate,
us_tin_notice AS US_SecondTINNoticeIsIssued,
us_partnership_ind AS US_FrgnRecipientHasPartnership,
us_fatca_ind AS US_FrgnAcctTaxFilingIsRequired,
us_chap4_status_code AS US_Chapter4StatusCode,
_CustomerDefaultDunning.LastDunnedOn AS LastDunnedOn,
_CustomerDefaultDunning.DunningProcedure AS DunningProcedure,
_CustomerDefaultDunning.DunningLevel AS DunningLevel,
_CustomerDefaultDunning.DunningBlock AS DunningBlock,
_CustomerDefaultDunning.DunningRecipient AS DunningRecipient,
_CustomerDefaultDunning.LegDunningProcedureOn AS LegDunningProcedureOn,
cast( 'X' as sdraft_is_active preserving type ) AS IsActiveEntity
FROM knb1
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_CustomerDunning AS _CustomerDunning ON Customer = _CustomerDunning.Customer AND CompanyCode = _CustomerDunning.CompanyCode -- association [0..*]
LEFT OUTER JOIN I_CustomerDunning AS _CustomerDefaultDunning ON Customer = _CustomerDefaultDunning.Customer AND CompanyCode = _CustomerDefaultDunning.CompanyCode AND _CustomerDefaultDunning.DunningArea = '' -- association [0..1]
LEFT OUTER JOIN I_PaymentBlockingReason AS _PaymentBlockValueHelp ON PaymentBlockingReason = _PaymentBlockValueHelp.PaymentBlockingReason -- association [0..1]
LEFT OUTER JOIN I_PaymentBlockingReasonText AS _PaymentBlockingReasonText ON PaymentBlockingReason = _PaymentBlockingReasonText.PaymentBlockingReason -- association [0..*]
LEFT OUTER JOIN I_CashPlanningGroup AS _CashPlanningGroup ON CashPlanningGroup = _CashPlanningGroup.CashPlanningGroup -- association [0..1]
LEFT OUTER JOIN E_CUSCO_D AS _CustCoExt ON CompanyCode = _CustCoExt.CompanyCode AND Customer = _CustCoExt.Customer -- association [0..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