A_CustomerCompany
Customer Company
A_CustomerCompany is a Basic CDS View that provides data about "Customer Company" in SAP S/4HANA. It reads from 1 data source (I_CustomerCompany) and exposes 40 fields with key fields Customer, CompanyCode. It has 5 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CustomerCompany | I_CustomerCompany | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | E_CUSCO_D | _CompanyExtension | $projection.Customer = _CompanyExtension.Customer and $projection.CompanyCode = _CompanyExtension.CompanyCode |
| [0..*] | A_CustomerDunning | _CustomerDunning | $projection.Customer = _CustomerDunning.Customer and $projection.CompanyCode = _CustomerDunning.CompanyCode |
| [0..*] | A_CustomerWithHoldingTax | _WithHoldingTax | $projection.Customer = _WithHoldingTax.Customer and $projection.CompanyCode = _WithHoldingTax.CompanyCode |
| [1..1] | A_Customer | _Customer | $projection.Customer = _Customer.Customer |
| [0..*] | A_CustomerCompanyText | _CompanyText | $projection.Customer = _CompanyText.Customer and $projection.CompanyCode = _CompanyText.CompanyCode |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ACUSTCOMPANY | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| EndUserText.label | Customer Company | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #PUBLIC_REMOTE_API | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.updateEnabled | true | view |
Fields (40)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Customer | Customer | Sold-to Party | |
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| APARToleranceGroup | APARToleranceGroup | Tolerance Group | ||
| AccountByCustomer | AccountByCustomer | Acct at cust. | ||
| AccountingClerk | AccountingClerk | Clerk Abbrev. | ||
| AccountingClerkFaxNumber | AccountingClerkFaxNumber | Clerk's fax | ||
| AccountingClerkInternetAddress | AccountingClerkInternetAddress | Clrk's internet | ||
| AccountingClerkPhoneNumber | AccountingClerkPhoneNumber | Act.clk tel.no. | ||
| AlternativePayerAccount | AlternativePayerAccount | Alternat.payer | ||
| AuthorizationGroup | AuthorizationGroup | AuthorizGroup | ||
| CollectiveInvoiceVariant | CollectiveInvoiceVariant | Coll.Invce.Var. | ||
| CustomerAccountNote | CustomerAccountNote | Account Memo | ||
| CustomerHeadOffice | CustomerHeadOffice | Head Office | ||
| CustomerSupplierClearingIsUsed | CustomerSupplierClearingIsUsed | Clrg with vend. | ||
| HouseBank | HouseBank | House Bank | ||
| InterestCalculationCode | InterestCalculationCode | Interest Indic. | ||
| InterestCalculationDate | InterestCalculationDate | Last Key Date | ||
| IntrstCalcFrequencyInMonths | IntrstCalcFrequencyInMonths | Int.Calc.Freq. | ||
| IsToBeLocallyProcessed | IsToBeLocallyProcessed | Local Process. | ||
| ItemIsToBePaidSeparately | ItemIsToBePaidSeparately | Individual Payt | ||
| LayoutSortingRule | LayoutSortingRule | Sort key | ||
| PaymentBlockingReason | PaymentBlockingReason | Pmnt block | ||
| PaymentMethodsList | PaymentMethodsList | Payment Methods | ||
| PaymentReason | PaymentReason | Payment Reason | ||
| PaymentTerms | PaymentTerms | Pyt Terms | ||
| PaytAdviceIsSentbyEDI | PaytAdviceIsSentbyEDI | Pmt adv. by EDI | ||
| PhysicalInventoryBlockInd | PhysicalInventoryBlockInd | Phys. Inv. Blk | ||
| ReconciliationAccount | ReconciliationAccount | Recon. account | ||
| RecordPaymentHistoryIndicator | RecordPaymentHistoryIndicator | Rec.Payt Hist. | ||
| UserAtCustomer | UserAtCustomer | Customer user | ||
| DeletionIndicator | DeletionIndicator | Deletion Ind. | ||
| CashPlanningGroup | CashPlanningGroup | Planning Group | ||
| KnownOrNegotiatedLeave | KnownOrNegotiatedLeave | Known/Neg.Leave | ||
| ValueAdjustmentKey | ValueAdjustmentKey | Value Adj. Key | ||
| _CustomerDunning | _CustomerDunning | |||
| _WithHoldingTax | _WithHoldingTax | |||
| _Customer | _Customer | |||
| _CompanyText | _CompanyText | |||
| CustomerAccountGroup | _Customer | CustomerAccountGroup | Account group | |
| IsBusinessPurposeCompleted | IsBusinessPurposeCompleted | Purpose Completed |
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 A_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: ACUSTCOMPANY
CREATE VIEW A_CustomerCompany AS
SELECT
Customer,
CompanyCode,
APARToleranceGroup,
AccountByCustomer,
AccountingClerk,
AccountingClerkFaxNumber,
AccountingClerkInternetAddress,
AccountingClerkPhoneNumber,
AlternativePayerAccount,
AuthorizationGroup,
CollectiveInvoiceVariant,
CustomerAccountNote,
CustomerHeadOffice,
CustomerSupplierClearingIsUsed,
HouseBank,
InterestCalculationCode,
InterestCalculationDate,
IntrstCalcFrequencyInMonths,
IsToBeLocallyProcessed,
ItemIsToBePaidSeparately,
LayoutSortingRule,
PaymentBlockingReason,
PaymentMethodsList,
PaymentReason,
PaymentTerms,
PaytAdviceIsSentbyEDI,
PhysicalInventoryBlockInd,
ReconciliationAccount,
RecordPaymentHistoryIndicator,
UserAtCustomer,
DeletionIndicator,
CashPlanningGroup,
KnownOrNegotiatedLeave,
ValueAdjustmentKey,
_Customer.CustomerAccountGroup AS CustomerAccountGroup,
IsBusinessPurposeCompleted
FROM I_CustomerCompany
LEFT OUTER JOIN E_CUSCO_D AS _CompanyExtension ON Customer = _CompanyExtension.Customer AND CompanyCode = _CompanyExtension.CompanyCode -- association [0..1]
LEFT OUTER JOIN A_CustomerDunning AS _CustomerDunning ON Customer = _CustomerDunning.Customer AND CompanyCode = _CustomerDunning.CompanyCode -- association [0..*]
LEFT OUTER JOIN A_CustomerWithHoldingTax AS _WithHoldingTax ON Customer = _WithHoldingTax.Customer AND CompanyCode = _WithHoldingTax.CompanyCode -- association [0..*]
LEFT OUTER JOIN A_Customer AS _Customer ON Customer = _Customer.Customer -- association [1..1]
LEFT OUTER JOIN A_CustomerCompanyText AS _CompanyText ON Customer = _CompanyText.Customer AND CompanyCode = _CompanyText.CompanyCode -- 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