I_BPSuplrPurgDataProcChanges

DDL: I_BPSUPLRPURGDATAPROCCHANGES Type: view_entity TRANSACTIONAL Package: MDC_SUPPL_STAGING_BO

Changes for purchasing data

I_BPSuplrPurgDataProcChanges is a Transactional CDS View that provides data about "Changes for purchasing data" in SAP S/4HANA. It reads from 2 data sources (I_BPSuplrPurchasingDataProcess, I_BPSuplrPurchasingDataProcess) and exposes 43 fields with key fields MasterDataChangeProcess, MDChgProcessStep, MDChgProcessSrceSystem, MDChgProcessSrceObject, PurchasingOrganization. It has 4 associations to related views. Part of development package MDC_SUPPL_STAGING_BO.

Data Sources (2)

SourceAliasJoin Type
I_BPSuplrPurchasingDataProcess _Current from
I_BPSuplrPurchasingDataProcess _Current union_all

Associations (4)

CardinalityTargetAliasCondition
[1..1] I_BPSupplierProcess _Supplier $projection.MasterDataChangeProcess = _Supplier.MasterDataChangeProcess and $projection.MDChgProcessStep = _Supplier.MDChgProcessStep and $projection.MDChgProcessSrceSystem = _Supplier.MDChgProcessSrceSystem and $projection.MDChgProcessSrceObject = _Supplier.MDChgProcessSrceObject
[1..1] I_PurchasingOrganization _PurchasingOrganization $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization
[0..1] I_SupplierSubrangeText _SubrangeText $projection.SupplierSubrange = _SubrangeText.SupplierSubrange and $projection.Supplier = _SubrangeText.Supplier and _SubrangeText.Language = $session.system_language
[0..1] I_PlantStdVH _PlantName $projection.Plant = _PlantName.Plant

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Changes for purchasing data view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #TRANSACTIONAL view

Fields (43)

KeyFieldSource TableSource FieldDescription
KEY MasterDataChangeProcess I_BPSuplrPurchasingDataProcess MasterDataChangeProcess Process ID
KEY MDChgProcessStep I_BPSuplrPurchasingDataProcess MDChgProcessStep Step Number
KEY MDChgProcessSrceSystem I_BPSuplrPurchasingDataProcess MDChgProcessSrceSystem Source System
KEY MDChgProcessSrceObject I_BPSuplrPurchasingDataProcess MDChgProcessSrceObject Source ID
KEY PurchasingOrganization I_BPSuplrPurchasingDataProcess PurchasingOrganization Purchasing Organization
KEY SupplierSubrange I_BPSuplrPurchasingDataProcess SupplierSubrange Suppl. Subrange
KEY Plant I_BPSuplrPurchasingDataProcess Plant Valuation Area
KEY MDChgProcessModelTableName _ModelTable MDChgProcessModelTableName
KEY MDChangeProcessModelFieldName
KEY char1000asMDChgProcessRecordObjectID
MDChangeProcModelTableDesc _ModelTable MDChangeProcModelTableDesc
MDChangeProcessModelFieldDesc
MDChgProcModelNodeExternalName
MDChgProcModTableExternalName
MDChgProcModFieldExternalName
MDChgProcCurrentAttributeValue
MDChgProcPrevAttributeValue
MDChgProcessAttributeIsChanged
MDChgProcessSourceModified I_BPSuplrPurchasingDataProcess MDChgProcessSourceModified Modified
Supplier I_BPSuplrPurchasingDataProcess Supplier Supplier
Plant111asMDChgProcessRecordObjectText
MasterDataChangeProcess Process ID
KEY MDChgProcessStep I_BPSuplrPurchasingDataProcess MDChgProcessStep Step Number
KEY MDChgProcessSrceSystem I_BPSuplrPurchasingDataProcess MDChgProcessSrceSystem Source System
KEY MDChgProcessSrceObject I_BPSuplrPurchasingDataProcess MDChgProcessSrceObject Source ID
KEY PurchasingOrganization I_BPSuplrPurchasingDataProcess PurchasingOrganization Purchasing Organization
KEY SupplierSubrange I_BPSuplrPurchasingDataProcess SupplierSubrange Suppl. Subrange
KEY Plant I_BPSuplrPurchasingDataProcess Plant Valuation Area
KEY MDChgProcessModelTableName _ModelField MDChgProcessModelTableName
KEY MDChangeProcessModelFieldName _ModelField MDChangeProcessModelFieldName
KEY char1000asMDChgProcessRecordObjectID
MDChangeProcModelTableDesc _ModelField MDChangeProcModelTableDesc
MDChangeProcessModelFieldDesc _ModelField MDChangeProcessModelFieldDesc
MDChgProcModelNodeExternalName
MDChgProcModTableExternalName
MDChgProcModFieldExternalName
MDChgProcCurrentAttributeValue
MDChgProcPrevAttributeValue
MDChgProcessAttributeIsChanged
MDChgProcessSourceModified I_BPSuplrPurchasingDataProcess MDChgProcessSourceModified Modified
Supplier I_BPSuplrPurchasingDataProcess Supplier Supplier
Plant111asMDChgProcessRecordObjectText
_Supplier _Supplier

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_BPSuplrPurgDataProcChanges.
-- 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_BPSuplrPurgDataProcChanges AS
SELECT
  _Current.MasterDataChangeProcess AS MasterDataChangeProcess,
  _Current.MDChgProcessStep AS MDChgProcessStep,
  _Current.MDChgProcessSrceSystem AS MDChgProcessSrceSystem,
  _Current.MDChgProcessSrceObject AS MDChgProcessSrceObject,
  _Current.PurchasingOrganization AS PurchasingOrganization,
  _Current.SupplierSubrange AS SupplierSubrange,
  _Current.Plant AS Plant,
  _ModelTable.MDChgProcessModelTableName AS MDChgProcessModelTableName,
  cast ( '' as fieldname ) AS MDChangeProcessModelFieldName,
  cast( concat( concat ( concat( concat( concat( _Current.MDChgProcessSrceSystem, concat( '%%', _Current.MDChgProcessSrceObject )), concat( '%%', _Current.PurchasingOrganization )), concat( '%%', _Current.SupplierSubrange )), concat( '%%', _Current.Plant )), concat( '%%', _Current.BPAssignmentID )) as abap.char(1000) ) as MDChgProcessRecordObjectID AS char1000asMDChgProcessRecordObjectID,
  _ModelTable.MDChangeProcModelTableDesc AS MDChangeProcModelTableDesc,
  cast ('' as as4text ) AS MDChangeProcessModelFieldDesc,
  cast( 'BusPartSupplierPurchasingData' as fieldname ) AS MDChgProcModelNodeExternalName,
  cast( 'I_BPSupplierSubrangeTextProcTP' 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,
  _Current.Supplier AS Supplier,
  concat_with_space( concat_with_space(coalesce(_PurchasingOrganization.PurchasingOrganizationName,''), concat( concat( '(', _Current.PurchasingOrganization ), '),' ), 1), concat_with_space( concat_with_space(coalesce(_SubrangeText.SupplierSubrangeName,''), concat( concat( '(', _Current.SupplierSubrange ), ')' ), 1), concat_with_space(coalesce(_PlantName.PlantName,''), concat( concat( '(', _Current.Plant ), ')' ), 1), 1) , 1) as MDChgProcessRecordObjectText AS Plant111asMDChgProcessRecordObjectText
FROM I_BPSuplrPurchasingDataProcess AS _Current
LEFT OUTER JOIN I_BPSupplierProcess AS _Supplier ON MasterDataChangeProcess = _Supplier.MasterDataChangeProcess AND MDChgProcessStep = _Supplier.MDChgProcessStep AND MDChgProcessSrceSystem = _Supplier.MDChgProcessSrceSystem AND MDChgProcessSrceObject = _Supplier.MDChgProcessSrceObject  -- association [1..1]
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchasingOrganization ON PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization  -- association [1..1]
LEFT OUTER JOIN I_SupplierSubrangeText AS _SubrangeText ON SupplierSubrange = _SubrangeText.SupplierSubrange AND Supplier = _SubrangeText.Supplier AND _SubrangeText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_PlantStdVH AS _PlantName ON Plant = _PlantName.Plant  -- association [0..1]
-- UNION ALL with additional select branch(es): I_BPSuplrPurchasingDataProcess
;