Kingdee Stepwise Transfer-In Order Audit Strategy: Practical Configuration from WDT to Kingdee Cloud
What This Strategy Solves
In retail supply chains, WDT (WanDianTong) handles store and e-commerce fulfillment, while Kingdee Cloud handles finance and inventory accounting. Warehouse transfer workflows usually run in two steps: first, a "Transfer Out" in WDT, and second, a "Transfer In" with audit in Kingdee. This strategy focuses on the second step — automatically pushing already-generated stepwise transfer-in orders to the audit node, reducing manual clicks and avoiding ledger-versus-physical discrepancies caused by documents that exist but have not been audited.
Data Flow and Field Mapping
The overall flow is WDT → Qeasy (QingYiYun) → Kingdee Cloud. Qeasy serves both as the orchestrator and as a lightweight data transit layer.
Source side (pulling completed transfer-in data via Qeasy's QueryStrategyData) — key fields:
strategy_id: Strategy ID identifying this sync strategy instancestatus: Data state; filter value2means "Completed", ensuring only downstream-received documents are processedresponse_at_begin/response_at_end: Response time window; the start uses{{LAST_SYNC_TIME}}to drive incremental sync
Target side (Kingdee WebAPI Audit interface) — key fields:
FormId: Fixed asSTK_TRANSFERIN, the standard form identifier for Kingdee's stepwise transfer-in orderIds: Extracts Kingdee's internal document ID from the right side of the source document number; the expression_function RIGHT('{{remark}}', INSTR(REVERSE('{{remark}}'), '-') - 1)is a common patternInterationFlags: PassesSTK_InvCheckResult, allowing inventory check during auditIgnoreInterationFlag: Defaults totrue, non-blocking validation, preventing a single failure from dragging down the whole batchNetworkCtrl: Defaults tofalse, no network control policy
| Dimension | Source (WDT / Qeasy data layer) | Middle (Qeasy mapping) | Target (Kingdee Cloud Audit) |
|---|---|---|---|
| Document type | Transfer-in raw record | Business identifier | FormId=STK_TRANSFERIN |
| Document ID | Business number / remark | String extraction | Ids (Kingdee internal code) |
| Status filter | status | Direct pass-through | Only 2 (completed) |
| Time window | response_at_* | {{LAST_SYNC_TIME}} | Incremental driver |
| Validation policy | —— | Pass-through | IgnoreInterationFlag=true |
How to Configure on Qeasy
Step 1: In the Qeasy Data Integration Platform, create the "Kingdee - Stepwise Transfer-In Order - Audit" strategy. Pick the WDT-side business document scheme as the source and Kingdee Cloud's Audit interface as the target.
Step 2: Source-side QueryStrategyData configuration: hard-code status to 2. This looks simple, but many projects stumble here — forgetting the filter and pulling "Waiting" or "Unaudited" data along, which then errors out when pushed to Kingdee. Use the variable {{LAST_SYNC_TIME}} for response_at_begin; the platform automatically continues from the last successful response time.
Step 3: Target-side Audit interface configuration: set FormId to STK_TRANSFERIN; for Ids, use a function expression to extract the Kingdee internal document code from remark. Two common patterns we see among Qeasy customers: one is "centralized code mapping management", which consolidates all Kingdee form IDs into a single constant mapping table so future adjustments apply globally; the other is "header/body phased rollout", where header audit is stabilized first before layering in line-item validation, reducing first-launch risk.
Step 4: Exception handling: with IgnoreInterationFlag=true, the platform should route audit failures into an error queue for manual review and replay, rather than rolling back the entire batch.
Implementation Steps
- Incremental start point: For the first run, set
response_at_beginto a fixed timestamp (e.g., the past 7 days) to backfill unaudited historical documents in one go; afterwards, switch the start point back to{{LAST_SYNC_TIME}}to enter a steady incremental state. - Full-volume trigger: On launch day, we recommend manually triggering a full run to confirm audit success rates before enabling scheduling.
- Scheduling cadence: Following the two crons in the source material — source
3-59/30 7-22 * * *, target10-59/30 7-22 * * *— i.e., every 30 minutes during business hours (07:00–22:00), with the two ends staggered by 7 minutes to avoid thundering-herd concurrency. - Observation window: During the first 3 business days after launch, focus on changes in
status=3(error) andstatus=4(unaudited) counts. If either of these numbers starts climbing, troubleshoot immediately.
Pitfalls and Lessons Learned
Idsextraction expression reversed: TheRIGHT+INSTR(REVERSE(...))combination is common, but if the remark format changes (e.g., a new prefix is added), what's extracted won't be the Kingdee internal code — it could be a date or warehouse code. The safe approach is to sample 3 records under Qeasy's "Test Run" and manually verify the extraction result before going live.statusfilter not clean enough: A typical mistake is leavingstatusblank or set to1, which also pushes duplicate documents to Kingdee, triggering "already audited" exceptions on the Kingdee side.- Both ends scheduled at the same minute: When the source just fetches data and the target calls immediately, Kingdee-side transactions may not yet be committed. Staggering by 5–10 minutes almost completely avoids this.
InterationFlagsset too strictly: If you passSTK_InvCheckResultand also setIgnoreInterationFlag=false, inventory check failures will block the entire batch. We recommend launching withtruefirst, and only switching once data is stable.- Incremental start point not switched: Forgetting to switch
response_at_beginback to the variable after the full run causes historical data to be re-pushed daily, wasting quota and easily triggering Kingdee idempotency errors.
Applicable and Non-Applicable Scenarios
Applicable: The "two-step transfer" link in WDT–Kingdee Cloud supply chain integration, where already-generated transfer-in orders need to be automatically pushed to the audit node to shrink the ledger-versus-physical gap. Not applicable: Scenarios that require complex approval flows during audit (such as amount thresholds or cross-organization approval) — these should still go through Kingdee's built-in BPM workflow, not be overridden by this strategy. Likewise not applicable for one-off large-batch retroactive audits; for backfills, run a temporary full-volume task instead.