Qeasy Cloud
Get Started

From Kingdee Outbound Requisition to Wangdiantong Other Outbound Order: A Single-Strategy Walkthrough of Cross-System Inventory Document Sync

· 卢剑航· Integration Solutions· 16 views· 4 min read
WDTKingdee Cloud供应链集成Inventory Sync轻易云单据同步

What This Strategy Solves

In supply chain integration, cross-system sync of inventory documents is the kind of task that looks like it works but quietly drifts out of balance. A typical retail company runs Kingdee Cloud Starry Sky as its financial and supply chain back office and Wangdiantong as the e-commerce warehouse front. When a warehouse raises an outbound requisition in Kingdee, picking and fulfillment need a corresponding "other outbound order" in Wangdiantong. Manual re-entry is slow and produces month-end discrepancies like "Kingdee says shipped, Wangdiantong says unshipped."

We use the Qeasy Data Integration Platform to host this single strategy. The goal is to push Kingdee outbound requisitions to Wangdiantong according to a fixed mapping so that document status, warehouse, SKU, and quantity stay aligned, giving e-commerce fulfillment a reliable source of truth and letting month-end reconciliation close itself.

Data Flow and Field Mapping

The data flow is: Kingdee Cloud Starry Sky (outbound requisition) → Qeasy middleware → Wangdiantong (other outbound order). The middleware is responsible for extraction, cleansing, mapping, push, and status writeback.

Key field mapping (simplified):

Business meaningKingdee source fieldMiddleware handlingWangdiantong target field
Document numberFBillNoPass-throughouter_no
Document dateFDateFormat yyyy-MM-ddorder_time
WarehouseFStockOrgId / FStockIdCentrally managed code mappingwarehouse_no
SKUFMaterialId.FNumberCode mapping, trim whitespacegoods_no
Requisition qtyFQtyUoM conversion, then pass-throughnum
RemarksFNoteTruncate, strip special charsremark
StatusFDocumentStatusDictionary mappingstatus

A point worth stressing: warehouse and SKU code mappings must be centrally managed. In Qeasy we keep these in a single maintainable mapping table rather than scattered across scripts, so adding a new warehouse or SKU only requires one edit.

Configuring on Qeasy

First, the source adapter is Kingdee Cloud Starry Sky, using its standard business document query interface filtered by document status and modification time. Avoid pulling the whole table at once.

Second, the target adapter is Wangdiantong Enterprise, calling its other-outbound-order create interface. A subtle point: Wangdiantong submits header and lines in batches. In Qeasy you wire them as three steps — write header, capture the returned document number, write lines — connected by variables inside one integration flow, to avoid orphan lines.

Third, field mapping. Header fields are mostly one-to-one; lines come from the FEntity array and are mapped row by row. A common pattern on customer sites is to process header and lines in separate phases: ship the header first, get the Wangdiantong document number, then ship the lines. If anything fails, only the lines retry, and the target system's document number range is not polluted.

Fourth, exception and retry. Qeasy has built-in retry and alerting. We typically configure: network errors auto-retry up to three times; business errors (for example, SKU master missing) go straight to an alert and an error queue, to avoid hammering the target with invalid retries.

Implementation Steps

Go-live usually runs in three phases.

Phase 1, incremental bootstrap. Use the last 7 days of approved Kingdee outbound requisitions for the first run to validate mappings, duplicate handling, and unit conversion. Schedule every 30 minutes and watch writeback completeness carefully.

Phase 2, full backfill. Once the incremental run is stable, trigger a one-off full backfill during off-peak hours (for example, early morning) to catch any historical gaps. Make the full backfill idempotent — enforce a unique constraint on the external document number (outer_no) in the target so repeated pushes do not create duplicate orders.

Phase 3, steady-state scheduling. Inventory documents are time-sensitive. We typically schedule production runs every 5 to 10 minutes, pulling incrementally by modification timestamp. This is the "dual-track incremental plus full" pattern common on customer sites: daily traffic is incremental, while initial go-live and exception recovery use the full track, and the two paths do not interfere.

Lessons Learned

Lesson 1: misaligned warehouse codes are the number-one pitfall. When the two systems use different warehouse structures, build the mapping table first, then go live. Never hard-code warehouses in scripts.

Lesson 2: unit conversion gets skipped. Kingdee might say "case" while Wangdiantong says "piece." If the middleware does not convert, every quantity is wrong, and you only notice at month-end reconciliation — far too late.

Lesson 3: split header and line submissions. Sending one big payload seems simpler, but rollback is painful if it fails. Phased submission means each step is retryable and easy to debug.

Lesson 4: cancelled or voided documents must be filtered out. A Kingdee requisition that has been voided, if pushed without a status filter, becomes a phantom outbound in Wangdiantong. Always include document status in the filter.

Lesson 5: respect rate limits. The Wangdiantong interface has a QPS ceiling. Configure sensible concurrency and pacing in Qeasy so peak hours do not take the target system down.

When It Fits and When It Doesn't

It fits when both sides expose standard business document APIs, the document structures are reasonably stable, and there is a clear external document number for idempotency. It does not fit when you need real-time strong consistency per record, when writes must land across multiple heterogeneous systems simultaneously, or when the master data (SKU, warehouse) is not yet unified — in that last case, sync the master data first, then the business documents.

Original content. Please credit the source when reposting: https://www.qeasy.cloud/insights/solutions/strat-wdt-kingdee-cloud-5281-ok-39d2dfee

Comments