Qeasy Cloud
Get Started

Kingdee Stepwise Transfer-In Order Audit Strategy: Practical Configuration from WDT to Kingdee Cloud

· 尹春锐· Integration Solutions· 9 views· 4 min read

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 instance
  • status: Data state; filter value 2 means "Completed", ensuring only downstream-received documents are processed
  • response_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 as STK_TRANSFERIN, the standard form identifier for Kingdee's stepwise transfer-in order
  • Ids: 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 pattern
  • InterationFlags: Passes STK_InvCheckResult, allowing inventory check during audit
  • IgnoreInterationFlag: Defaults to true, non-blocking validation, preventing a single failure from dragging down the whole batch
  • NetworkCtrl: Defaults to false, no network control policy
DimensionSource (WDT / Qeasy data layer)Middle (Qeasy mapping)Target (Kingdee Cloud Audit)
Document typeTransfer-in raw recordBusiness identifierFormId=STK_TRANSFERIN
Document IDBusiness number / remarkString extractionIds (Kingdee internal code)
Status filterstatusDirect pass-throughOnly 2 (completed)
Time windowresponse_at_*{{LAST_SYNC_TIME}}Incremental driver
Validation policy——Pass-throughIgnoreInterationFlag=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

  1. Incremental start point: For the first run, set response_at_begin to 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.
  2. Full-volume trigger: On launch day, we recommend manually triggering a full run to confirm audit success rates before enabling scheduling.
  3. Scheduling cadence: Following the two crons in the source material — source 3-59/30 7-22 * * *, target 10-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.
  4. Observation window: During the first 3 business days after launch, focus on changes in status=3 (error) and status=4 (unaudited) counts. If either of these numbers starts climbing, troubleshoot immediately.

Pitfalls and Lessons Learned

  1. Ids extraction expression reversed: The RIGHT + 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.
  2. status filter not clean enough: A typical mistake is leaving status blank or set to 1, which also pushes duplicate documents to Kingdee, triggering "already audited" exceptions on the Kingdee side.
  3. 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.
  4. InterationFlags set too strictly: If you pass STK_InvCheckResult and also set IgnoreInterationFlag=false, inventory check failures will block the entire batch. We recommend launching with true first, and only switching once data is stable.
  5. Incremental start point not switched: Forgetting to switch response_at_begin back 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.

Original content. Please credit the source when reposting: https://www.qeasy.cloud/insights/solutions/strat-wdt-kingdee-cloud-7251-nc7d195aa-bada4e5d

Comments