Qeasy Cloud
Get Started

Receiving Notice to WMS Purchase Order Sync: A Single-Strategy Practical Guide

· Integration Solutions· 11 views· 4 min read
WDTKingdee Cloud收料通知单旺店通采购订单轻易云供应链集成策略同步

What This Strategy Solves

In supply chain integration, the receiving step is where numbers most often drift. In one retail engagement, the ERP side had approved receiving notices, but the warehouse kept waiting—and clerks re-typed them by hand. Within a week, discrepancies piled up into the hundreds.

This strategy takes the ERP-side receiving notice and rewrites it as a WMS-side purchase order so the warehouse can pick, receive, and put away right away. On customer sites we typically use the Qeasy data integration platform to stitch source query, field mapping, and target push into one observable, replayable strategy.

Data Flow and Field Mapping

The overall flow is: Kingdee Cloud (source, QUERY) → Qeasy middleware → WMS (target, EXECUTE). The source uses executeBillQuery to pull incrementally by bill number; the target calls wdt.purchase.order.push to write the document.

Key field mapping (excerpt):

Business MeaningSource Field (Kingdee Cloud)Target Field (WMS)Notes
Bill NumberFBillNoouter_noAPI bill number, must be unique
Material CodeFMaterialId.fnumber(line SKU)Mapping maintained centrally
Receiving OrgFStockOrgId.FNumberwarehouse_noMaps to warehouse number
SupplierFSupplierIdprovider_noSupplier master must exist
Business DateFDate(business field)Used for time-order checks
Doc StatusFDocumentStatus(filter)Only approved docs are synced

The middleware does three things: code mapping (material, org, supplier), header/line split-and-merge, and status/date filtering. This is also where Qeasy's common practice of "centralized code mapping" lives—keep the volatile mappings in platform tables, never hard-code them in scripts.

How to Configure on Qeasy

On the Qeasy data integration platform, a strategy is essentially source-fetch → transform → target-write.

Source side: configure the Kingdee Cloud query executeBillQuery, with an incremental cursor on FBillNo, filtering FDocumentStatus for approved documents. The returned structure should carry both header and lines for later splitting.

Transform layer: in the Qeasy transform canvas, first split the source payload into an internal "header + entry lines" model, then rewrite it to match the target contract. Line-level material codes go through the mapping table, warehouse numbers come from the receiving-org mapping, supplier numbers the same way. outer_no takes FBillNo directly, but enforce length and uniqueness checks.

Target side: call wdt.purchase.order.push, filling required fields (provider_no, warehouse_no, outer_no) per the target API contract. Non-required fields like contact and buyer can be left null for the warehouse to fill in later.

Scheduling: source runs */4 * * * *, target runs */6 * * * *, offset by minutes so the two ends don't hit the API at the same instant.

Implementation Steps

We usually roll out this strategy in three phases.

Phase 1 — incremental start point. On Qeasy, run a small batch of historical approved documents with a "time window + doc status" filter, confirm mapping is correct and the target accepts the payload. This phase only validates, not production.

Phase 2 — full backfill. Loosen the filter, run a one-time full backfill, and turn on Qeasy's alerting and logs to watch return codes and elapsed time.

Phase 3 — steady-state scheduling. Switch to incremental mode, run source */4 and target */6 on schedule, and configure retry and dead-letter handling. Among Qeasy customers, a common pattern is "incremental + full dual-track": incremental for freshness, full backfill at night as a reconciliation safety net.

Lessons Learned

  • Code mapping not centralized. On the first go-live, material codes were hard-coded in transform scripts. Three months later, both sides disagreed. The safe approach is to use Qeasy's mapping tables so when source codes change, the strategy follows automatically.

  • outer_no too long or duplicated. When the target uses FBillNo as the API bill number, length overflow fails immediately. The safe approach is to add length-truncation and dedup checks in the transform layer; duplicates should go through idempotent retry rather than create new docs.

  • Header and lines not phased. The first attempt used a single header filter to pull everything, and the line payload timed out. The safe approach is "header-then-lines in two phases": pull header incrementally, then fetch lines by entry id, then merge and push.

  • Supplier master missing. A supplier number exists on the source side but not in the target master, and the push errors out. The safe approach is to front-load a supplier-master check in the sync strategy, or create the master on the target before pushing the order.

  • Time zone and date format. Source FDate is a date string; the target has timezone expectations. The safe approach is to normalize to yyyy-MM-dd HH:mm:ss in the middleware so the target parses cleanly.

When to Use and When Not To

Use it when approved ERP receiving notices need to flow down to the WMS for pick/receive/put-away, and master data (material, supplier, warehouse) is already in place. Avoid it when source documents are frequently reversed or voided, when the target cannot do idempotent upsert by outer_no, and when multi-level approval needs human intervention—direct sync in those cases will pollute the WMS with dirty data.

Original content. Please credit the source when reposting: https://www.qeasy.cloud/insights/solutions/strat-wdt-kingdee-cloud-1956-n4cb68fab-56473207

Comments