I_CustomerCompanyCodeTP

DDL: I_CUSTOMERCOMPANYCODETP Type: view_entity TRANSACTIONAL

Customer Company Code - TP

I_CustomerCompanyCodeTP is a Transactional CDS View that provides data about "Customer Company Code - TP" in SAP S/4HANA. It reads from 1 data source (I_BusinessPartnerCustCo) and exposes 58 fields with key fields CompanyCode, BusinessPartner, Customer. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_BusinessPartnerCustCo CustomerCompanyCode from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_BusinessPartnerTP_2 _BusinessPartner $projection.BusinessPartner = _BusinessPartner.BusinessPartner

Annotations (7)

NameValueLevelField
EndUserText.label Customer Company Code - TP view
VDM.viewType #TRANSACTIONAL view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (58)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY BusinessPartner BusinessPartner Issuing Authority
KEY Customer Customer Sold-to Party
CompanyCodeForEdit CompanyCode Receiver Company Code
BusinessPartnerUUID BusinessPartnerUUID UUID
AccountingClerk AccountingClerk Clerk Abbrev.
ReconciliationAccount ReconciliationAccount Recon. account
AuthorizationGroup AuthorizationGroup AuthorizGroup
CustomerHeadOffice CustomerHeadOffice Head Office
AlternativePayerAccount AlternativePayerAccount Alternat.payer
PaymentBlockingReason PaymentBlockingReason Pmnt block
InterestCalculationCode InterestCalculationCode Interest Indic.
InterestCalculationDate InterestCalculationDate Last Key Date
IntrstCalcFrequencyInMonths IntrstCalcFrequencyInMonths Int.Calc.Freq.
LastInterestCalcRunDate LastInterestCalcRunDate Last Int. Calc.
CustomerAccountNote CustomerAccountNote Account Memo
APARToleranceGroup APARToleranceGroup Tolerance Group
HouseBank HouseBank House Bank
ItemIsToBePaidSeparately ItemIsToBePaidSeparately Individual Payt
PaytAdviceIsSentbyEDI PaytAdviceIsSentbyEDI Pmt adv. by EDI
PhysicalInventoryBlockInd PhysicalInventoryBlockInd Phys. Inv. Blk
UserAtCustomer UserAtCustomer Customer user
AccountingClerkPhoneNumber AccountingClerkPhoneNumber Act.clk tel.no.
AccountingClerkFaxNumber AccountingClerkFaxNumber Clerk's fax
AccountingClerkInternetAddress AccountingClerkInternetAddress Clrk's internet
AccountByCustomer AccountByCustomer Acct at cust.
IsToBeLocallyProcessed IsToBeLocallyProcessed Local Process.
CollectiveInvoiceVariant CollectiveInvoiceVariant Coll.Invce.Var.
LayoutSortingRule LayoutSortingRule Sort key
PaymentTerms PaymentTerms Pyt Terms
CreditMemoPaymentTerms CreditMemoPaymentTerms Cr Memo Terms
CustomerSupplierClearingIsUsed CustomerSupplierClearingIsUsed Clrg with vend.
RecordPaymentHistoryIndicator RecordPaymentHistoryIndicator Rec.Payt Hist.
PaymentMethodsList PaymentMethodsList Payment Methods
CashPlanningGroup CashPlanningGroup Planning Group
WithholdingTaxCountry WithholdingTaxCountry WTax C/R Key
ValueAdjustmentKey ValueAdjustmentKey Value Adj. Key
KnownOrNegotiatedLeave KnownOrNegotiatedLeave Known/Neg.Leave
ExtendedWhldgTaxIsActive ExtendedWhldgTaxIsActive Extended WTax Active
Country Country Venue: Ctry/Reg
CompanyCodeName CompanyCodeName Company Name
SupplierReleaseGroup SupplierReleaseGroup Release Group
PersonnelNumber PersonnelNumber Personnel No.
BuyingGroupAccountNumber BuyingGroupAccountNumber Buying Group
BillExchChargePaymentTerms BillExchChargePaymentTerms BoE Chrges Trms
CheckPaidDurationInDays CheckPaidDurationInDays Chk cashng time
CustomerPaymentBlockingReason CustomerPaymentBlockingReason Payment Block
PaymentMethodSupplement PaymentMethodSupplement Pmnt Meth. Sup.
AcctsReceivablePledgingCode AcctsReceivablePledgingCode AR Pledging Ind
LockboxInternalID LockboxInternalID Lockbox
CustPreviousMasterRecordNumber CustPreviousMasterRecordNumber Prev.Acct No.
PaymentClearingGroup PaymentClearingGroup Payment Clrg Grp ID
PaymentReason PaymentReason Payment Reason
DeletionIsBlocked DeletionIsBlocked CoCd del.block
BPHasActiveEntity
IsBusinessPurposeCompleted _BusinessPartner IsBusinessPurposeCompleted Purpose Completed
_BusinessPartnerCustomer _BusinessPartnerCustomer
_BusinessPartner _BusinessPartner

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 I_CustomerCompanyCodeTP.
-- 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.

CREATE VIEW I_CustomerCompanyCodeTP AS
SELECT
  CompanyCode,
  BusinessPartner,
  Customer,
  CompanyCode AS CompanyCodeForEdit,
  BusinessPartnerUUID,
  AccountingClerk,
  ReconciliationAccount,
  AuthorizationGroup,
  CustomerHeadOffice,
  AlternativePayerAccount,
  PaymentBlockingReason,
  InterestCalculationCode,
  InterestCalculationDate,
  IntrstCalcFrequencyInMonths,
  LastInterestCalcRunDate,
  CustomerAccountNote,
  APARToleranceGroup,
  HouseBank,
  ItemIsToBePaidSeparately,
  PaytAdviceIsSentbyEDI,
  PhysicalInventoryBlockInd,
  UserAtCustomer,
  AccountingClerkPhoneNumber,
  AccountingClerkFaxNumber,
  AccountingClerkInternetAddress,
  AccountByCustomer,
  IsToBeLocallyProcessed,
  CollectiveInvoiceVariant,
  LayoutSortingRule,
  PaymentTerms,
  CreditMemoPaymentTerms,
  CustomerSupplierClearingIsUsed,
  RecordPaymentHistoryIndicator,
  PaymentMethodsList,
  CashPlanningGroup,
  WithholdingTaxCountry,
  ValueAdjustmentKey,
  KnownOrNegotiatedLeave,
  ExtendedWhldgTaxIsActive,
  Country,
  CompanyCodeName,
  SupplierReleaseGroup,
  PersonnelNumber,
  BuyingGroupAccountNumber,
  BillExchChargePaymentTerms,
  CheckPaidDurationInDays,
  CustomerPaymentBlockingReason,
  PaymentMethodSupplement,
  AcctsReceivablePledgingCode,
  LockboxInternalID,
  CustPreviousMasterRecordNumber,
  PaymentClearingGroup,
  PaymentReason,
  DeletionIsBlocked,
  cast( 'X' as sdraft_is_active preserving type ) AS BPHasActiveEntity,
  _BusinessPartner.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted
FROM I_BusinessPartnerCustCo AS CustomerCompanyCode
LEFT OUTER JOIN I_BusinessPartnerTP_2 AS _BusinessPartner ON BusinessPartner = _BusinessPartner.BusinessPartner  -- association [1..1]
;