I_CUSTOMERCOMPANY

CDS View

Customer Company

I_CUSTOMERCOMPANY is a CDS View in S/4HANA. Customer Company. It contains 54 fields. 49 CDS views read from this table.

CDS Views using this table (49)

ViewTypeJoinVDMDescription
A_CustomerCompany view from BASIC Customer Company
C_CustomerCompanyCodeOP view from CONSUMPTION Customer Company Code Fact Sheet
C_Customersuppliercompanycode view left_outer CONSUMPTION Customer/Supplier/Company Code Information
C_Customersuppliercompanycode view inner CONSUMPTION Customer/Supplier/Company Code Information
C_GRC_CustCoCodeChangeLog view inner CONSUMPTION Customer company code change log
C_MDQltyCustCoCodeDetail view from CONSUMPTION Customer Company Code Rule Details
C_NoPaymentTermCustomer view from CONSUMPTION Customer with no payment terms defined
C_NoRecnclnAccountCustomer view from CONSUMPTION No Reconciliation Account Customer
C_NotInCoCodeCntryCustomer view from CONSUMPTION Customer not registered in CountryRegion
C_OutgInvoiceCustCompanyCodeVH view_entity from CONSUMPTION Customer
FAC_Audit_Z3_Customer_Bank view from Customer Bank Data
FAC_DART_Z3_Customer view from Customer Master Data
I_AlternativePayerVH view from BASIC Value Help for Alternative Payer
I_BPAddlCustCompanyCodeTP view from TRANSACTIONAL BO view for Company Code of Customers
I_BPCustomerCompanyGov view_entity union_all COMPOSITE BP Customer Company Governance
I_BusinessPartnerCustCo view from BASIC core view for customer company code
I_CO_BPRelationshipRole view_entity inner COMPOSITE
I_CollCustDsputCoCodeAssgmt view inner COMPOSITE Customers Company Code Assignment
I_CustheadoffcVH view from BASIC Value Help for Customer Head Office
I_CustomerCompanyByPlant view inner COMPOSITE Customer Company by Plant
I_CustomerCompanyVH view from COMPOSITE Customer Company
I_DbtflAcctsValnCustCompany view from COMPOSITE DAV Customer and Company Code Information
I_EmlTmplCustSuplrCompanyCode view inner COMPOSITE Email Template Data Provider
I_EmlTmplCustSuplrCompanyCode view left_outer COMPOSITE Email Template Data Provider
I_NO_SAFTCustomersInPeriod view_entity inner COMPOSITE List of all customers in report period
I_PT_DelDocCustAddrHist view left_outer COMPOSITE SAF-T PT Delivery Doc CustAddr History
I_PT_SAFTAcctgDocCustAddrHist view left_outer COMPOSITE SAF-T PT AccountingDoc CustAddr History
I_PT_SAFTBillgDocCustAddrHist view left_outer COMPOSITE SAF-T PT BillingDoc CustAddr History
I_PT_SAFTSelfBillgCustAddrHist view left_outer COMPOSITE SAF-T PT Self-Billing CustAddr History
P_AR_BPRelationshipRole view_entity inner COMPOSITE
P_ARCustomerUnion view left_outer CONSUMPTION AR Customer Union
P_ARLineItemMixedAccount view from BASIC
P_CN_CADECustomer view from CONSUMPTION
P_CollectionsAccount view inner COMPOSITE
P_CollsAccountCollsSegment view inner COMPOSITE
P_CollsAccountCompanyCode view inner COMPOSITE
P_CollsAcctFI view_entity inner COMPOSITE Collections Account - FI
P_CorrespondenceCustomer view from CONSUMPTION Customer for Create Correspondence
P_CPBUPAEMAILALL view from CONSUMPTION Business Partner Emails from all sources
P_DebtorFinancialData view from BASIC
P_IN_CUSTOMERGSTHEALTHCHECK view_entity from COMPOSITE
P_MLColl_DirectPayers1 view from COMPOSITE
P_MLColl_DirectPayers1 view union COMPOSITE
P_MLColl_DirectPayers5 view from COMPOSITE
P_NO_SAFTJournalCustSupMD view inner COMPOSITE SAF-T Norway Journal Item BP Master Data
P_PaytReceiptCustomerVH view from COMPOSITE
P_RU_CustomerCompanyData view inner CONSUMPTION
P_RU_CustomerSupplierDataComp view inner CONSUMPTION
P_WLF_CDS_KNB1_BG view from BASIC

Fields (54)

KeyField CDS FieldsUsed in Views
KEY CompanyCode company_code,CompanyCode,CompanyCodeForEdit 25
KEY Customer AlternativePayer,ContactPerson,Customer,customer_account,CustomerForEdit,CustomerUUID 17
_CompanyCode _CompanyCode 2
_Customer _Customer 3
_PaymentBlockingReasonText _PaymentBlockingReasonText 1
_PaymentBlockValueHelp _PaymentBlockValueHelp 1
AccountByCustomer AccountByCustomer 2
AccountingClerk AccountingClerk 4
AccountingClerkFaxNumber AccountingClerkFaxNumber 2
AccountingClerkInternetAddress AccountingClerkInternetAddress 2
AccountingClerkPhoneNumber AccountingClerkPhoneNumber 2
AcctsReceivablePledgingCode AcctsReceivablePledgingCode 1
AlternativePayerAccount AlternativePayerAccount 4
APARToleranceGroup APARToleranceGroup 3
AuthorizationGroup AuthorizationGroup,CoCodeSpcfcAuthorizationGroup,customer_begru,CustomerCompanyAuthznGroup,CustomerFinsAuthorizationGrp 13
BillExchChargePaymentTerms BillExchChargePaymentTerms 1
BuyingGroupAccountNumber BuyingGroupAccountNumber 1
CashPlanningGroup CashPlanningGroup 2
CheckPaidDurationInDays CheckPaidDurationInDays 1
CollectiveInvoiceVariant CollectiveInvoiceVariant 2
CreditMemoPaymentTerms CreditMemoPaymentTerms 2
CustomerAccountNote CustomerAccountNote 3
CustomerHeadOffice CustomerHeadOffice 4
CustomerPaymentBlockingReason CustomerPaymentBlockingReason 2
CustomerSupplierClearingIsUsed CustomerSupplierClearingIsUsed 3
CustPreviousMasterRecordNumber CustPreviousMasterRecordNumber 2
DeletionIndicator DeletionIndicator 3
DeletionIsBlocked DeletionIsBlocked 3
HouseBank HouseBank 2
InterestCalculationCode InterestCalculationCode 3
InterestCalculationDate InterestCalculationDate 3
IntrstCalcFrequencyInMonths IntrstCalcFrequencyInMonths 3
IsBusinessPurposeCompleted IsBusinessPurposeCompleted 5
IsToBeLocallyProcessed IsToBeLocallyProcessed 2
ItemIsToBePaidSeparately ItemIsToBePaidSeparately 3
KnownOrNegotiatedLeave KnownOrNegotiatedLeave 2
LastInterestCalcRunDate LastInterestCalcRunDate 2
LayoutSortingRule LayoutSortingRule 2
LockboxInternalID LockboxInternalID 1
PaymentBlockingReason PaymentBlockingReason 5
PaymentClearingGroup PaymentClearingGroup 2
PaymentMethodsList PaymentMethodsList 4
PaymentMethodSupplement PaymentMethodSupplement 2
PaymentReason PaymentReason 1
PaymentTerms PaymentTerms 5
PaytAdviceIsSentbyEDI PaytAdviceIsSentbyEDI 3
PersonnelNumber PersonnelNumber 1
PhysicalInventoryBlockInd PhysicalInventoryBlockInd 3
ReconciliationAccount GLAccount,ReconciliationAccount 8
RecordPaymentHistoryIndicator RecordPaymentHistoryIndicator 2
SupplierReleaseGroup SupplierReleaseGroup 2
UserAtCustomer UserAtCustomer 2
ValueAdjustmentKey ValueAdjustmentKey 2
WithholdingTaxCountry WithholdingTaxCountry 1
@EndUserText.label: 'Customer Company' //same as DDL description

//@Analytics: { dataCategory: #FACT }

@Analytics : {
          dataCategory: #DIMENSION,
          dataExtraction: {
           enabled: true,
           delta.changeDataCapture: {
           mapping:[
                {
                    table: 'KNB1', role: #MAIN,
                    viewElement: ['Customer','CompanyCode'],
                    tableElement: ['kunnr','bukrs']
                },
                {
                    table: 'KNB5', role: #LEFT_OUTER_TO_ONE_JOIN,
                    viewElement: ['Customer' ,'CompanyCode'],
                    tableElement: ['kunnr' ,'bukrs']
                }
           ]
          }
         }
       }
@VDM.viewType: #BASIC
@AccessControl.authorizationCheck: #CHECK
@AbapCatalog.sqlViewName: 'ICUSTCMPY' //must start with "I"

@ObjectModel.supportedCapabilities: [#SQL_DATA_SOURCE,
                                     #CDS_MODELING_DATA_SOURCE,
                                     #ANALYTICAL_DIMENSION,
                                     #CDS_MODELING_ASSOCIATION_TARGET,
                                     #EXTRACTION_DATA_SOURCE]
@ObjectModel.modelingPattern:#NONE
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.dataClass: #MASTER
@ObjectModel.representativeKey:'CompanyCode'
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.personalData.blocking: #REQUIRED
@AccessControl.personalData.blockingIndicator: ['IsBusinessPurposeCompleted']
@AbapCatalog.preserveKey:true
@Metadata.ignorePropagatedAnnotations: true
@Metadata.allowExtensions:true
define view I_CustomerCompany //must start with "I_"; same as DDL source name in upper-camelcase notation

  as select from knb1

  association [1..1] to I_Customer                  as _Customer                  on  $projection.Customer = _Customer.Customer

  association [0..1] to I_CompanyCode               as _CompanyCode               on  $projection.CompanyCode = _CompanyCode.CompanyCode

  association [0..*] to I_CustomerDunning           as _CustomerDunning           on  $projection.Customer    = _CustomerDunning.Customer
                                                                                  and $projection.CompanyCode = _CustomerDunning.CompanyCode

  //Default dunning area

  association [0..1] to I_CustomerDunning           as _CustomerDefaultDunning    on  $projection.Customer                = _CustomerDefaultDunning.Customer
                                                                                  and $projection.CompanyCode             = _CustomerDefaultDunning.CompanyCode
                                                                                  and _CustomerDefaultDunning.DunningArea = ''

  // Associations added for Text Annotation Removal

  association [0..1] to I_PaymentBlockingReason     as _PaymentBlockValueHelp     on  $projection.PaymentBlockingReason = _PaymentBlockValueHelp.PaymentBlockingReason

  association [0..*] to I_PaymentBlockingReasonText as _PaymentBlockingReasonText on  $projection.PaymentBlockingReason = _PaymentBlockingReasonText.PaymentBlockingReason

  association [0..1] to I_CashPlanningGroup         as _CashPlanningGroup         on  $projection.CashPlanningGroup = _CashPlanningGroup.CashPlanningGroup

  association [0..1] to E_CUSCO_D                   as _CustCoExt                 on  $projection.CompanyCode = _CustCoExt.CompanyCode
                                                                                  and $projection.Customer    = _CustCoExt.Customer

{

      //--[ GENERATED:012:GlBfhyJl7kY4i6}7dD1KRG

      @Consumption.valueHelpDefinition: [
        { entity:  { name:    'I_Customer_VH',
                     element: 'Customer' }
        }]
      // ]--GENERATED

      @ObjectModel.foreignKey.association: '_Customer'
  key kunnr                                           as Customer,
      //--[ GENERATED:012:GlBfhyJl7kY4i6}7dD1KRG

      @Consumption.valueHelpDefinition: [
        { entity:  { name:    'I_CompanyCodeStdVH',
                     element: 'CompanyCode' }
        }]
      // ]--GENERATED

      //  @ObjectModel.foreignKey.association: '_CompanyCode'

  key bukrs                                           as CompanyCode,
      //@ObjectModel.foreignKey.association: '_CustomerDunning'

      //key _CustomerDunning.DunningArea,


      busab                                           as AccountingClerk,
      akont                                           as ReconciliationAccount,
      begru                                           as AuthorizationGroup,
      knrze                                           as CustomerHeadOffice,
      knrzb                                           as AlternativePayerAccount,
      @ObjectModel: {
               foreignKey.association: '_PaymentBlockValueHelp'
             }
      @ObjectModel.text.association: '_PaymentBlockingReasonText'
      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,

      //Following Fields are needed in BP Customer-Supplier App


      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,
      @ObjectModel.foreignKey.association: '_CashPlanningGroup'
      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,

      // added for Fiori app (F1993) Customer Summary Report as a part of  DPP (Data Protection & Privacy)

      cvp_xblck_b                                     as IsBusinessPurposeCompleted,
      // Added for CE 2005 development

      qland                                           as WithholdingTaxCountry,
      urlid                                           as KnownOrNegotiatedLeave,

      nodel                                           as DeletionIsBlocked,

      paymentclearinggrpid                            as PaymentClearingGroup,

      paytrsn                                         as PaymentReason,

      // Added Additional Fields


      xausz                                           as BPPeriodicAccountStatement,
      //  erdat                                           as RecordCreatedDate,

      //  ernam                                           as RecordCreatedByUser,

      //   zinrt                                           as InterestCalFrequencyInMonths,

      //   vrbkz                                           as CreditInsuranceInstitution,

      //   vlibb                                           as CustomerInsuredAmount,

      //   vrszl                                           as BPInsuranceLeadMonths,

      //   vrspr                                           as BPDeductiblePercentageRate,

      //   vrsnr                                           as CustomerInsuranceNumber,

      //   verdt                                           as BPInsuranceValidityDate,

      //   webtr                                           as CustomerBillOfExchange,

      //   blnkz                                           as BPSubsIndDeterReductionRate,

      //   zgrup                                           as BPKeyForPaymentGrouping,

      //   sregl                                           as BPSelectionRulePaymentAdvice,

      //   vrsdg                                           as BPReasonCodeConversionVersion,

      //   gricd                                           as BPActivityCodeGrossIncomeTax,

      //   gridt                                           as BPEmploymentTaxDistrType,

      //   confs                                           as BPChangeAuthorizationCompany,

      //   updat                                           as ChangesConfirmedDate,

      //   uptim                                           as LastChangeConfirmationTime,

      //    ad_hash                                         as ElectronicMailAddress,

      //    ciiucode                                        as BPMainEconomicActivity,

      //    xknzb                                           as AlternativePayerIsUsed,

      //   zamim                                           as PaymentNoticeToCustomer,

      //   zamiv                                           as PaymentNoticeToSalesDepartment,

      //    zamir                                           as PaymentNoticeToLegalDepartment,

      //    zamib                                           as PaymentNoticeAccountDepartment,

      //    zamio                                           as PaymentNoticeCustomerClearItem,

      //     avsnd                                           as SendPaymentAdvice,


      // Addition of US fields

      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,



      // @VDM.deprecated: true    //Use  _CustomerDefaultDunning to expose the feild

      @Consumption.hidden: true
      _CustomerDefaultDunning.LastDunnedOn,

      // @VDM.deprecated: true    //Use  _CustomerDefaultDunning to expose the feild

      @Consumption.hidden: true
      _CustomerDefaultDunning.DunningProcedure,

      // @VDM.deprecated: true    //Use  _CustomerDefaultDunning to expose the feild

      @Consumption.hidden: true
      _CustomerDefaultDunning.DunningLevel,

      //  @VDM.deprecated: true    //Use  _CustomerDefaultDunning to expose the feild

      @Consumption.hidden: true
      _CustomerDefaultDunning.DunningBlock,

      //  @VDM.deprecated: true    //Use  _CustomerDefaultDunning to expose the feild

      @Consumption.hidden: true
      _CustomerDefaultDunning.DunningRecipient,

      //   @VDM.deprecated: true    //Use  _CustomerDefaultDunning to expose the feild

      @Consumption.hidden: true
      _CustomerDefaultDunning.LegDunningProcedureOn,

      //For extensibility

      cast( 'X' as sdraft_is_active preserving type ) as IsActiveEntity,


      // associations

      _Customer,
      _CompanyCode,
      _CustomerDunning,
      _CustomerDefaultDunning,
      _PaymentBlockValueHelp,
      _PaymentBlockingReasonText,
      _CashPlanningGroup
}