I_BPCustomerCompanyGov
BP Customer Company Governance
I_BPCustomerCompanyGov is a Composite CDS View that provides data about "BP Customer Company Governance" in SAP S/4HANA. It reads from 2 data sources (I_BPCustomerCompanyProcess, I_CustomerCompany) and exposes 107 fields with key fields MasterDataChangeProcess, MDChgProcessStep, MDChgProcessSrceSystem, MDChgProcessSrceObject, CompanyCode. It has 3 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_BPCustomerCompanyProcess | I_BPCustomerCompanyProcess | from |
| I_CustomerCompany | I_CustomerCompany | union_all |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_BPCustomerGov | _Customer | $projection.MasterDataChangeProcess = _Customer.MasterDataChangeProcess and $projection.MDChgProcessStep = _Customer.MDChgProcessStep and $projection.MDChgProcessSrceSystem = _Customer.MDChgProcessSrceSystem and $projection.MDChgProcessSrceObject = _Customer.MDChgProcessSrceObject |
| [0..1] | I_MasterDataChangeProcess | _MasterDataChangeProcess | $projection.MasterDataChangeProcess = _MasterDataChangeProcess.MasterDataChangeProcess |
| [1..1] | I_CustomerToBusinessPartner | _CustomerToBusinessPartner | $projection.Customer = _CustomerToBusinessPartner.Customer |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | BP Customer Company Governance | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (107)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MasterDataChangeProcess | MasterDataChangeProcess | ||
| KEY | MDChgProcessStep | MDChgProcessStep | ||
| KEY | MDChgProcessSrceSystem | MDChgProcessSrceSystem | ||
| KEY | MDChgProcessSrceObject | MDChgProcessSrceObject | ||
| KEY | CompanyCode | CompanyCode | ||
| BPAssignmentID | BPAssignmentID | |||
| Customer | Customer | |||
| PersonnelNumber | PersonnelNumber | |||
| PhysicalInventoryBlockInd | PhysicalInventoryBlockInd | |||
| DeletionIndicator | DeletionIndicator | |||
| LayoutSortingRule | LayoutSortingRule | |||
| AccountingClerk | AccountingClerk | |||
| ReconciliationAccount | ReconciliationAccount | |||
| AuthorizationGroup | AuthorizationGroup | |||
| CustomerHeadOffice | CustomerHeadOffice | |||
| AlternativePayerAccount | AlternativePayerAccount | |||
| PaymentMethodsList | PaymentMethodsList | |||
| CustomerSupplierClearingIsUsed | CustomerSupplierClearingIsUsed | |||
| PaymentBlockingReason | PaymentBlockingReason | |||
| PaymentTerms | PaymentTerms | |||
| BillExchChargePaymentTerms | BillExchChargePaymentTerms | |||
| InterestCalculationCode | InterestCalculationCode | |||
| InterestCalculationDate | InterestCalculationDate | |||
| IntrstCalcFrequencyInMonths | IntrstCalcFrequencyInMonths | |||
| AccountByCustomer | AccountByCustomer | |||
| UserAtCustomer | UserAtCustomer | |||
| CustomerAccountNote | CustomerAccountNote | |||
| CashPlanningGroup | CashPlanningGroup | |||
| CollectiveInvoiceVariant | CollectiveInvoiceVariant | |||
| IsToBeLocallyProcessed | IsToBeLocallyProcessed | |||
| BPPeriodicAccountStatement | BPPeriodicAccountStatement | |||
| LastInterestCalcRunDate | LastInterestCalcRunDate | |||
| RecordPaymentHistoryIndicator | RecordPaymentHistoryIndicator | |||
| APARToleranceGroup | APARToleranceGroup | |||
| CheckPaidDurationInDays | CheckPaidDurationInDays | |||
| HouseBank | HouseBank | |||
| ItemIsToBePaidSeparately | ItemIsToBePaidSeparately | |||
| CustPreviousMasterRecordNumber | CustPreviousMasterRecordNumber | |||
| KnownOrNegotiatedLeave | KnownOrNegotiatedLeave | |||
| DunningNoticeGroup | DunningNoticeGroup | |||
| LockboxInternalID | LockboxInternalID | |||
| PaymentMethodSupplement | PaymentMethodSupplement | |||
| BuyingGroupAccountNumber | BuyingGroupAccountNumber | |||
| PaytAdviceIsSentbyEDI | PaytAdviceIsSentbyEDI | |||
| SupplierReleaseGroup | SupplierReleaseGroup | |||
| AccountingClerkFaxNumber | AccountingClerkFaxNumber | |||
| AccountingClerkInternetAddress | AccountingClerkInternetAddress | |||
| CreditMemoPaymentTerms | CreditMemoPaymentTerms | |||
| ValueAdjustmentKey | ValueAdjustmentKey | |||
| DeletionIsBlocked | DeletionIsBlocked | |||
| AccountingClerkPhoneNumber | AccountingClerkPhoneNumber | |||
| AcctsReceivablePledgingCode | AcctsReceivablePledgingCode | |||
| PaymentReason | PaymentReason | |||
| KEY | MDChgProcessStep | |||
| KEY | MDChgProcessSrceSystem | |||
| KEY | MDChgProcessSrceObject | |||
| KEY | CompanyCode | CompanyCode | ||
| BPAssignmentID | ||||
| Customer | Customer | |||
| PersonnelNumber | PersonnelNumber | |||
| PhysicalInventoryBlockInd | PhysicalInventoryBlockInd | |||
| DeletionIndicator | DeletionIndicator | |||
| LayoutSortingRule | LayoutSortingRule | |||
| AccountingClerk | AccountingClerk | |||
| ReconciliationAccount | ReconciliationAccount | |||
| AuthorizationGroup | AuthorizationGroup | |||
| CustomerHeadOffice | CustomerHeadOffice | |||
| AlternativePayerAccount | AlternativePayerAccount | |||
| PaymentMethodsList | PaymentMethodsList | |||
| CustomerSupplierClearingIsUsed | CustomerSupplierClearingIsUsed | |||
| PaymentBlockingReason | PaymentBlockingReason | |||
| PaymentTerms | PaymentTerms | |||
| BillExchChargePaymentTerms | BillExchChargePaymentTerms | |||
| InterestCalculationCode | InterestCalculationCode | |||
| InterestCalculationDate | InterestCalculationDate | |||
| IntrstCalcFrequencyInMonths | IntrstCalcFrequencyInMonths | |||
| AccountByCustomer | AccountByCustomer | |||
| UserAtCustomer | UserAtCustomer | |||
| CustomerAccountNote | CustomerAccountNote | |||
| CashPlanningGroup | CashPlanningGroup | |||
| CollectiveInvoiceVariant | CollectiveInvoiceVariant | |||
| IsToBeLocallyProcessed | IsToBeLocallyProcessed | |||
| BPPeriodicAccountStatement | BPPeriodicAccountStatement | |||
| LastInterestCalcRunDate | LastInterestCalcRunDate | |||
| RecordPaymentHistoryIndicator | RecordPaymentHistoryIndicator | |||
| APARToleranceGroup | APARToleranceGroup | |||
| CheckPaidDurationInDays | CheckPaidDurationInDays | |||
| HouseBank | HouseBank | |||
| ItemIsToBePaidSeparately | ItemIsToBePaidSeparately | |||
| CustPreviousMasterRecordNumber | CustPreviousMasterRecordNumber | |||
| KnownOrNegotiatedLeave | KnownOrNegotiatedLeave | |||
| DunningNoticeGroup | DunningNoticeGroup | |||
| LockboxInternalID | LockboxInternalID | |||
| PaymentMethodSupplement | PaymentMethodSupplement | |||
| BuyingGroupAccountNumber | BuyingGroupAccountNumber | |||
| PaytAdviceIsSentbyEDI | PaytAdviceIsSentbyEDI | |||
| SupplierReleaseGroup | SupplierReleaseGroup | |||
| AccountingClerkFaxNumber | AccountingClerkFaxNumber | |||
| AccountingClerkInternetAddress | AccountingClerkInternetAddress | |||
| CreditMemoPaymentTerms | CreditMemoPaymentTerms | |||
| ValueAdjustmentKey | ValueAdjustmentKey | |||
| DeletionIsBlocked | DeletionIsBlocked | |||
| AccountingClerkPhoneNumber | AccountingClerkPhoneNumber | |||
| AcctsReceivablePledgingCode | AcctsReceivablePledgingCode | |||
| PaymentReason | PaymentReason | |||
| MasterDataIsCurrent | ||||
| _Customer | _Customer |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'BP Customer Company Governance'
@Metadata.ignorePropagatedAnnotations: true
@VDM.viewType: #COMPOSITE
@ObjectModel.usageType:{
serviceQuality: #X,
sizeCategory: #S,
dataClass: #MIXED
}
define view entity I_BPCustomerCompanyGov
as select from I_BPCustomerCompanyProcess
association [1..1] to I_BPCustomerGov as _Customer on $projection.MasterDataChangeProcess = _Customer.MasterDataChangeProcess
and $projection.MDChgProcessStep = _Customer.MDChgProcessStep
and $projection.MDChgProcessSrceSystem = _Customer.MDChgProcessSrceSystem
and $projection.MDChgProcessSrceObject = _Customer.MDChgProcessSrceObject
association [0..1] to I_MasterDataChangeProcess as _MasterDataChangeProcess on $projection.MasterDataChangeProcess = _MasterDataChangeProcess.MasterDataChangeProcess
{
key MasterDataChangeProcess,
key MDChgProcessStep,
key MDChgProcessSrceSystem,
key MDChgProcessSrceObject,
key CompanyCode,
BPAssignmentID,
Customer,
PersonnelNumber,
PhysicalInventoryBlockInd,
DeletionIndicator,
LayoutSortingRule,
AccountingClerk,
ReconciliationAccount,
AuthorizationGroup,
CustomerHeadOffice,
AlternativePayerAccount,
PaymentMethodsList,
CustomerSupplierClearingIsUsed,
PaymentBlockingReason,
PaymentTerms,
BillExchChargePaymentTerms,
InterestCalculationCode,
InterestCalculationDate,
IntrstCalcFrequencyInMonths,
AccountByCustomer,
UserAtCustomer,
CustomerAccountNote,
CashPlanningGroup,
CollectiveInvoiceVariant,
IsToBeLocallyProcessed,
BPPeriodicAccountStatement,
LastInterestCalcRunDate,
RecordPaymentHistoryIndicator,
APARToleranceGroup,
CheckPaidDurationInDays,
HouseBank,
ItemIsToBePaidSeparately,
CustPreviousMasterRecordNumber,
KnownOrNegotiatedLeave,
DunningNoticeGroup,
LockboxInternalID,
PaymentMethodSupplement,
BuyingGroupAccountNumber,
PaytAdviceIsSentbyEDI,
SupplierReleaseGroup,
AccountingClerkFaxNumber,
AccountingClerkInternetAddress,
CreditMemoPaymentTerms,
ValueAdjustmentKey,
DeletionIsBlocked,
AccountingClerkPhoneNumber,
AcctsReceivablePledgingCode,
// WithholdingTaxCountry,
// @Semantics.booleanIndicator
// IsBusinessPurposeCompleted,
// PaymentClearingGroup,
PaymentReason,
cast(
case when MDChgProcessStep = _MasterDataChangeProcess.MDChgProcessCurrentStepNumber and _MasterDataChangeProcess.MDChgProcessCurrentStepNumber <> '0000' or
MDChgProcessStep = '0001' and _MasterDataChangeProcess.MDChgProcessCurrentStepNumber = '0000' then 'X'
else ' '
end as abap_boolean preserving type
) as MasterDataIsCurrent,
_Customer
} where MDChgProcessSourceModified <> 'D'
union all select from I_CustomerCompany
association [1..1] to I_BPCustomerGov as _Customer on $projection.MasterDataChangeProcess = _Customer.MasterDataChangeProcess
and $projection.MDChgProcessStep = _Customer.MDChgProcessStep
and $projection.MDChgProcessSrceSystem = _Customer.MDChgProcessSrceSystem
and $projection.MDChgProcessSrceObject = _Customer.MDChgProcessSrceObject
association [1..1] to I_CustomerToBusinessPartner as _CustomerToBusinessPartner on $projection.Customer = _CustomerToBusinessPartner.Customer
{
key '000000000000' as MasterDataChangeProcess,
key '0000' as MDChgProcessStep,
key '' as MDChgProcessSrceSystem,
key _CustomerToBusinessPartner._BusinessPartner.BusinessPartner as MDChgProcessSrceObject,
key CompanyCode,
'000000000002' as BPAssignmentID,
Customer,
PersonnelNumber,
PhysicalInventoryBlockInd,
DeletionIndicator,
LayoutSortingRule,
AccountingClerk,
ReconciliationAccount,
AuthorizationGroup,
CustomerHeadOffice,
AlternativePayerAccount,
PaymentMethodsList,
CustomerSupplierClearingIsUsed,
PaymentBlockingReason,
PaymentTerms,
BillExchChargePaymentTerms,
InterestCalculationCode,
InterestCalculationDate,
IntrstCalcFrequencyInMonths,
AccountByCustomer,
UserAtCustomer,
CustomerAccountNote,
CashPlanningGroup,
CollectiveInvoiceVariant,
IsToBeLocallyProcessed,
BPPeriodicAccountStatement,
LastInterestCalcRunDate,
RecordPaymentHistoryIndicator,
APARToleranceGroup,
CheckPaidDurationInDays,
HouseBank,
ItemIsToBePaidSeparately,
CustPreviousMasterRecordNumber,
KnownOrNegotiatedLeave,
DunningNoticeGroup,
LockboxInternalID,
PaymentMethodSupplement,
BuyingGroupAccountNumber,
PaytAdviceIsSentbyEDI,
SupplierReleaseGroup,
AccountingClerkFaxNumber,
AccountingClerkInternetAddress,
CreditMemoPaymentTerms,
ValueAdjustmentKey,
DeletionIsBlocked,
AccountingClerkPhoneNumber,
AcctsReceivablePledgingCode,
// WithholdingTaxCountry,
// IsBusinessPurposeCompleted,
// PaymentClearingGroup,
PaymentReason,
cast( 'X' as abap_boolean preserving type ) as MasterDataIsCurrent,
/* Associations */
_Customer
}
where
_CustomerToBusinessPartner._BusinessPartner.BusinessPartner is not initial
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BPCUSTOMERCOMPANYPROCESS",
"I_BUSINESSPARTNER",
"I_CUSTOMERCOMPANY",
"I_CUSTOMERTOBUSINESSPARTNER",
"I_MASTERDATACHANGEPROCESS"
],
"ASSOCIATED":
[
"I_BPCUSTOMERGOV"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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