Kingdee Outbound Application to Wangdiantong Raw Orders: A Single-Strategy Sync Tutorial
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 Meaning | Kingdee Cloud (Source) | Qeasy Mapping Logic | Wangdiantong (Target) |
|---|---|---|---|
| Document primary key | FEntity_FEntryID | Pass-through | Internal primary key |
| Document number | FBillNo | Stored in writeback area for lookup | - |
| Application org | FStockOrgId.FNumber | Encoding mapping centrally managed | - |
| Application date | FDate | Normalized to yyyy-MM-dd | - |
| Customer (store) code | FCustId_FNumber | Encoding mapping → shop_no | shop_no |
| Order list | Entry set | Header/body staged separately | rawTradeList |
| Goods detail | Entry lines | Array node flattened | rawTradeOrderList |
The source uses executeBillQuery (QUERY), the target uses sales.RawTrade.pushSelf2 (EXECUTE), both via POST.
How to Configure in Qeasy
- Connect the source: Fill in Kingdee Cloud WebAPI access, select API
executeBillQuery, confirmFBillNoas the document number field andFEntity_FEntryIDas the unique row ID, then enableidCheck. - Connect the target: Configure the Wangdiantong Flagship Edition
sales.RawTrade.pushSelf2interface; the request body is organized in three layers —shop_no + rawTradeList + rawTradeOrderList. - Field mapping: In Qeasy's mapping canvas, convert
FCustId_FNumberintoshop_nothrough the encoding mapping table; flatten entry lines intorawTradeOrderListvia the array node expander. - Writeback configuration: The target-side
primaryWritebackandcallBackStrategyare reserved for future writeback extension. Keep them disabled for now to avoid strategy bloat. - 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
- Store code mismatch:
FCustId_FNumberon the Kingdee side does not always map one-to-one withshop_noon Wangdiantong. The common approach is to keep the mapping table in Qeasy's "centralized encoding mapping," so changes propagate everywhere at once. - Header/body collapsed together: Stuffing entry lines directly into
rawTradeListis a classic mistake that drops detail rows. The reliable pattern is to handle header and body in stages: assemblerawTradeListfirst, then expandrawTradeOrderList. - 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).
- 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.
- Too many writeback fields reserved upfront: Many teams wire up every
primaryWritebackfield 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.