銷售業績洞察

這個消費資料產品範例提供範例,說明如何使用 SAP ERP 或 SAP BDC 來源資料,加速取得銷售業績健康狀態的洞察資訊。

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

  • 依產品、區域和銷售機構,盡量提高收益。
  • 追蹤各發布管道和部門的成效。
  • 運用 AI 找出履單瓶頸或準時送達趨勢,瞭解這些因素對收益和成本的影響。

參考架構

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

Cortex Framework 的銷售業績洞察資訊使用資料產品範例參考架構

圖 1:銷售業績 Cortex Framework 的洞察資訊消耗資料產品範例參考架構。

必要資料產品

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

  • 客戶
  • 交貨文件
  • 銷售文件
  • 銷售組織架構
  • Materials

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

  • 客戶
  • 銷售訂單

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

如要部署「銷售業績洞察」資料產品,請在 config/config.yaml 檔案中啟用該產品,方法是在 data.modules.products 下方註冊資料產品模組。

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

SAP ERP 來源資料產品

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

data:
  modules:
    products:
      # Enabled Sales Performance sample (SAP ERP version)
      - moduleId: sap_sales_performance_sample
        modulePath: cortex_samples.sap.products.sales_performance
        enabled: true # If using configuration file based on config.yaml.example, please the `enabled` flag is set to `true`
        dataTargetId: product_target
        dependencyBindings:
          sapCustomers: sap_customers
          sapSalesDocuments: sap_sales_documents
          sapDeliveryDocuments: sap_delivery_documents
          sapSalesOrganizationalStructure: sap_sales_organizational_structure
          sapMaterials: sap_materials

SAP BDC 來源資料產品

如要啟用 SAP BDC 規範資料產品,請按照資料目錄說明文件所述,確保外部資料目錄模組已在 data.modules.catalogs 下註冊,並新增下列設定:

data:
  modules:
    products:
      # Enabled Sales Performance sample (SAP BDC version)
      - moduleId: sap_bdc_sales_performance_sample
        modulePath: cortex_samples.sap_bdc.products.sales_performance
        enabled: true # If using configuration file based on config.yaml.example, please the `enabled` flag is set to `true`
        dataTargetId: product_target
        dependencyBindings:
          sapBdcCustomer: sap_bdc_catalog
          sapBdcSalesOrder: sap_bdc_catalog

實體關係圖

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

SAP ERP 銷售業績實體關係圖

SAP ERP 銷售業績實體關係圖

圖 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/sales_performance)
  • SAP BDC,或使用路徑 src/data_modules/cortex_samples/sap_bdc/products/sales_performance 在本機原始碼中

啟用 AI 代理程式

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