C_BPAddlCustCompanyCode

DDL: C_BPADDLCUSTCOMPANYCODE SQL: CBPADDCCC Type: view CONSUMPTION

C view for Customer Company Code

C_BPAddlCustCompanyCode is a Consumption CDS View that provides data about "C view for Customer Company Code" in SAP S/4HANA. It reads from 1 data source (I_BPAddlCustCompanyCodeTP) and exposes 59 fields with key fields BusinessPartner, Customer, CompanyCode. It has 19 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_BPAddlCustCompanyCodeTP BusinessPartnerCustomerCo from

Associations (19)

CardinalityTargetAliasCondition
[1..1] C_BusinessPartner _BusinessPartner $projection.BusinessPartner = _BusinessPartner.BusinessPartner
[1..1] C_BusinessPartnerCustomer _BusinessPartnerCustomer $projection.BusinessPartner = _BusinessPartnerCustomer.BusinessPartner
[1..1] C_BPAdditionalCustomer _BPAdditionalCustomer $projection.BusinessPartner = _BPAdditionalCustomer.BusinessPartner and $projection.Customer = _BPAdditionalCustomer.Customer
[1..*] C_BPAddlCustWhldgTax _BusinessPartnerCustWhdgTax $projection.BusinessPartner = _BusinessPartnerCustWhdgTax.BusinessPartner and $projection.Customer = _BusinessPartnerCustWhdgTax.Customer and $projection.CompanyCode = _BusinessPartnerCustWhdgTax.CompanyCode
[1..*] C_BPAddlCustDunning _BPAddlCustDunning $projection.BusinessPartner = _BPAddlCustDunning.BusinessPartner and $projection.Customer = _BPAddlCustDunning.Customer and $projection.CompanyCode = _BPAddlCustDunning.CompanyCode
[0..1] I_CustomerCompanyCodeVH _CompanyCodeValueHelp $projection.CompanyCodeForEdit = _CompanyCodeValueHelp.CompanyCode and $projection.Country = _CompanyCodeValueHelp.Country
[0..1] C_Custrecnclnacctvhtemp _ReconciliationAccountVH $projection.ReconciliationAccount = _ReconciliationAccountVH.ReconciliationAccount and $projection.CompanyCodeForEdit = _ReconciliationAccountVH.CompanyCode
[0..1] C_AccountingClerkVHTemp _AccountingClerkValueHelp $projection.AccountingClerk = _AccountingClerkValueHelp.AccountingClerk and $projection.CompanyCodeForEdit = _AccountingClerkValueHelp.CompanyCode
[0..1] I_AlternativePayerVH _AlternativePayerValueHelp $projection.AlternativePayerAccount = _AlternativePayerValueHelp.AlternativePayer and $projection.CompanyCodeForEdit = _AlternativePayerValueHelp.CompanyCode
[0..1] I_CustheadoffcVH _HeadOfficeValueHelp $projection.CustomerHeadOffice = _HeadOfficeValueHelp.Customer and $projection.CompanyCodeForEdit = _HeadOfficeValueHelp.CompanyCode
[0..*] C_ValAdjmtKeyValueHelpTmp _ValueAdjmtKeyValueHelp $projection.ValueAdjustmentKey = _ValueAdjmtKeyValueHelp.ValueAdjustmentKey
[1..*] C_SortKeyTextVHtemp _SortKeyText $projection.LayoutSortingRule = _SortKeyText.AcctgDocItmDisplaySequenceRule
[0..*] C_CustPaymentTermsTextVHTemp _PaymentTermsText $projection.PaymentTerms = _PaymentTermsText.CustomerPaymentTerms
[0..*] C_ToleranceGroupTextVHTemp _ToleranceGroupText _ToleranceGroupText.CompanyCode = $projection.CompanyCode and _ToleranceGroupText.APARToleranceGroup = $projection.APARToleranceGroup
[1..*] C_PaymentmethodTextVHTemp _PaymentMethodText $projection.PaymentMethodsList = _PaymentMethodText.PaymentMethod and $projection.Country = _PaymentMethodText.Country
[0..*] I_PaymentBlockingReasonText _PaymentBlockingReasonText $projection.PaymentBlockingReason = _PaymentBlockingReasonText.PaymentBlockingReason
[0..*] I_InterestCalculationCodeText _InterestCalculationCodeText $projection.InterestCalculationCode = _InterestCalculationCodeText.InterestCalculationCode
[0..*] I_CashPlanningGroupText _PlanningGroupText $projection.CashPlanningGroup = _PlanningGroupText.CashPlanningGroup
[0..*] C_KnownOrNegotiatedLeaveTxtTmp _KnownOrNegotiatedLeaveText $projection.KnownOrNegotiatedLeave = _KnownOrNegotiatedLeaveText.KnownOrNegotiatedLeave

Annotations (17)

NameValueLevelField
AbapCatalog.sqlViewName CBPADDCCC view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label C view for Customer Company Code view
Metadata.allowExtensions true view
ObjectModel.type #CONSUMPTION view
ObjectModel.writeEnabled true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MASTER view
Search.searchable true view
UI.headerInfo.typeName Company Code view
UI.headerInfo.typeNamePlural Company Codes view
UI.headerInfo.title.label Company Code Description view
UI.headerInfo.title.value CompanyCodeName view
VDM.viewType #CONSUMPTION view

Fields (59)

KeyFieldSource TableSource FieldDescription
KEY BusinessPartner I_BPAddlCustCompanyCodeTP BusinessPartner
KEY Customer I_BPAddlCustCompanyCodeTP Customer
KEY CompanyCode I_BPAddlCustCompanyCodeTP CompanyCode
BusinessPartnerForEdit I_BPAddlCustCompanyCodeTP BusinessPartnerForEdit
CustomerForEdit I_BPAddlCustCompanyCodeTP CustomerForEdit
CompanyCodeForEdit I_BPAddlCustCompanyCodeTP CompanyCodeForEdit
AccountingClerk I_BPAddlCustCompanyCodeTP AccountingClerk
ReconciliationAccount I_BPAddlCustCompanyCodeTP ReconciliationAccount
PhysicalInventoryBlockInd I_BPAddlCustCompanyCodeTP PhysicalInventoryBlockInd
PaymentBlockingReason I_BPAddlCustCompanyCodeTP PaymentBlockingReason
UserAtCustomer I_BPAddlCustCompanyCodeTP UserAtCustomer
AccountingClerkPhoneNumber I_BPAddlCustCompanyCodeTP AccountingClerkPhoneNumber
AccountingClerkFaxNumber I_BPAddlCustCompanyCodeTP AccountingClerkFaxNumber
AccountingClerkInternetAddress I_BPAddlCustCompanyCodeTP AccountingClerkInternetAddress
AccountByCustomer I_BPAddlCustCompanyCodeTP AccountByCustomer
IsToBeLocallyProcessed I_BPAddlCustCompanyCodeTP IsToBeLocallyProcessed
CustomerAccountNote I_BPAddlCustCompanyCodeTP CustomerAccountNote
CollectiveInvoiceVariant I_BPAddlCustCompanyCodeTP CollectiveInvoiceVariant
PaymentTerms I_BPAddlCustCompanyCodeTP PaymentTerms
APARToleranceGroup I_BPAddlCustCompanyCodeTP APARToleranceGroup
CustomerSupplierClearingIsUsed I_BPAddlCustCompanyCodeTP CustomerSupplierClearingIsUsed
RecordPaymentHistoryIndicator I_BPAddlCustCompanyCodeTP RecordPaymentHistoryIndicator
ItemIsToBePaidSeparately I_BPAddlCustCompanyCodeTP ItemIsToBePaidSeparately
PaytAdviceIsSentbyEDI I_BPAddlCustCompanyCodeTP PaytAdviceIsSentbyEDI
PaymentMethodsList I_BPAddlCustCompanyCodeTP PaymentMethodsList
AlternativePayerAccount I_BPAddlCustCompanyCodeTP AlternativePayerAccount
CustomerHeadOffice I_BPAddlCustCompanyCodeTP CustomerHeadOffice
LayoutSortingRule I_BPAddlCustCompanyCodeTP LayoutSortingRule
AuthorizationGroup I_BPAddlCustCompanyCodeTP AuthorizationGroup
InterestCalculationCode I_BPAddlCustCompanyCodeTP InterestCalculationCode
InterestCalculationDate I_BPAddlCustCompanyCodeTP InterestCalculationDate
IntrstCalcFrequencyInMonths I_BPAddlCustCompanyCodeTP IntrstCalcFrequencyInMonths
LastInterestCalcRunDate I_BPAddlCustCompanyCodeTP LastInterestCalcRunDate
HouseBank I_BPAddlCustCompanyCodeTP HouseBank
Country I_BPAddlCustCompanyCodeTP Country
CashPlanningGroup I_BPAddlCustCompanyCodeTP CashPlanningGroup
ValueAdjustmentKey I_BPAddlCustCompanyCodeTP ValueAdjustmentKey
KnownOrNegotiatedLeave I_BPAddlCustCompanyCodeTP KnownOrNegotiatedLeave
CompanyCodeDunningIsByDunArea I_BPAddlCustCompanyCodeTP CompanyCodeDunningIsByDunArea
CompanyCodeName I_BPAddlCustCompanyCodeTP CompanyCodeName
_BusinessPartnerCustomer _BusinessPartnerCustomer
_BusinessPartner _BusinessPartner
_BPAdditionalCustomer _BPAdditionalCustomer
_BusinessPartnerCustWhdgTax _BusinessPartnerCustWhdgTax
_BPAddlCustDunning _BPAddlCustDunning
_HeadOfficeValueHelp _HeadOfficeValueHelp
_CompanyCodeValueHelp _CompanyCodeValueHelp
_ReconciliationAccountVH _ReconciliationAccountVH
_AccountingClerkValueHelp _AccountingClerkValueHelp
_InterestCalculationCodeText _InterestCalculationCodeText
_AlternativePayerValueHelp _AlternativePayerValueHelp
_SortKeyText _SortKeyText
_PaymentTermsText _PaymentTermsText
_ToleranceGroupText _ToleranceGroupText
_PaymentMethodText _PaymentMethodText
_PaymentBlockingReasonText _PaymentBlockingReasonText
_PlanningGroupText _PlanningGroupText
_ValueAdjmtKeyValueHelp _ValueAdjmtKeyValueHelp
_KnownOrNegotiatedLeaveText _KnownOrNegotiatedLeaveText
@AbapCatalog.sqlViewName: 'CBPADDCCC'
@AbapCatalog.compiler.compareFilter: true

@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #REQUIRED

@EndUserText.label: 'C view for Customer Company Code'

@Metadata.allowExtensions: true

@ObjectModel.type: #CONSUMPTION
@ObjectModel.writeEnabled: true
@ObjectModel: {
    semanticKey: ['BusinessPartner', 'Customer', 'CompanyCode'],
    createEnabled,
    updateEnabled,
    deleteEnabled
}
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.dataClass: #MASTER

@Search.searchable: true

@UI.headerInfo:{
  typeName: 'Company Code',
  typeNamePlural: 'Company Codes',
  title:  { label: 'Company Code Description', value: 'CompanyCodeName' }
  }

@VDM.viewType: #CONSUMPTION

define view C_BPAddlCustCompanyCode
  as select from I_BPAddlCustCompanyCodeTP as BusinessPartnerCustomerCo
  
  association [1..1]  to C_BusinessPartner         as _BusinessPartner         on  $projection.BusinessPartner = _BusinessPartner.BusinessPartner
  
  association [1..1] to C_BusinessPartnerCustomer   as _BusinessPartnerCustomer    on  $projection.BusinessPartner = _BusinessPartnerCustomer.BusinessPartner

  association [1..1] to C_BPAdditionalCustomer      as _BPAdditionalCustomer       on  $projection.BusinessPartner = _BPAdditionalCustomer.BusinessPartner
                                                                                   and $projection.Customer        = _BPAdditionalCustomer.Customer

  association [1..*] to C_BPAddlCustWhldgTax        as _BusinessPartnerCustWhdgTax on  $projection.BusinessPartner = _BusinessPartnerCustWhdgTax.BusinessPartner
                                                                                   and $projection.Customer        = _BusinessPartnerCustWhdgTax.Customer
                                                                                   and $projection.CompanyCode     = _BusinessPartnerCustWhdgTax.CompanyCode
                                                                                   
  association [1..*] to C_BPAddlCustDunning      as _BPAddlCustDunning       on  $projection.BusinessPartner = _BPAddlCustDunning.BusinessPartner
                                                                               and $projection.Customer        = _BPAddlCustDunning.Customer
                                                                               and $projection.CompanyCode     = _BPAddlCustDunning.CompanyCode

  // Language Independent Value helps

  association [0..1] to I_CustomerCompanyCodeVH     as _CompanyCodeValueHelp       on  $projection.CompanyCodeForEdit = _CompanyCodeValueHelp.CompanyCode
                                                                                   and $projection.Country            = _CompanyCodeValueHelp.Country
                                                                                   
    association [0..1] to C_Custrecnclnacctvhtemp   as _ReconciliationAccountVH  on  $projection.ReconciliationAccount    = _ReconciliationAccountVH.ReconciliationAccount
                                                                                and $projection.CompanyCodeForEdit = _ReconciliationAccountVH.CompanyCode                                                                                 

  association [0..1] to C_AccountingClerkVHTemp     as _AccountingClerkValueHelp   on  $projection.AccountingClerk    = _AccountingClerkValueHelp.AccountingClerk
                                                                                   and $projection.CompanyCodeForEdit = _AccountingClerkValueHelp.CompanyCode
                                                                                
  association [0..1] to I_AlternativePayerVH        as _AlternativePayerValueHelp  on  $projection.AlternativePayerAccount = _AlternativePayerValueHelp.AlternativePayer
                                                                                   and $projection.CompanyCodeForEdit      = _AlternativePayerValueHelp.CompanyCode

  association [0..1] to I_CustheadoffcVH            as _HeadOfficeValueHelp        on  $projection.CustomerHeadOffice = _HeadOfficeValueHelp.Customer
                                                                                   and $projection.CompanyCodeForEdit = _HeadOfficeValueHelp.CompanyCode
  association [0..*] to C_ValAdjmtKeyValueHelpTmp  as _ValueAdjmtKeyValueHelp on  $projection.ValueAdjustmentKey = _ValueAdjmtKeyValueHelp.ValueAdjustmentKey

  //Text Views

  
  association [1..*] to C_SortKeyTextVHtemp         as _SortKeyText                on  $projection.LayoutSortingRule = _SortKeyText.AcctgDocItmDisplaySequenceRule

  association [0..*] to C_CustPaymentTermsTextVHTemp as _PaymentTermsText           on  $projection.PaymentTerms = _PaymentTermsText.CustomerPaymentTerms
    
  association [0..*] to C_ToleranceGroupTextVHTemp  as _ToleranceGroupText         on  _ToleranceGroupText.CompanyCode        = $projection.CompanyCode
                                                                                   and _ToleranceGroupText.APARToleranceGroup = $projection.APARToleranceGroup

  association [1..*] to C_PaymentmethodTextVHTemp   as _PaymentMethodText          on  $projection.PaymentMethodsList = _PaymentMethodText.PaymentMethod
                                                                                   and $projection.Country            = _PaymentMethodText.Country

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

  association [0..*] to I_CashPlanningGroupText as _PlanningGroupText on $projection.CashPlanningGroup = _PlanningGroupText.CashPlanningGroup

  association [0..*] to C_KnownOrNegotiatedLeaveTxtTmp as _KnownOrNegotiatedLeaveText on $projection.KnownOrNegotiatedLeave = _KnownOrNegotiatedLeaveText.KnownOrNegotiatedLeave

{
  key BusinessPartnerCustomerCo.BusinessPartner,
  key BusinessPartnerCustomerCo.Customer,
  key BusinessPartnerCustomerCo.CompanyCode,
      BusinessPartnerCustomerCo.BusinessPartnerForEdit,
      BusinessPartnerCustomerCo.CustomerForEdit,
      @ObjectModel: {
                 foreignKey.association: '_CompanyCodeValueHelp'
                }
      @ObjectModel.text.element: ['CompanyCodeName']          
      BusinessPartnerCustomerCo.CompanyCodeForEdit,
      @ObjectModel: {
                 foreignKey.association: '_AccountingClerkValueHelp'
               }
      BusinessPartnerCustomerCo.AccountingClerk,
      //@ObjectModel.foreignKey.association: '_ReconciliationAccountVH'

      BusinessPartnerCustomerCo.ReconciliationAccount, 
      BusinessPartnerCustomerCo.PhysicalInventoryBlockInd,
      @ObjectModel.text.association: '_PaymentBlockingReasonText'
      BusinessPartnerCustomerCo.PaymentBlockingReason,
      BusinessPartnerCustomerCo.UserAtCustomer,
      BusinessPartnerCustomerCo.AccountingClerkPhoneNumber,
      BusinessPartnerCustomerCo.AccountingClerkFaxNumber,
      BusinessPartnerCustomerCo.AccountingClerkInternetAddress,
      BusinessPartnerCustomerCo.AccountByCustomer,
      BusinessPartnerCustomerCo.IsToBeLocallyProcessed,
      BusinessPartnerCustomerCo.CustomerAccountNote,
      BusinessPartnerCustomerCo.CollectiveInvoiceVariant,
      @ObjectModel.text.association: '_PaymentTermsText'
      BusinessPartnerCustomerCo.PaymentTerms, 
      @ObjectModel.text.association: '_ToleranceGroupText'
      BusinessPartnerCustomerCo.APARToleranceGroup,
      BusinessPartnerCustomerCo.CustomerSupplierClearingIsUsed,
      BusinessPartnerCustomerCo.RecordPaymentHistoryIndicator,
      BusinessPartnerCustomerCo.ItemIsToBePaidSeparately,
      BusinessPartnerCustomerCo.PaytAdviceIsSentbyEDI,
      @ObjectModel.text.association: '_PaymentMethodText'
      BusinessPartnerCustomerCo.PaymentMethodsList,
      @ObjectModel: {
                  foreignKey.association: '_AlternativePayerValueHelp'
                }
      BusinessPartnerCustomerCo.AlternativePayerAccount,
      @ObjectModel: {
                  foreignKey.association: '_HeadOfficeValueHelp'
                }
      BusinessPartnerCustomerCo.CustomerHeadOffice,
      @ObjectModel.text.association: '_SortKeyText'
      BusinessPartnerCustomerCo.LayoutSortingRule,
      //@Consumption.hidden: true

      BusinessPartnerCustomerCo.AuthorizationGroup,
      @ObjectModel.text.association: '_InterestCalculationCodeText'
      BusinessPartnerCustomerCo.InterestCalculationCode,
      BusinessPartnerCustomerCo.InterestCalculationDate,
      @Consumption.hidden: true
      BusinessPartnerCustomerCo.IntrstCalcFrequencyInMonths,
      @Consumption.hidden: true
      BusinessPartnerCustomerCo.LastInterestCalcRunDate,
      BusinessPartnerCustomerCo.HouseBank,
      BusinessPartnerCustomerCo.Country,
      @ObjectModel.text.association: '_PlanningGroupText'
      BusinessPartnerCustomerCo.CashPlanningGroup,
      @Consumption.valueHelp: '_ValueAdjmtKeyValueHelp'   
      BusinessPartnerCustomerCo.ValueAdjustmentKey,
      @ObjectModel.text.association: '_KnownOrNegotiatedLeaveText'
      BusinessPartnerCustomerCo.KnownOrNegotiatedLeave,
      BusinessPartnerCustomerCo.CompanyCodeDunningIsByDunArea,
      BusinessPartnerCustomerCo.CompanyCodeName,
      
      @ObjectModel.association.type: [ #TO_COMPOSITION_ROOT ]
      _BusinessPartnerCustomer,
       @ObjectModel.association.type: [ #TO_COMPOSITION_ROOT ]
      _BusinessPartner,
      @ObjectModel.association.type: [ #TO_COMPOSITION_PARENT ]
      _BPAdditionalCustomer,
      @ObjectModel.association.type: [ #TO_COMPOSITION_CHILD ]
      _BusinessPartnerCustWhdgTax,
      @ObjectModel.association.type: [ #TO_COMPOSITION_CHILD ]
      _BPAddlCustDunning,
      _HeadOfficeValueHelp,
      _CompanyCodeValueHelp,
      _ReconciliationAccountVH,
      _AccountingClerkValueHelp,
      _InterestCalculationCodeText,
      _AlternativePayerValueHelp,
      _SortKeyText,
      _PaymentTermsText,
      _ToleranceGroupText,
      _PaymentMethodText,
      _PaymentBlockingReasonText,
      _PlanningGroupText,
      _ValueAdjmtKeyValueHelp,
      _KnownOrNegotiatedLeaveText
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BPADDLCUSTCOMPANYCODETP"
],
"ASSOCIATED":
[
"C_ACCOUNTINGCLERKVHTEMP",
"C_BPADDITIONALCUSTOMER",
"C_BPADDLCUSTDUNNING",
"C_BPADDLCUSTWHLDGTAX",
"C_BUSINESSPARTNER",
"C_BUSINESSPARTNERCUSTOMER",
"C_CUSTPAYMENTTERMSTEXTVHTEMP",
"C_CUSTRECNCLNACCTVHTEMP",
"C_KNOWNORNEGOTIATEDLEAVETXTTMP",
"C_PAYMENTMETHODTEXTVHTEMP",
"C_SORTKEYTEXTVHTEMP",
"C_TOLERANCEGROUPTEXTVHTEMP",
"C_VALADJMTKEYVALUEHELPTMP",
"I_ALTERNATIVEPAYERVH",
"I_CASHPLANNINGGROUPTEXT",
"I_CUSTHEADOFFCVH",
"I_CUSTOMERCOMPANYCODEVH",
"I_INTERESTCALCULATIONCODETEXT",
"I_PAYMENTBLOCKINGREASONTEXT"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/