供應商支出分析

這個消費資料產品範例提供範例,說明如何使用 SAP ERP 或 SAP BDC 來源資料,加速深入瞭解供應商支出狀況。

你可以使用這項功能執行下列操作:

  • 依素材類型最佳化總支出,並追蹤國家/地區集中度。
  • 瞭解隱藏的採購模式,盡量提高採購價值。
  • 運用 AI 發掘新洞察資料。

參考架構

高階參考架構會概略說明饋送此使用案例所需的來源特定資料產品。

Cortex Framework 的消費資料產品範例參考架構

圖 1:供應商支出 分析消費資料產品的 Cortex Framework 參考架構範例。

必要資料產品

如要以 SAP ERP 來源資料為基礎建構,必須使用下列Cortex Framework 資料產品

  • 廠商
  • 購買文件
  • 採購機構架構
  • Materials

如要以 SAP BDC 來源資料為基礎建構,必須使用下列 BDC 資料產品

  • 訂購單 (資料表:purchaseorderpurchaseorderitempurchaseorderscheduleline)
  • 供應商
  • 採購機構
  • 採購設定資料

在 Google Cloud Google Cloud Cortex Framework 中啟用資料產品

如要部署供應商支出分析資料產品,您必須在 config/config.yaml 檔案中啟用該產品,方法是在 data.modules.products 下方註冊資料產品模組。

如要進一步瞭解如何設定 config/config.yaml,請參閱「部署」和「部署設定」說明文件。

SAP ERP 來源資料產品

如要啟用 SAP ERP 整合資料產品,請在 products: 區段下方新增下列設定,並確保所有基礎資料產品也已設定並啟用:

data:
  modules:
    products:
      # Enabled Supplier Spend Analysis sample (SAP ERP version)
      - moduleId: sap_supplier_spend_analysis_sample
        modulePath: cortex_samples.sap.products.supplier_spend_analysis
        enabled: true # If using configuration file based on config.yaml.example, please the `enabled` flag is set to `true`
        dataTargetId: product_target
        dependencyBindings:
          sapMaterials: sap_materials
          sapPurchasingDocuments: sap_purchasing_documents
          sapPurchasingOrganizationalStructure: sap_purchasing_organizational_structure
          sapVendors: sap_vendors

SAP BDC 來源資料產品

如要啟用 SAP BDC 規範資料產品,請確認外部資料目錄已在 data.modules.catalogs 下註冊,並新增下列設定:

data:
  modules:
    products:
      # Enabled Supplier Spend Analysis sample (SAP BDC version)
      - moduleId: sap_bdc_supplier_spend_analysis_sample
        modulePath: cortex_samples.sap_bdc.products.supplier_spend_analysis
        enabled: true # If using configuration file based on config.yaml.example, please the `enabled` flag is set to `true`
        dataTargetId: product_target
        dependencyBindings:
          sapBdcSupplier: sap_bdc_catalog
          sapBdcProcurementConfigurationData: sap_bdc_catalog
          sapBdcPurchasingOrganization: sap_bdc_catalog
          sapBdcPurchaseOrder: sap_bdc_catalog

實體關係圖

下列實體關係 (ER) 圖表說明資料產品檢視區塊的結構,以及這些檢視區塊與來源和相關聯基礎資料表的關係。

SAP ERP 供應商支出分析 ER 圖

SAP ERP 供應商支出分析 ER 圖

圖 2:供應商支出分析:適用於 Cortex Framework 的 SAP ERP ER 圖表。

SAP BDC 供應商支出分析 ER 圖

SAP BDC 供應商支出分析 ER 圖

圖 3. 供應商支出分析:適用於 Cortex Framework 的 SAP BDC ER 圖。

原始碼

如要查看這個銷售業績消耗資料產品範例的原始碼,請前往存放區:

  • SAP ERP 或本機原始碼 (使用路徑 src/data_modules/cortex_samples/sap/products/supplier_spend_analysis)
  • SAP BDC,或使用路徑 src/data_modules/cortex_samples/sap_bdc/products/supplier_spend_analysis 在本機原始碼中

啟用 AI 代理程式

在 BigQuery 中建立銷售業績洞察資料模型後,您可能會想建構自訂資料代理程式。您可以使用自然語言直接查詢銷售趨勢和成效指標,不必編寫複雜的 SQL。