I_BPCustSalesAreaProcChanges

DDL: I_BPCUSTSALESAREAPROCCHANGES Type: view_entity TRANSACTIONAL Package: MDC_CUST_STAGING_BO

BP Customer Sales Area Process Changes

I_BPCustSalesAreaProcChanges is a Transactional CDS View that provides data about "BP Customer Sales Area Process Changes" in SAP S/4HANA. It reads from 2 data sources (I_BPCustomerSalesAreaProcess, I_BPCustomerSalesAreaProcess) and exposes 41 fields with key fields MasterDataChangeProcess, MDChgProcessStep, MDChgProcessSrceSystem, MDChgProcessSrceObject, SalesOrganization. It has 4 associations to related views. Part of development package MDC_CUST_STAGING_BO.

Data Sources (2)

SourceAliasJoin Type
I_BPCustomerSalesAreaProcess Current from
I_BPCustomerSalesAreaProcess Current union_all

Associations (4)

CardinalityTargetAliasCondition
[1..1] I_BPCustomerProcess _Customer $projection.MasterDataChangeProcess = _Customer.MasterDataChangeProcess and $projection.MDChgProcessStep = _Customer.MDChgProcessStep and $projection.MDChgProcessSrceSystem = _Customer.MDChgProcessSrceSystem and $projection.MDChgProcessSrceObject = _Customer.MDChgProcessSrceObject
[0..1] I_SalesOrganizationText _SalesOrganizationText $projection.SalesOrganization = _SalesOrganizationText.SalesOrganization and _SalesOrganizationText.Language = $session.system_language
[0..1] I_DistributionChannelText _DistributionChannelText $projection.DistributionChannel = _DistributionChannelText.DistributionChannel and _DistributionChannelText.Language = $session.system_language
[0..1] I_DivisionText _DivisionText $projection.Division = _DivisionText.Division and _DivisionText.Language = $session.system_language

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label BP Customer Sales Area Process Changes view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #TRANSACTIONAL view

Fields (41)

KeyFieldSource TableSource FieldDescription
KEY MasterDataChangeProcess I_BPCustomerSalesAreaProcess MasterDataChangeProcess Process ID
KEY MDChgProcessStep I_BPCustomerSalesAreaProcess MDChgProcessStep Step Number
KEY MDChgProcessSrceSystem I_BPCustomerSalesAreaProcess MDChgProcessSrceSystem Source System
KEY MDChgProcessSrceObject I_BPCustomerSalesAreaProcess MDChgProcessSrceObject Source ID
KEY SalesOrganization I_BPCustomerSalesAreaProcess SalesOrganization Sales Organization
KEY DistributionChannel I_BPCustomerSalesAreaProcess DistributionChannel RefDistCh-Cust/Mat.
KEY Division I_BPCustomerSalesAreaProcess Division Internal Division ID
KEY BPAssignmentID I_BPCustomerSalesAreaProcess BPAssignmentID Assignment ID
KEY MDChgProcessModelTableName ModelTable MDChgProcessModelTableName
KEY MDChangeProcessModelFieldName
KEY char1000asMDChgProcessRecordObjectID
MDChangeProcModelTableDesc ModelTable MDChangeProcModelTableDesc
MDChangeProcessModelFieldDesc
MDChgProcModelNodeExternalName
MDChgProcModTableExternalName
MDChgProcModFieldExternalName
MDChgProcCurrentAttributeValue
MDChgProcPrevAttributeValue
MDChgProcessAttributeIsChanged
MDChgProcessSourceModified I_BPCustomerSalesAreaProcess MDChgProcessSourceModified Modified
MasterDataChangeProcess Process ID
KEY MDChgProcessStep I_BPCustomerSalesAreaProcess MDChgProcessStep Step Number
KEY MDChgProcessSrceSystem I_BPCustomerSalesAreaProcess MDChgProcessSrceSystem Source System
KEY MDChgProcessSrceObject I_BPCustomerSalesAreaProcess MDChgProcessSrceObject Source ID
KEY SalesOrganization I_BPCustomerSalesAreaProcess SalesOrganization Sales Organization
KEY DistributionChannel I_BPCustomerSalesAreaProcess DistributionChannel RefDistCh-Cust/Mat.
KEY Division I_BPCustomerSalesAreaProcess Division Internal Division ID
KEY BPAssignmentID I_BPCustomerSalesAreaProcess BPAssignmentID Assignment ID
KEY MDChgProcessModelTableName ModelField MDChgProcessModelTableName
KEY MDChangeProcessModelFieldName ModelField MDChangeProcessModelFieldName
KEY char1000asMDChgProcessRecordObjectID
MDChangeProcModelTableDesc ModelField MDChangeProcModelTableDesc
MDChangeProcessModelFieldDesc ModelField MDChangeProcessModelFieldDesc
MDChgProcModelNodeExternalName
MDChgProcModTableExternalName
MDChgProcModFieldExternalName
MDChgProcCurrentAttributeValue
MDChgProcPrevAttributeValue
MDChgProcessAttributeIsChanged
MDChgProcessSourceModified I_BPCustomerSalesAreaProcess MDChgProcessSourceModified Modified
_Customer _Customer

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_BPCustSalesAreaProcChanges.
-- 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_BPCustSalesAreaProcChanges AS
SELECT
  Current.MasterDataChangeProcess AS MasterDataChangeProcess,
  Current.MDChgProcessStep AS MDChgProcessStep,
  Current.MDChgProcessSrceSystem AS MDChgProcessSrceSystem,
  Current.MDChgProcessSrceObject AS MDChgProcessSrceObject,
  Current.SalesOrganization AS SalesOrganization,
  Current.DistributionChannel AS DistributionChannel,
  Current.Division AS Division,
  Current.BPAssignmentID AS BPAssignmentID,
  ModelTable.MDChgProcessModelTableName AS MDChgProcessModelTableName,
  cast ( '' as fieldname ) AS MDChangeProcessModelFieldName,
  cast( concat( concat ( concat( concat( concat( Current.MDChgProcessSrceSystem, concat( '%%', Current.MDChgProcessSrceObject )), concat( '%%', Current.SalesOrganization )), concat( '%%', Current.DistributionChannel )), concat( '%%', Current.Division )), concat( '%%', Current.BPAssignmentID )) as abap.char(1000) ) as MDChgProcessRecordObjectID AS char1000asMDChgProcessRecordObjectID,
  ModelTable.MDChangeProcModelTableDesc AS MDChangeProcModelTableDesc,
  cast ('' as as4text ) AS MDChangeProcessModelFieldDesc,
  cast( 'BusinessPartnerSalesArea' as fieldname ) AS MDChgProcModelNodeExternalName,
  cast( 'I_BPCustomerSalesAreaProcessTP' as fieldname ) AS MDChgProcModTableExternalName,
  cast( '' as fieldname ) AS MDChgProcModFieldExternalName,
  cast( '' as abap.char( 260 ) ) AS MDChgProcCurrentAttributeValue,
  cast( '' as abap.char( 260 ) ) AS MDChgProcPrevAttributeValue,
  cast( '' as boolean ) AS MDChgProcessAttributeIsChanged,
  Current.MDChgProcessSourceModified AS MDChgProcessSourceModified
FROM I_BPCustomerSalesAreaProcess AS Current
LEFT OUTER JOIN I_BPCustomerProcess AS _Customer ON MasterDataChangeProcess = _Customer.MasterDataChangeProcess AND MDChgProcessStep = _Customer.MDChgProcessStep AND MDChgProcessSrceSystem = _Customer.MDChgProcessSrceSystem AND MDChgProcessSrceObject = _Customer.MDChgProcessSrceObject  -- association [1..1]
LEFT OUTER JOIN I_SalesOrganizationText AS _SalesOrganizationText ON SalesOrganization = _SalesOrganizationText.SalesOrganization AND _SalesOrganizationText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_DistributionChannelText AS _DistributionChannelText ON DistributionChannel = _DistributionChannelText.DistributionChannel AND _DistributionChannelText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_DivisionText AS _DivisionText ON Division = _DivisionText.Division AND _DivisionText.Language = $session.system_language  -- association [0..1]
-- UNION ALL with additional select branch(es): I_BPCustomerSalesAreaProcess
;