Qeasy Cloud
Get Started

Sync from Kingdee Other-Outbound to Wangdiantong Subcontract-Outbound (3000 Cloud Warehouse): A Practical Guide

· 尹春锐· Integration Solutions· 7 views· 5 min read
WDTKingdee Cloud供应链集成Inventory Sync轻易云Qeasy

What This Strategy Solves

In one real supply-chain integration project, a retail enterprise used Kingdee Cloud Galaxy for finance and inventory ledger, and Wangdiantong for store-level and outsourced warehouse operations. A typical daily scenario: an Other-Outbound Order is created in Kingdee (representing transfer, subcontracted issue, or non-purchase return), but the warehouse staff needs to see a corresponding Subcontract-Outbound Order in Wangdiantong, targeting the 3000 Cloud Warehouse, so they can scan, verify, and register the exit on site.

It looks like "just push one document over," but there are three hidden obstacles: code systems, document types, and inventory dimensions. Kingdee's Other-Outbound Order is not a native document in Wangdiantong; the warehouse and item codes differ on both sides; quantity and lot number semantics also diverge.

We used Qeasy (the lightweight data integration platform) to host this strategy. The goal: once finance records the document in Kingdee, the warehouse side automatically sees the corresponding subcontract-outbound order in Wangdiantong, keeping both sides consistent and eliminating duplicate manual entry.

Data Flow and Field Mapping

The data flow is straightforward: Kingdee Cloud Galaxy (source) → Qeasy (middle layer, mapping and transformation) → Wangdiantong·Enterprise Qimen (target).

Key field mapping, based on common practices from real projects:

Business MeaningKingdee Cloud Galaxy (Source)Middle LayerWangdiantong (Target)
Document No.FBillNo (Other-Outbound header)Pass-throughExternal order number
Document typeBusiness type (Other-Outbound)Map to "Subcontract-Outbound"Document type flag
WarehouseFStockId (inventory org)Convert via warehouse code mapping tableTarget warehouse = 3000 Cloud Warehouse code
Item codeFMaterialIdConvert via item mapping table to Wangdiantong goods_idgoods_id
QuantityFQtyValidate non-negative, 2 decimalsnum
Lot numberFLotPass if present; empty string if absentbatch_no
RemarkFNotePrefix with "From Kingdee Other-Outbound"remark

The two mapping tables (warehouse code, item code) in the middle layer are the most error-prone parts of this strategy; we'll cover them in the lessons-learned section.

How to Configure in Qeasy

The configuration in Qeasy is not complex, but a few points must be nailed down:

  1. Source retrieval: Use Kingdee Cloud Galaxy's query interface; filter by document type = Other-Outbound and audit status = audited. Pull incrementally by FModifyDate to avoid full loads.
  2. Target write: Connect to Wangdiantong·Enterprise Qimen's subcontract-outbound creation interface. Target warehouse is hardcoded to 3000 Cloud Warehouse (specific to this strategy); do not parameterize it, to reduce mis-operation risk.
  3. Centralized code mapping management: The warehouse code and item code mapping tables are maintained in Qeasy's Data Asset Management rather than inside each strategy. When a new warehouse or item is added, only one place needs to change, and all related strategies pick it up automatically. This is one of the common patterns Qeasy customers use.
  4. Header and body phased processing: Write the header first, retrieve the target document number, then backfill; write the body line by line. Any single line failure should not block the rest; failed lines go to a separate retry queue.
  5. Idempotency key: Use "Kingdee document number + target warehouse" as the idempotency key; duplicate pushes will not generate duplicate documents. This is a safety net — incremental source retrieval already prevents most duplicates.

Implementation Steps

We recommend rolling out in three phases rather than enabling auto-scheduling immediately.

Phase 1: Full load trigger (manual run on go-live day) On go-live day, the business side first confirms whether historical Other-Outbound orders need backfill. The common practice is to sync only the audited-but-unsynced orders from the last 30 days, to avoid dumping too much legacy data. This step uses Qeasy's manual execution entry; no schedule yet.

Phase 2: Incremental start point confirmation (before first auto run) Take the maximum FModifyDate timestamp from the last full run as the incremental start point. Configure this in the strategy properties in Qeasy.

Phase 3: Daily scheduling (automatic) Schedule every 5 minutes (a granularity Qeasy natively supports), running in the public cloud environment. Choose a window that avoids Kingdee's month-end closing peak (e.g., after 23:00 on the last day of the month).

If the customer requires higher real-timeness, this strategy can also be wired to Kingdee's document audit event for event-driven execution, but that requires configuring message push on the Kingdee side — a bigger change; defer until steady-state operation is proven.

Lessons Learned

Pitfall 1: Warehouse code mapped once, forgot about new warehouses later Initially the mapping table contained only a few warehouses. Later the business side added a temporary transit warehouse — already created in Wangdiantong but not yet in Kingdee. The mapping table could not find it, Qeasy threw an error by default, and the whole document was stuck. The safe approach is to add a "code not found → write to pending queue" branch in the middle layer, rather than failing outright.

Pitfall 2: Item code case and surrounding whitespace Kingdee's exported item codes sometimes contain invisible characters or leading/trailing spaces, while Wangdiantong does strict matching. Always add a trim and full-width-to-half-width conversion in a Qeasy script node before mapping.

Pitfall 3: Empty lot number breaks Wangdiantong's validation Some items are lot-managed, but some historical documents have no lot number. Passing an empty string causes the Wangdiantong interface to error. The safe approach: if the source lot is empty and the item is lot-managed, default to "DEFAULT" or raise a clear business exception in the middle layer — do not silently swallow it.

Pitfall 4: Quantity precision Kingdee's quantity field sometimes carries 4 decimal places, while Wangdiantong accepts only 2. Add a round-and-truncate-to-2-decimals transformation node in Qeasy's field mapping to avoid interface-level errors.

Pitfall 5: Accidentally pushing test-environment Kingdee documents to production During testing, engineers created several test documents in the test Kingdee; Qeasy, pulling incrementally by FModifyDate, pushed them directly to production Wangdiantong. The safe fix is to add an environment whitelist in the strategy: only sync documents whose number prefix belongs to production; skip test-environment ones outright.

When This Strategy Applies — and When It Doesn't

Applies: Enterprises using Kingdee as inventory ledger and Wangdiantong as front-end warehouse operations; a genuine business mapping from "Other-Outbound" to "Subcontract-Outbound"; 3000 Cloud Warehouse is the fixed target warehouse. Does not apply: Both sides run their own inventory flows and require bidirectional sync; no mapping foundation exists for items or warehouses; the business side requires real-time sub-second sync (this strategy currently runs at a 5-minute scheduling granularity).

Original content. Please credit the source when reposting: https://www.qeasy.cloud/insights/solutions/strat-wdt-kingdee-cloud-0874-3000-c44cb7d1

Comments