Qeasy Cloud
Get Started

Supply Chain Integration in Practice: Synchronizing Goods-Receipt Confirmation from SQL Server to Kingdee Cloud Galaxy

· 吕修远· Integration Solutions· 9 views· 4 min read
SQL ServerKingdee Cloud供应链集成到货确认轻易云私有化部署

What This Strategy Solves

Goods-receipt confirmation is the most overlooked yet the most error-prone step in the procurement chain. In a real project with a retail enterprise, after the buyer registers a goods-receipt confirmation in SQL Server, the receipt date, receiver, and original document numbers must flow back into Kingdee Cloud Galaxy as the basis for downstream inbound posting and financial accounting. Once this loop breaks, both sides claim the receipt happened — and the books no longer match. We use the Qeasy (轻易云) data integration platform to carry this loop: it pushes the goods-receipt confirmation from source to target with a minimal field set, keeping the information consistent without dragging in unrelated business data.

Data Flow and Field Mapping

The data flow is straightforward: SQL Server → Qeasy integration platform → Kingdee Cloud Galaxy. The source metadata describes a query-type interface that pulls goods-receipt documents whose receipt date has not yet been synced back. The target metadata describes an execute-type interface that writes those fields into Kingdee Cloud Galaxy in batch.

Business MeaningSource Field (SQL Server / Qeasy)Target Field (Kingdee Cloud Galaxy)Handling Notes
Document number setFBillNosFBillNosPass through as the reconciliation key
Receipt dateFSHDateFSHDateString format; normalize to yyyy-MM-dd
Receipt operatorFCZUserFCZUserIf empty, fall back to a default user — never inject dirty data

Key reminder: this loop only uses three fields. A typical mistake is to also pull material, line number, and quantity. The more business fields you carry, the more painful reconciliation becomes later. The safe approach is "narrow first, widen later" — stabilize the minimal field set, then extend on demand.

How to Configure on Qeasy

In the Qeasy (轻易云) data integration platform, configuring this strategy is not complex, but several points need attention:

  1. Source metadata: set api type to QUERY, method to GET, and use FBillNos as the id field with idCheck enabled. This ensures the platform deduplicates by document number and avoids pulling the same document repeatedly.
  2. Target metadata: set api type to EXECUTE, method to POST, and call Kingdee Cloud Galaxy's batchUpdateSHDate batch-update interface. The three request fields FBillNos, FSHDate, FCZUser use {{fieldName}} placeholders, which the platform substitutes at runtime.
  3. Code mapping: fields like FCZUser — a "person" field — usually map from an employee number on the source side to a Kingdee user code on the target side. We recommend managing these centrally in Qeasy's mapping center rather than rewriting them per strategy. This is one of the most common patterns among Qeasy customers.
  4. Response handling: enable autoFillResponse on the source so the platform auto-detects returned fields. On the target side, the response can be left empty since it is a write operation, but we suggest turning on logging for traceability.

Implementation Steps

We recommend a three-phase rollout so that you don't start with a scheduled job on day one:

Phase 1: incremental start point. Manually trigger once, picking only one document whose receipt date has not been synced back. Verify that the source can pull the record and the target can write it successfully. The goal at this stage is to validate field mapping and permissions, not to push volume.

Phase 2: small-batch full trigger. Set the source crontab to 1 1 1 12 * (December 1st, 01:01 every year), representing an annual fallback full synchronization to patch historical omissions. Set the target crontab to * * * * * (every minute), representing the highest-frequency incremental write. Running incremental and full tracks in parallel is another common Qeasy customer pattern: minute-level incremental in the daily flow, full track periodically for reconciliation.

Phase 3: production scheduling. After a week of observation confirming no duplicate syncs and no dirty data, attach the strategy to the production schedule. If the business volume is large, you can later discuss shifting minute-level to 5-minute-level to reduce pressure on the target system.

Pitfalls and Lessons Learned

Pitfall 1: inconsistent receipt date formats. The source may use 2024/01/05, while Kingdee requires 2024-01-05. A typical mistake is to rely on the database's implicit conversion. The safe approach is to format explicitly in Qeasy's field transformer.

Pitfall 2: empty operators written as-is. FCZUser is sometimes empty on the source side; writing it through directly will trigger Kingdee's validation. Add a null fallback to a default user.

Pitfall 3: the same document synced multiple times. Forgetting to enable idCheck, or failing to use FBillNos as the deduplication key, will cause the same document's receipt date to be overwritten repeatedly.

Pitfall 4: full trigger without clearing flags. When running the annual full track at 1 1 1 12 * without a "synced" flag mechanism, you end up overwriting dates that are already correct. This is where projects commonly crash. Either add a status field on the source or use the document number as an idempotent key on the target.

Pitfall 5: syncing unrelated fields. After go-live, business users often ask "while you're at it, can you also push the quantity?" Hold the line on "narrow first, widen later."

Suitable and Unsuitable Scenarios

Suitable: scenarios with few document fields, where only key status fields need syncing, and the reconciliation key is clear; supply chain links where Kingdee Cloud Galaxy acts as the downstream accounting system. Not suitable: complex goods-receipt scenarios that require syncing line-level details (material, quantity, batch); cross-organization scenarios that require complex permission splitting — these need dedicated line-level mapping design.

Original content. Please credit the source when reposting: https://www.qeasy.cloud/insights/solutions/strat-sql-server-kingdee-cloud-7886-yunma-yxk-847abb69

Comments