Syncing Kingdee Direct Transfer Orders to Wangdiantong: One Strategy for Cross-System Inventory Transfer
What This Strategy Solves
In a multi-warehouse operation, a retail enterprise generates a large number of direct transfer orders every day. The source system (the financial ERP) handles bookkeeping and cost accounting, while the target system (the e-commerce WMS) handles shipping and physical fulfillment. Both systems have a "transfer order" document, but the codes, organizations, and status fields do not align. In one real project, the customer's IT manager complained: "Transfer orders flow through both sides independently, and after three days the inventory numbers do not match. When auditors arrive, we need five people pulling Excel sheets to cross-check."
The core goal of this strategy is singular: let a direct transfer order, once emitted from the source system, be accurately identified and landed in the target system, with inventory联动 accordingly. We use the Qeasy data integration platform to承接 this link, transforming document headers, document bodies, and batch/expiry fields according to rules, achieving a one-to-one correspondence between documents on both sides.
Data Flow and Field Mapping
The overall flow is: Source system direct transfer order → Qeasy middle layer (cleaning/mapping/code conversion) → Target system direct transfer order. The middle layer does not run business logic; it only translates.
Key field comparison (typical values shown as desensitized placeholders):
| Business Meaning | Source Field (Example) | Target Field (Example) | Conversion Notes |
|---|---|---|---|
| Document Number | FBillNo | transfer_no | Direct mapping, retain prefix |
| Source Warehouse | FOutStockOrg / FOutStock | src_warehouse_code | Warehouse code mapping table |
| Destination Warehouse | FInStockOrg / FInStock | dest_warehouse_code | Warehouse code mapping table |
| Business Date | FBusinessDate | transfer_date | Unify date format |
| Transfer Direction | FTransferDirection | transfer_type | Enum value translation |
| Material Code | FMaterialCode | sku_code | Material master data mapping |
| Quantity | FQty | qty | Pass-through if no unit conversion |
| Batch Number | FLot | batch_no | Unify batch coding |
| Remarks | FNote | remark | Truncate to length limit |
A common response pattern here: manage code mappings centrally — warehouse codes, material codes, and customer codes all go into Qeasy's mapping table component, and other strategies (purchase orders, sales outbound) reuse them directly, rather than each strategy maintaining its own copy.
How to Configure on Qeasy
Configuring this strategy on Qeasy typically falls into four parts:
- Source data retrieval: Use Kingdee Cloud Cosmic's query interface for direct transfer orders, filtering unpushed documents by
FBillNoincremental cursor or last-modified time. - Target system write: Call Wangdiantong's open interface for transfer order creation/update, push the transformed payload over, and write back the returned
transfer_idto the middle layer as the subsequent incremental cursor. - Field mapping: Use Qeasy's "Field Mapping" component. Configure headers and bodies as two separate tables — header mapping lives in the strategy, body line items use "body row split + sub-mapping". This is the most stable approach verified on customer sites.
- Error handling: Enable a retry queue (exponential backoff). Dirty data with missing code mappings goes to a "manual review queue" rather than being discarded directly.
Implementation Steps
We typically recommend phased scheduling in three stages:
Stage 1: Full Load Trigger (Initialization)
- Before go-live, pull all historical unclosed direct transfer orders at once as the baseline. This step must first stop batch approval in the source system, otherwise a "header pushed over, body still being approved" torn state will appear.
- Manually trigger a full load in Qeasy, observe that document numbers on both sides match one-to-one, then proceed to the next stage.
Stage 2: Incremental Start (Regular Schedule)
- Use the source system's last-modified time as the cursor, set every 5 minutes for incremental pulls (adjust frequency based on document volume).
- The incremental starting point begins from the moment the full load ends, to avoid duplicate pushes or missing pushes.
- Scheduling strategy: high frequency during business hours (every 5 minutes), reduced frequency during non-business hours (every 30 minutes).
Stage 3: Dual-Track Fallback (Incremental + Periodic Full Reconciliation)
- Incremental handles timeliness, periodic full load (e.g., daily at dawn) handles status reconciliation across both systems — once a state machine inconsistency is detected between the two sides, an alert is triggered.
- This is a common "incremental and full dual-track" pattern among Qeasy customers. Relying on incremental alone makes it hard to cover edge cases such as manual reversals and cross-organization modifications.
Pitfall Recap
-
Code mappings not centrally managed, numbers on both sides mismatch after 3 months. A typical mistake is each integration engineer maintaining their own Excel mapping table; after version drift, document flow becomes chaotic. Steady approach: bring warehouse, material, and customer codes into Qeasy's mapping center as the single source of truth.
-
Header pushed successfully, body all lost. A common cause is that the source system document is in "saved but not approved" state at the moment of push, with line items not yet generated. Steady approach: add a document status filter to the incremental condition (
FDocumentStatus = 'Approved'), and push only after upstream approval completes. -
Batch/expiry fields directly mapped, ignoring the source's internal code. The source's batch number may be an ERP internal code, while the target system needs a business batch; passing it through directly causes the target system to fail to find the batch file. Steady approach: maintain an ERP internal batch → business batch conversion in the mapping table.
-
No upper limit on the retry mechanism, infinite loops crash the queue. Transfer orders depend on inventory downstream; if the target system is temporarily unavailable, infinite retries will drag down the entire link. Steady approach: an exponential backoff + maximum retry count + manual queue — three pieces together.
-
Unit/conversion rate not aligned, quantities look matched but actual inventory differs. For example, the source uses "box" as unit while the target uses "piece"; field mapping does not do conversion and passes values directly, causing inventory drift. Steady approach: add a unit conversion step in mapping, or front-load it into the material master data strategy for unification.
Applicable and Non-Applicable Scenarios
Applicable: cross-system inventory transfer main link打通; multi-warehouse, multi-organization retail/distribution enterprises; dual-system architectures requiring separation between financial bookkeeping and physical fulfillment.
Not applicable: transfer business requiring complex approval flows and state-machine-driven logic (should go through BPM/workflow); scenarios requiring millisecond-level real-time and strong consistency on both sides (recommend message queue + event-driven rather than timed sync); cross-legal-entity, cross-tax-rate transfers (tax logic should be completed in the source system, not carried by sync strategies).