Qeasy Cloud
Get Started

Kingdee Outbound Application to Wangdiantong Raw Orders: A Single-Strategy Sync Tutorial

· 何金辉· Integration Solutions· 11 views· 3 min read
WDTKingdee Cloud供应链集成销售订单同步轻易云私有化

What This Strategy Solves

In one retail engagement, the ERP (Kingdee Cloud) handled outbound applications and inventory dispatch, while the front-end OMS (Wangdiantong) captured raw e-commerce orders and triggered fulfillment. The gap appeared at the "outbound application → raw order" handoff: once an outbound application was approved in the ERP, it had to land in the OMS quickly so picking and shipping could proceed. When the link broke, warehouses ended up with a familiar mess — the order lived in the ERP, the goods sat in the warehouse, but the OMS had no idea which order to pick. We used the Qeasy data integration platform to bridge this: parsing Kingdee's outbound application documents by store and reshaping them into the raw order format Wangdiantong expects, so approval triggers an immediate push and documents never pile up.

Data Flow and Field Mapping

The overall pipeline is: Kingdee Cloud (source) → Qeasy middleware (transformation) → Wangdiantong Flagship Edition (target).

Business MeaningKingdee Cloud (Source)Qeasy Mapping LogicWangdiantong (Target)
Document primary keyFEntity_FEntryIDPass-throughInternal primary key
Document numberFBillNoStored in writeback area for lookup-
Application orgFStockOrgId.FNumberEncoding mapping centrally managed-
Application dateFDateNormalized to yyyy-MM-dd-
Customer (store) codeFCustId_FNumberEncoding mapping → shop_noshop_no
Order listEntry setHeader/body staged separatelyrawTradeList
Goods detailEntry linesArray node flattenedrawTradeOrderList

The source uses executeBillQuery (QUERY), the target uses sales.RawTrade.pushSelf2 (EXECUTE), both via POST.

How to Configure in Qeasy

  1. Connect the source: Fill in Kingdee Cloud WebAPI access, select API executeBillQuery, confirm FBillNo as the document number field and FEntity_FEntryID as the unique row ID, then enable idCheck.
  2. Connect the target: Configure the Wangdiantong Flagship Edition sales.RawTrade.pushSelf2 interface; the request body is organized in three layers — shop_no + rawTradeList + rawTradeOrderList.
  3. Field mapping: In Qeasy's mapping canvas, convert FCustId_FNumber into shop_no through the encoding mapping table; flatten entry lines into rawTradeOrderList via the array node expander.
  4. Writeback configuration: The target-side primaryWriteback and callBackStrategy are reserved for future writeback extension. Keep them disabled for now to avoid strategy bloat.
  5. Exception handling: Enable Qeasy's retry and alerting; failed records auto-route to the pending pool.

Implementation Steps

  • Incremental starting point: For first rollout, use "outbound applications approved within the last 7 days" as the initial increment to avoid historical data flooding the system.
  • Full backfill: Schedule a one-time full backfill during off-peak hours (e.g., early morning). After confirming both sides reconcile, switch to incremental mode.
  • Scheduling cadence: Source runs */8 7-22 * * * (every 8 minutes during business hours), target runs */9 7-22 * * * (every 9 minutes, offset to avoid simultaneous bursts). The slight offset prevents both ends from firing requests in the same second.
  • Validation: Configure a uniqueness check on "document number + customer code" in Qeasy to prevent duplicate pushes.

Lessons from the Trenches

  1. Store code mismatch: FCustId_FNumber on the Kingdee side does not always map one-to-one with shop_no on Wangdiantong. The common approach is to keep the mapping table in Qeasy's "centralized encoding mapping," so changes propagate everywhere at once.
  2. Header/body collapsed together: Stuffing entry lines directly into rawTradeList is a classic mistake that drops detail rows. The reliable pattern is to handle header and body in stages: assemble rawTradeList first, then expand rawTradeOrderList.
  3. Wrong increment anchor: Using "created time" as the increment misses any record modified after approval. The safe approach is to use "last modified time" and add a status filter (only push approved records).
  4. Retry storm: When Wangdiantong's API returns occasional 5xx, too-aggressive retries can hammer the partner system. Configure exponential backoff in Qeasy with a 5-minute cap.
  5. Too many writeback fields reserved upfront: Many teams wire up every primaryWriteback field from day one, only to break when the target changes a field. Keep them reserved but disabled, then enable on demand.

When to Use and When Not To

Use when: Kingdee acts as ERP and Wangdiantong as OMS, with a need to push outbound applications into OMS during business hours — typical for retail or distribution businesses with clear store dimensions and workable code mapping. Avoid when: The project spans organizations or books with no established coding system at all, or the use case is bulk initialization outside business hours — in those cases, lay down a full-data initialization strategy first before tackling real-time sync.

Original content. Please credit the source when reposting: https://www.qeasy.cloud/insights/solutions/strat-wdt-kingdee-cloud-2251-n09007a88-c125c169

Comments