I_CustomerCompany

DDL: I_CUSTOMERCOMPANY SQL: ICUSTCMPY Type: view BASIC

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

CategoryCDS Views for Business Partner
Data CategoryFact
StatusReleased
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

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessDatabase & Data Management
Application ComponentLO-MD-BP
CapabilitiesData Source in SQL Select, Data Source for Defining CDS Entities, Analytical Dimension, Association Target for Defining CDS Entities, Data Source for Data Extraction
PackageDatabase & Data Management for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view retrieves company code data of customers.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
knb1 knb1 from

Associations (8)

CardinalityTargetAliasCondition
[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)

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

KeyFieldSource TableSource FieldDescription
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]
;