A_CustomerCompany

DDL: A_CUSTOMERCOMPANY SQL: ACUSTCOMPANY Type: view BASIC

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)

SourceAliasJoin Type
I_CustomerCompany I_CustomerCompany from

Associations (5)

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

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

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