Part Optimization

The view SAP Ariba: Part Optimizations (RL) (SAP_PROC_SA_RL_PART_OPTIMIZATI) is built to access the data referring to Invoice Fact Table, based on different entities, primarily Source System, Part, Company, UNSPSC, Supplier, Contract, Account etc. In addition, this view provides calculations related to Supplier Optimization Cost, Purchase Price Variance and Purchase Price Alignment.

The list of views used to build Part Optimization view are as below:

  • SAP_PROC_SA_IL_InvoiceLineItemFact

  • SAP_PROC_SA_HL_SupplierDim

  • SAP_PROC_SA_IL_SourceSystemDim

  • SAP_PROC_SA_IL_CompanySiteDim

  • SAP_PROC_SA_IL_CostCenterDim

  • SAP_PROC_SA_IL_PartDim

  • SAP_PROC_SA_IL_UNSPSCDim

  • SAP_PROC_SA_IL_ContractDim

  • SAP_PROC_SA_HL_SOC_Variance

  • SAP_PROC_SA_HL_PPA_Variance

  • SAP_PROC_SA_HL_PPV_Variance

The views related to Supplier Optimization Cost (SOC), Purchase Price Variance (PPV) and Purchase Price Alignment (PPA) are created using SQL Script. This allows to use some of the SQL functions not supported in DWC graphical views as well as develop complex calculations.

Ex.

There are three SQL Script views created to support SOC, PPV and PPA calculations:

SAP Ariba: Spend Analysis SOC Variance (SAP_PROC_SA_HL_SOC_Variance)

SAP Ariba: Spend Analysis PPA Variance (SAP_PROC_SA_HL_PPA_Variance)

SAP Ariba: Spend Analysis PPV Variance (SAP_PROC_SA_HL_PPV_Variance)

List of calculations done in the view are as below.

Field

Description

Calculation

Row Count

Used to count number of rows by any given dimension. Ex count rows by ERP Supplier Name

1

Accounting Quarter

Accounting Quarter

substring(quarter(accounting_date_day), 6,2)

Accounting Month

Accounting Month

CONCAT(

Ucase(substring(monthname(accounting_date_day),1, 1)) ,

lcase(substring(monthname(accounting_date_day),2, 2))

)

Accounting Year

Accounting Year

YEAR(accounting_date_day)