C_BPAddlCustCompanyCode
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)
| Source | Alias | Join Type |
|---|---|---|
| I_BPAddlCustCompanyCodeTP | BusinessPartnerCustomerCo | from |
Associations (19)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BusinessPartner | I_BPAddlCustCompanyCodeTP | BusinessPartner | Issuing Authority |
| KEY | Customer | I_BPAddlCustCompanyCodeTP | Customer | Sold-to Party |
| KEY | CompanyCode | I_BPAddlCustCompanyCodeTP | CompanyCode | Receiver Company Code |
| BusinessPartnerForEdit | I_BPAddlCustCompanyCodeTP | BusinessPartnerForEdit | Busn. Partner | |
| CustomerForEdit | I_BPAddlCustCompanyCodeTP | CustomerForEdit | Customer | |
| CompanyCodeForEdit | I_BPAddlCustCompanyCodeTP | CompanyCodeForEdit | Company Code | |
| AccountingClerk | I_BPAddlCustCompanyCodeTP | AccountingClerk | Clerk Abbrev. | |
| ReconciliationAccount | I_BPAddlCustCompanyCodeTP | ReconciliationAccount | Recon. account | |
| PhysicalInventoryBlockInd | I_BPAddlCustCompanyCodeTP | PhysicalInventoryBlockInd | Phys. Inv. Blk | |
| PaymentBlockingReason | I_BPAddlCustCompanyCodeTP | PaymentBlockingReason | Pmnt block | |
| UserAtCustomer | I_BPAddlCustCompanyCodeTP | UserAtCustomer | Customer user | |
| AccountingClerkPhoneNumber | I_BPAddlCustCompanyCodeTP | AccountingClerkPhoneNumber | Act.clk tel.no. | |
| AccountingClerkFaxNumber | I_BPAddlCustCompanyCodeTP | AccountingClerkFaxNumber | Clerk's fax | |
| AccountingClerkInternetAddress | I_BPAddlCustCompanyCodeTP | AccountingClerkInternetAddress | Clrk's internet | |
| AccountByCustomer | I_BPAddlCustCompanyCodeTP | AccountByCustomer | Acct at cust. | |
| IsToBeLocallyProcessed | I_BPAddlCustCompanyCodeTP | IsToBeLocallyProcessed | Local Process. | |
| CustomerAccountNote | I_BPAddlCustCompanyCodeTP | CustomerAccountNote | Account Memo | |
| CollectiveInvoiceVariant | I_BPAddlCustCompanyCodeTP | CollectiveInvoiceVariant | Coll.Invce.Var. | |
| PaymentTerms | I_BPAddlCustCompanyCodeTP | PaymentTerms | Pyt Terms | |
| APARToleranceGroup | I_BPAddlCustCompanyCodeTP | APARToleranceGroup | Tolerance Group | |
| CustomerSupplierClearingIsUsed | I_BPAddlCustCompanyCodeTP | CustomerSupplierClearingIsUsed | Clrg with vend. | |
| RecordPaymentHistoryIndicator | I_BPAddlCustCompanyCodeTP | RecordPaymentHistoryIndicator | Rec.Payt Hist. | |
| ItemIsToBePaidSeparately | I_BPAddlCustCompanyCodeTP | ItemIsToBePaidSeparately | Individual Payt | |
| PaytAdviceIsSentbyEDI | I_BPAddlCustCompanyCodeTP | PaytAdviceIsSentbyEDI | Pmt adv. by EDI | |
| PaymentMethodsList | I_BPAddlCustCompanyCodeTP | PaymentMethodsList | Payment Methods | |
| AlternativePayerAccount | I_BPAddlCustCompanyCodeTP | AlternativePayerAccount | Alternat.payer | |
| CustomerHeadOffice | I_BPAddlCustCompanyCodeTP | CustomerHeadOffice | Head Office | |
| LayoutSortingRule | I_BPAddlCustCompanyCodeTP | LayoutSortingRule | Sort key | |
| AuthorizationGroup | I_BPAddlCustCompanyCodeTP | AuthorizationGroup | AuthorizGroup | |
| InterestCalculationCode | I_BPAddlCustCompanyCodeTP | InterestCalculationCode | Interest Indic. | |
| InterestCalculationDate | I_BPAddlCustCompanyCodeTP | InterestCalculationDate | Last Key Date | |
| IntrstCalcFrequencyInMonths | I_BPAddlCustCompanyCodeTP | IntrstCalcFrequencyInMonths | Int.Calc.Freq. | |
| LastInterestCalcRunDate | I_BPAddlCustCompanyCodeTP | LastInterestCalcRunDate | Last Int. Calc. | |
| HouseBank | I_BPAddlCustCompanyCodeTP | HouseBank | House Bank | |
| Country | I_BPAddlCustCompanyCodeTP | Country | Venue: Ctry/Reg | |
| CashPlanningGroup | I_BPAddlCustCompanyCodeTP | CashPlanningGroup | Planning Group | |
| ValueAdjustmentKey | I_BPAddlCustCompanyCodeTP | ValueAdjustmentKey | Value Adj. Key | |
| KnownOrNegotiatedLeave | I_BPAddlCustCompanyCodeTP | KnownOrNegotiatedLeave | Known/Neg.Leave | |
| CompanyCodeDunningIsByDunArea | I_BPAddlCustCompanyCodeTP | CompanyCodeDunningIsByDunArea | Dun.by Dun.Area | |
| CompanyCodeName | I_BPAddlCustCompanyCodeTP | CompanyCodeName | Company Name | |
| _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 |
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 C_BPAddlCustCompanyCode.
-- 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: CBPADDCCC
CREATE VIEW C_BPAddlCustCompanyCode AS
SELECT
BusinessPartnerCustomerCo.BusinessPartner AS BusinessPartner,
BusinessPartnerCustomerCo.Customer AS Customer,
BusinessPartnerCustomerCo.CompanyCode AS CompanyCode,
BusinessPartnerCustomerCo.BusinessPartnerForEdit AS BusinessPartnerForEdit,
BusinessPartnerCustomerCo.CustomerForEdit AS CustomerForEdit,
BusinessPartnerCustomerCo.CompanyCodeForEdit AS CompanyCodeForEdit,
BusinessPartnerCustomerCo.AccountingClerk AS AccountingClerk,
BusinessPartnerCustomerCo.ReconciliationAccount AS ReconciliationAccount,
BusinessPartnerCustomerCo.PhysicalInventoryBlockInd AS PhysicalInventoryBlockInd,
BusinessPartnerCustomerCo.PaymentBlockingReason AS PaymentBlockingReason,
BusinessPartnerCustomerCo.UserAtCustomer AS UserAtCustomer,
BusinessPartnerCustomerCo.AccountingClerkPhoneNumber AS AccountingClerkPhoneNumber,
BusinessPartnerCustomerCo.AccountingClerkFaxNumber AS AccountingClerkFaxNumber,
BusinessPartnerCustomerCo.AccountingClerkInternetAddress AS AccountingClerkInternetAddress,
BusinessPartnerCustomerCo.AccountByCustomer AS AccountByCustomer,
BusinessPartnerCustomerCo.IsToBeLocallyProcessed AS IsToBeLocallyProcessed,
BusinessPartnerCustomerCo.CustomerAccountNote AS CustomerAccountNote,
BusinessPartnerCustomerCo.CollectiveInvoiceVariant AS CollectiveInvoiceVariant,
BusinessPartnerCustomerCo.PaymentTerms AS PaymentTerms,
BusinessPartnerCustomerCo.APARToleranceGroup AS APARToleranceGroup,
BusinessPartnerCustomerCo.CustomerSupplierClearingIsUsed AS CustomerSupplierClearingIsUsed,
BusinessPartnerCustomerCo.RecordPaymentHistoryIndicator AS RecordPaymentHistoryIndicator,
BusinessPartnerCustomerCo.ItemIsToBePaidSeparately AS ItemIsToBePaidSeparately,
BusinessPartnerCustomerCo.PaytAdviceIsSentbyEDI AS PaytAdviceIsSentbyEDI,
BusinessPartnerCustomerCo.PaymentMethodsList AS PaymentMethodsList,
BusinessPartnerCustomerCo.AlternativePayerAccount AS AlternativePayerAccount,
BusinessPartnerCustomerCo.CustomerHeadOffice AS CustomerHeadOffice,
BusinessPartnerCustomerCo.LayoutSortingRule AS LayoutSortingRule,
BusinessPartnerCustomerCo.AuthorizationGroup AS AuthorizationGroup,
BusinessPartnerCustomerCo.InterestCalculationCode AS InterestCalculationCode,
BusinessPartnerCustomerCo.InterestCalculationDate AS InterestCalculationDate,
BusinessPartnerCustomerCo.IntrstCalcFrequencyInMonths AS IntrstCalcFrequencyInMonths,
BusinessPartnerCustomerCo.LastInterestCalcRunDate AS LastInterestCalcRunDate,
BusinessPartnerCustomerCo.HouseBank AS HouseBank,
BusinessPartnerCustomerCo.Country AS Country,
BusinessPartnerCustomerCo.CashPlanningGroup AS CashPlanningGroup,
BusinessPartnerCustomerCo.ValueAdjustmentKey AS ValueAdjustmentKey,
BusinessPartnerCustomerCo.KnownOrNegotiatedLeave AS KnownOrNegotiatedLeave,
BusinessPartnerCustomerCo.CompanyCodeDunningIsByDunArea AS CompanyCodeDunningIsByDunArea,
BusinessPartnerCustomerCo.CompanyCodeName AS CompanyCodeName
FROM I_BPAddlCustCompanyCodeTP AS BusinessPartnerCustomerCo
LEFT OUTER JOIN C_BusinessPartner AS _BusinessPartner ON BusinessPartner = _BusinessPartner.BusinessPartner -- association [1..1]
LEFT OUTER JOIN C_BusinessPartnerCustomer AS _BusinessPartnerCustomer ON BusinessPartner = _BusinessPartnerCustomer.BusinessPartner -- association [1..1]
LEFT OUTER JOIN C_BPAdditionalCustomer AS _BPAdditionalCustomer ON BusinessPartner = _BPAdditionalCustomer.BusinessPartner AND Customer = _BPAdditionalCustomer.Customer -- association [1..1]
LEFT OUTER JOIN C_BPAddlCustWhldgTax AS _BusinessPartnerCustWhdgTax ON BusinessPartner = _BusinessPartnerCustWhdgTax.BusinessPartner AND Customer = _BusinessPartnerCustWhdgTax.Customer AND CompanyCode = _BusinessPartnerCustWhdgTax.CompanyCode -- association [1..*]
LEFT OUTER JOIN C_BPAddlCustDunning AS _BPAddlCustDunning ON BusinessPartner = _BPAddlCustDunning.BusinessPartner AND Customer = _BPAddlCustDunning.Customer AND CompanyCode = _BPAddlCustDunning.CompanyCode -- association [1..*]
LEFT OUTER JOIN I_CustomerCompanyCodeVH AS _CompanyCodeValueHelp ON CompanyCodeForEdit = _CompanyCodeValueHelp.CompanyCode AND Country = _CompanyCodeValueHelp.Country -- association [0..1]
LEFT OUTER JOIN C_Custrecnclnacctvhtemp AS _ReconciliationAccountVH ON ReconciliationAccount = _ReconciliationAccountVH.ReconciliationAccount AND CompanyCodeForEdit = _ReconciliationAccountVH.CompanyCode -- association [0..1]
LEFT OUTER JOIN C_AccountingClerkVHTemp AS _AccountingClerkValueHelp ON AccountingClerk = _AccountingClerkValueHelp.AccountingClerk AND CompanyCodeForEdit = _AccountingClerkValueHelp.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_AlternativePayerVH AS _AlternativePayerValueHelp ON AlternativePayerAccount = _AlternativePayerValueHelp.AlternativePayer AND CompanyCodeForEdit = _AlternativePayerValueHelp.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_CustheadoffcVH AS _HeadOfficeValueHelp ON CustomerHeadOffice = _HeadOfficeValueHelp.Customer AND CompanyCodeForEdit = _HeadOfficeValueHelp.CompanyCode -- association [0..1]
LEFT OUTER JOIN C_ValAdjmtKeyValueHelpTmp AS _ValueAdjmtKeyValueHelp ON ValueAdjustmentKey = _ValueAdjmtKeyValueHelp.ValueAdjustmentKey -- association [0..*]
LEFT OUTER JOIN C_SortKeyTextVHtemp AS _SortKeyText ON LayoutSortingRule = _SortKeyText.AcctgDocItmDisplaySequenceRule -- association [1..*]
LEFT OUTER JOIN C_CustPaymentTermsTextVHTemp AS _PaymentTermsText ON PaymentTerms = _PaymentTermsText.CustomerPaymentTerms -- association [0..*]
LEFT OUTER JOIN C_ToleranceGroupTextVHTemp AS _ToleranceGroupText ON _ToleranceGroupText.CompanyCode = CompanyCode AND _ToleranceGroupText.APARToleranceGroup = APARToleranceGroup -- association [0..*]
LEFT OUTER JOIN C_PaymentmethodTextVHTemp AS _PaymentMethodText ON PaymentMethodsList = _PaymentMethodText.PaymentMethod AND Country = _PaymentMethodText.Country -- association [1..*]
LEFT OUTER JOIN I_PaymentBlockingReasonText AS _PaymentBlockingReasonText ON PaymentBlockingReason = _PaymentBlockingReasonText.PaymentBlockingReason -- association [0..*]
LEFT OUTER JOIN I_InterestCalculationCodeText AS _InterestCalculationCodeText ON InterestCalculationCode = _InterestCalculationCodeText.InterestCalculationCode -- association [0..*]
LEFT OUTER JOIN I_CashPlanningGroupText AS _PlanningGroupText ON CashPlanningGroup = _PlanningGroupText.CashPlanningGroup -- association [0..*]
LEFT OUTER JOIN C_KnownOrNegotiatedLeaveTxtTmp AS _KnownOrNegotiatedLeaveText ON KnownOrNegotiatedLeave = _KnownOrNegotiatedLeaveText.KnownOrNegotiatedLeave -- association [0..*]
;
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