Qeasy Cloud
Get Started

Kingdee Cloud Cosmos → Xiaofengbee WMS Inventory/Document Sync Interface Field Handbook

· 钟家寿· Engineering Best Practices· 15 views· 5 min read

What This Interface Solves

In multi-org, multi-warehouse supply chains, retailers commonly suffer from ERP-WMS fragmentation: Kingdee Cloud Cosmos owns purchasing, sales, and inventory accounting, while Xiaofengbee WMS runs physical warehouse operations, and both sides must stay in lockstep. This tutorial focuses on the one-way sync interface family from Kingdee Cloud Cosmos to Xiaofengbee WMS, covering 19 strategy types (materials, customers, purchase receipts, production receipts, sales out/delivery returns, miscellaneous issues, transfers), and consolidates hands-on experience from multiple projects into a reusable field handbook.

Interface Capabilities Overview

Authentication: Kingdee Cloud Cosmos uses OAuth2 + tenant authorization; Xiaofengbee WMS uses API Key in the request header. All credentials are stored in a secrets manager.

Request/Response: The source side uses Kingdee QueryForm/ExecuteBillQuery; the target side uses Xiaofengbee WMS REST endpoints: /goods/v4, /customers/v4, /inOrders/v4_1, /outOrders/v4_1. The source returns paginated results; the target returns a JSON {code, data} envelope for single/batch writes.

Pagination & Incremental: Kingdee supports FilterString + Limit/StartRow. Incremental fields are FModifyDate (master data) or FApproveDate (business documents), and LAST_SYNC_TIME is maintained per strategy. Full sync removes time filters and relies on target-side idempotency by inOrderNo/outOrderNo/FBillNo.

Typical Field Mappings

The table below shows representative mappings for Strategy 1 (Material) and Strategy 8 (Sales Outbound).

Source Field (Kingdee)Target Field (Xiaofengbee WMS)TypeMeaningField Notes
FNumbergoodsCodestringMaterial codeUnique cross-system identifier and idempotency key
FNamegoodsNamestringMaterial namePass-through, watch Unicode length
FSpecificationspecificationTypestringSpec/ModelPass-through
FBARCODEgoodBarcodePSstringBarcodeFalls back to FNumber when blank
FGROSSWEIGHTgrossWeightdecimalUnit gross weightKingdee unit = gram, WMS expects kg — must divide by 1000
FIsBatchManagecollectBatchNoboolBatch requiredControls whether WMS mandates batch number
FCategoryIDgoodsCategoryIdintCategory IdCOLLECTION mapping, requires category crosswalk
FBillNoinOrderNo/outOrderNostringDocument numberCore idempotency key, pass-through
FDateestimatedArrivalDatedateETAFormat conversion required
FSupplierId_FNumbersupplierCodestringSupplier codeMapping table required
FStockId_F_dps_wmsstockhouseCodestringWarehouse codeCOLLECTION mapping via custom field
FMaterialId_FNumbergoodsCodestringGoods codeDetail row, COLLECTION
FRealQtyqtydecimalQuantityPass-through
FLot_FNumberlotNostringLot numberPass-through
FLinkMancontactNamestringContactPass-through, mask in storage
FLinkPhonemobilestringContact phonePass-through, mask in storage
FHeadLocationIdprovinceId/cityId/areaIdintRegionCOLLECTION mapping, address parsing

How to Configure on Qeasy (Qingyiyun)

In the Qeasy Data Integration Platform, this interface family typically uses a Kingdee adapter plus a Xiaofengbee WMS adapter pair. The Kingdee adapter configures FormId (e.g. BD_MATERIAL, SAL_OUTSTOCK, STK_InStock) and FilterString; the WMS adapter selects endpoints such as /goods/v4, /inOrders/v4_1, /outOrders/v4_1. The Field Mapper auto-detects four mapping types: Direct / Collection / Transform / Constant. Fields requiring crosswalk tables (category, warehouse, customer) are wired to Qeasy's Mapping Component, where FCategoryID→goodsCategoryId and FNumber→goodsCode are auto-established inside the master-data strategies. At the orchestration layer, the platform maintains per-strategy LAST_SYNC_TIME, retry policy (exponential backoff 30s/60s/120s, max 3) and a dead-letter queue; failed records land in sync_failed_records and trigger alerts.

Cross-Strategy Field Notes

  1. Master data first: Materials and customers must sync before any business document; otherwise "master data missing" hard-fails occur and should not retry — fix mapping, then rerun.
  2. Idempotency design: Always use Kingdee FBillNo as the WMS inOrderNo/outOrderNo, with a unique index on the target as a safety net.
  3. Unit & precision traps: FGROSSWEIGHT is in grams (Kingdee) but kg (WMS) — divide by 1000. Confirm decimal places and rounding rules for qty/amount.
  4. outType/inType routing: A single sales outbound may flow as offline (2), online (1), OEM, transfer (6), purchase return (7), or miscellaneous (4). A safe rule combines customer code + custom fields + document type, not document type alone.
  5. Pick the right incremental field: FModifyDate for master data, FApproveDate for business documents — never mix them, or you'll drop or duplicate records.
  6. Mapping timing: Build FNumber→WMS code inside the master-data strategy by writing the mapping table before calling the target API. Business documents then read from the table to avoid cascading failures.

Pitfall Playbook

  • Pitfall 1: Audit/Forbid filters missing. Material sync forgot to filter FDocumentStatus='C' and FForbidStatus='A', so disabled materials hit WMS and caused duplicate putaways. Fix: Always include audit + forbid conditions in FilterString.
  • Pitfall 2: Default region fallback. Sales outbound address had no FHeadLocationId→province/city/area mapping, defaulted everywhere, breaking pick paths. Fix: COLLECTION mappings must be real — failures go to DLQ, never to defaults.
  • Pitfall 3: Infinite retry on 5xx. Network blips sent everything to dead-letter and stalled the business. Fix: Exponential backoff 30s/60s/120s, max 3; treat 429 separately with 60s×5.
  • Pitfall 4: Schedule too aggressive. Master-data sync every minute tripped WMS rate limits. Fix: Master data every 10–15 min, business docs every 5–10 min, full sync at night.
  • Pitfall 5: Hard-coded shipper/warehouse config. ShipperId and warehouse codes were baked into mapping tables, breaking cross-org migration. Fix: Centralize into env vars or a secrets manager.

When to Use

Applicable to private-deployment supply chains where Kingdee Cloud Cosmos is the ERP and Xiaofengbee WMS is the warehouse execution system — especially multi-org, multi-warehouse enterprises with OEM/e-commerce/transfer flows. Not suitable for bidirectional sync (this family is B→A only), lightweight scenarios without document-level idempotency, or when the target is not Xiaofengbee WMS.

Original content. Please credit the source when reposting: https://www.qeasy.cloud/insights/engineering/hb-p6-106-wms-2669-60bb

Comments