Qeasy Cloud
Get Started

Quality-Management Test Strategy: Syncing Vendor Master Data from Kingdee Cloud to a WMS via Qeasy

· 何海波· Integration Solutions· 5 views· 5 min read

What This Strategy Solves

For pharmaceutical distribution enterprises running quality-management (QM) tests, the hard part is not whether data can be pushed, but whether the receiving system can recognize the vendors. Kingdee Cloud holds the QM-approved vendor master, while the WMS uses this master to create counterparties during first-deal/qualification checks. With different coding rules and field semantics on both sides, mismatches quickly turn into endless manual re-keying during QM audits.

The 'Vendor Sync – QM Test' strategy addresses this by pushing vendor master data from Kingdee Cloud to the WMS incrementally, using Kingdee's FNumber as the cross-system identifier. By centralizing the mapping on the Qeasy platform, both sides stay in lock-step throughout the test cycle.

Data Flow and Field Mapping

The flow is unidirectional: Kingdee Cloud → Qeasy middle layer → WMS. The source side is a query API (executeBillQuery, WebAPI, POST); the target side is a write API (unit, RESTful, POST).

Key field mapping (only differences shown; remaining fields pass through):

Business meaningKingdee Cloud (source)WMS (target)Handling
Cross-system unique IDFNumberbh (external system ID)Injected via {{FNumber}}; serves as reconciliation key
Vendor nameFNamedwmcInjected via {{FName}}
WMS internal number(n/a)wmsbhHard-coded as 0; WMS assigns incrementally
Legal representative(no source field)frdbDefault fill / to bypass non-null validation
Registered address(no source field)zcdzDefault fill /
Status / primary keyFDocumentStatus, FID(not persisted)Kept on source side for incremental filtering and idempotency

The critical point: FNumber must be maintained as a centralized code-mapping asset. Once duplicates or gaps appear, QM audits force rework three months down the line.

How to Configure on Qeasy

Configuration on the Qeasy integration platform consists of four blocks:

  1. Source connector: Choose the Kingdee Cloud adapter, API executeBillQuery, method POST. Set number=FName, id=FID, idCheck=true. This treats Kingdee as a standard query source — the same pattern applies to any form.
  2. Target connector: Choose the WMS adapter, API unit, method POST. Build the request per the table above; bh and dwmc use variable interpolation, while frdb and zcdz use constant /.
  3. Field mapping layer: Align source and target fields in Qeasy. The FNumber → bh line must be a shared mapping, not redefined per strategy. This is one of the most common patterns among Qeasy customers — define once, reuse everywhere.
  4. Script layer (optional): By default buildModel=false. If the QM team needs custom validation (e.g., unified social credit code format), add a lightweight script node in Qeasy. Do not push validation logic into the target system — it makes the two systems tightly coupled and hard to debug.

Implementation Steps

We recommend a three-phase rollout rather than enabling all 60+ strategies at once:

  • Phase 1 — Incremental start. Use FID as the incremental cursor. Pull only 'approved' vendors on a timer, write to the WMS. Source crontab: */10 8-22 * * * (every 10 minutes during business hours). Target crontab is offset by 3 minutes: 2-59/10 8-22 * * *, to avoid concurrent contention.
  • Phase 2 — Full trigger. Before the QM test window opens, manually trigger a full backfill to load historical vendors. After it completes, immediately return to incremental mode. Never let full and incremental run concurrently.
  • Phase 3 — Lock down cadence. Once incremental is stable, lower frequency based on WMS write pressure — 30 minutes or hourly. Keep Qeasy schedule logs for at least 90 days for QM audit traceability.

Pitfalls and Lessons Learned

  1. Classic mistake: using FName as the cross-system ID. FName is the name (duplicates allowed); FNumber is the code. Mixing them up produces 'one external ID, multiple WMS rows' and QM review fails. Always use FNumber as the key; FName is display-only.
  2. Filling defaults with empty strings instead of /. The WMS's frdb, zcdz, etc. are non-required but strict on non-null. Empty strings trigger errors. Use a fixed character such as / as a placeholder — it passes validation without polluting semantics.
  3. Running full and incremental concurrently. During a full backfill, if incremental is not paused, the same vendor can be written twice with different WMS internal numbers. Painful to debug. Make full and incremental mutually exclusive via Qeasy's strategy toggle, and disable incremental while full runs.
  4. Scattering the code mapping across strategies. Every new strategy rewrites FNumber → bh, and after a few months nobody can tell which version is live. Centralize code mapping in Qeasy — this is the most frequent on-site 'crash point'.
  5. Ignoring time zone in private deployment. Crontab uses the platform server's local time. In cross-region deployments, you may see 'no data by day, floods at night'. Before adjusting the 8-22 window, confirm the time zone of the Qeasy node.

When It Applies and When It Doesn't

Applies: Pharmaceutical / medical-device distributors in a private-deployment environment that use Kingdee Cloud as the master-data source for ERP and need to push QM-related vendor / supplier / customer records into a WMS by code, with strict cross-system consistency.

Does not apply: Cross-legal-entity master-data sharing (requires MDM governance), bidirectional sync (this strategy is one-way push), or sub-second real-time requirements (minute-level scheduling here is sufficient; sub-second needs a separate message-middleware approach).

Original content. Please credit the source when reposting: https://www.qeasy.cloud/insights/solutions/strat-wms-kingdee-cloud-1787-na430b95b-d9598f6d

Comments