Procurement on Databricks

Supplier scorecard and corrective action on Databricks

Scores every supplier each month from receipts, quality notifications and invoices, and opens a corrective action with the supplier when the score falls below the threshold.

SCREENSDATA HANDLERSDATABRICKS · READ IN PLACES01 ScorecardS02 Supplier detailS03 Corrective actionS04 Plan reviewS05 ProgressS06 Boarddh_supplier_masterSupplier mastersilver.vendordh_purchase_order_linePurchase order linesilver.purchase_order_line ·gold.po_line_versionsdh_goods_receiptGoods receiptsilver.goods_movementdh_quality_notificationQuality notificationsilver.quality_notificationdh_supplier_invoiceSupplier invoicesilver.supplier_invoiceWRITE BACK TO DATABRICKSQuality notification → MERGE INTO gold.lima_app_decisionsSupplier master → MERGE INTO gold.lima_app_decisionsrows stay in Databricks · access rules applied at read time · each write acknowledged and logged
The screens of the app, the data handler behind each, and the Databricks object it reads in place. Writes below the line go through MERGE into a Lima-owned table, with the operational write to the ERP of record.
5
objects read in place from Databricks
catalogue
6
screens on those rows
catalogue
5 days
to production-grade
estimate
2
objects written back
catalogue
0
rows copied to build it
product
What the app reads

The Databricks objects behind each handler

Delta tables in Unity Catalog are read in place through a SQL warehouse: the app sends only the filter and the columns it needs. The Backbone landing model (bronze, silver and gold) is the usual source, so history and aggregates are already prepared and lineage is registered in Unity Catalog.

ObjectRead fromFields the app usesFreshness
Supplier mastersilver.vendorvendor_id (id) · name (name) · country (country) · blocked_flag (block)prepared by the Backbone; refreshed on its schedule
Purchase order linesilver.purchase_order_line · gold.po_line_versionsnet_value (value) · delivery_date (delivery date) · po_number (number) · po_line (line)prepared by the Backbone; refreshed on its schedule
Goods receiptsilver.goods_movementposting_date (date) · document_id (document) · po_number (po) · material_id (material)prepared by the Backbone; refreshed on its schedule
Quality notificationsilver.quality_notificationnotification_id (number) · type (type) · material_id (material) · vendor_id (vendor)prepared by the Backbone; refreshed on its schedule
Supplier invoicesilver.supplier_invoicegross_amount (amount) · invoice_id (number) · vendor_id (vendor) · po_number (po)prepared by the Backbone; refreshed on its schedule
The trigger

The start criterion in Databricks's own fields

In plain words: On the first working day of each month, a supplier with at least 5 receipts in the last 3 months whose score from on-time delivery, quality and price is below 70.

The criterion runs in Databricks through the data handler, so only the matching rows return. The editor shows the rows it selects, and their count, as it is written.

# start criterion in Databricks fields
score(posting_date against delivery_date, notification_id per 100 receipts, gross_amount against net_value) < 70 over the last 3 months

# the same criterion in canonical fields
score({gr.date} against {po.delivery_date}, {qn.number} per 100 receipts, {invoice.amount} against {po.value}) < 70 over the last 3 months
What the app writes back

Through MERGE and the system of record

Decisions are recorded in a Lima-owned gold table with MERGE INTO, so notebooks and dashboards see them next to the history. The operational write goes to the system of record through its released interface, and the app records the acknowledgement. For this app the operational change (a corrective action notification created with the supplier's actions as tasks with owners and due dates) goes to SAP S/4HANA or Oracle Fusion through its released interface, and the pair pages for those systems show the exact call.

ObjectWhat changesInterface
Quality notificationa corrective action notification created with the supplier's actions as tasks with owners and due datesMERGE INTO gold.lima_app_decisions
Supplier masterpurchasing block set when the category lead places the supplier on holdMERGE INTO gold.lima_app_decisions
Acknowledged and logged

Each write stores the identifier Databricks returns beside the decision, the person and the time, so the log answers who changed what, and the reconciliation shows it arrived.

Access and prerequisites

What is in place before the first build

Unity Catalog grants and row filters are mapped to Lima access policies once, so a person sees the same rows in the app that they see in a notebook.

  • A service principal with SELECT on the silver and gold schemas and MODIFY on the Lima decision schema
  • A SQL warehouse (a small serverless warehouse serves most screens)
  • The Backbone landing model in place for the objects the app uses, or your own silver tables registered
  • The system of record connected for the operational write
Register the handlers5 objects from the catalog; each shows its rows at once.
Why the lake

History and aggregates, read where they land

This app reads supplier master from Databricks because the screens need history at scale: months of rows, aggregates by period, several versions. The Backbone lands the objects in the conformed model and refreshes them on a schedule, and the handler reads them in place with the filter and the columns pushed down. The person's grants in Databricks decide what they see.

The operational rows the person acts on can come live from the ERP in the same app: one handler per object per system, and a screen that shows both.

Readsconformed and history tables, in placeDatabricks
Decision recordMERGE into a Lima-owned tablebeside the history
Operational writeto the ERP of record through its interfaceacknowledged
GrantsDatabricks roles and row policies honouredat read time
Nearby

This app on other systems, and other apps on Databricks

Supplier scorecard and corrective action on

Other apps on Databricks

Terms on this page

ScorecardA monthly score per supplier made of on-time delivery, quality and price.
Corrective actionA plan the supplier commits to for removing the cause of a problem, with owners and dates.
Read in placeThe rows stay in Databricks; the handler sends the filter and the columns and Databricks returns the matching rows.
Questions

Does this app copy data out of Databricks?

The screens read through handlers that leave the rows in Databricks. The conformed tables it reads were landed there by the Backbone from the ERP; the app reads them there.

What does Databricks need to allow?

The prerequisites above: an integration identity with read rights on the objects listed and write rights on the interfaces named, connectivity, and the scopes agreed with the process owner.

Can I run it on another system as well?

Yes. The screens, criteria and roles stay; the handlers are re-bound to the other system's objects, and the app's other system pages show them.

See this app on your data

Bring the process and the systems it touches. In the first session we register the data handlers, draw the levels or the lanes and run the first screen on your live rows.