Quality-Management Test Strategy: Syncing Vendor Master Data from Kingdee Cloud to a WMS via Qeasy
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 meaning | Kingdee Cloud (source) | WMS (target) | Handling |
|---|---|---|---|
| Cross-system unique ID | FNumber | bh (external system ID) | Injected via {{FNumber}}; serves as reconciliation key |
| Vendor name | FName | dwmc | Injected via {{FName}} |
| WMS internal number | (n/a) | wmsbh | Hard-coded as 0; WMS assigns incrementally |
| Legal representative | (no source field) | frdb | Default fill / to bypass non-null validation |
| Registered address | (no source field) | zcdz | Default fill / |
| Status / primary key | FDocumentStatus, 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:
- Source connector: Choose the Kingdee Cloud adapter, API
executeBillQuery, method POST. Setnumber=FName,id=FID,idCheck=true. This treats Kingdee as a standard query source — the same pattern applies to any form. - Target connector: Choose the WMS adapter, API
unit, method POST. Build the request per the table above;bhanddwmcuse variable interpolation, whilefrdbandzcdzuse constant/. - Field mapping layer: Align source and target fields in Qeasy. The
FNumber → bhline must be a shared mapping, not redefined per strategy. This is one of the most common patterns among Qeasy customers — define once, reuse everywhere. - 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
FIDas 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
- Classic mistake: using
FNameas the cross-system ID.FNameis the name (duplicates allowed);FNumberis the code. Mixing them up produces 'one external ID, multiple WMS rows' and QM review fails. Always useFNumberas the key;FNameis display-only. - Filling defaults with empty strings instead of
/. The WMS'sfrdb,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. - 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.
- 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'. - 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-22window, 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).