Practical Guide: Syncing Kingdee Transfer Requests to Guanyi Purchase Orders
What This Strategy Solves
For many retail and manufacturing enterprises, externally purchased goods first enter a non-OMS warehouse and are then transferred to the OMS warehouse through a transfer workflow. The upstream transfer request originates in Kingdee Cloud Galaxy, while downstream it must be automatically converted into a Guanyi Cloud purchase order to trigger subsequent inbound and outbound operations. If staff manually key in data on both sides, mismatched document numbers, amounts, and warehouses are the norm after three months. The core value of this strategy is to solidify the "request → order" link in the Qeasy Data Integration Platform, enabling one-time configuration and long-term reuse.
Data Flow and Field Mapping
The overall direction is B→A: Kingdee Cloud Galaxy (source) → Qeasy intermediate layer → Guanyi Cloud (target).
Key field mapping (typical business fields):
| Business Meaning | Kingdee Cloud Galaxy (Source) | Guanyi Cloud (Target) | Handling Notes |
|---|---|---|---|
| Document Number | Transfer Request No. | Purchase Order No. | Source carries a prefix; target regenerates per Guanyi rules |
| Applicant / Department | Request Org | Purchase Org | Manage encoding mapping centrally on Qeasy |
| Target Warehouse | Transfer-in Warehouse Code | Receiving Warehouse Code | Must be consistent with the warehouse sync strategy |
| Product Code | Material Code | Product Code | Depends on product master data sync running first |
| Quantity | Request Quantity | Purchase Quantity | Pass through directly; no UOM conversion |
| Unit Price / Amount | Transfer Estimated Amount | Purchase Price / Amount | When price-tax is separated, the target must carry a tax rate field |
| Remarks | Business Remarks | Header Remarks | Keep under 200 characters to avoid truncation |
In terms of dependencies, this strategy must run after "Kingdee Material → Guanyi Product" and "Kingdee Warehouse → Guanyi Warehouse"; otherwise products or warehouses will not yet exist on the target side and errors will be thrown immediately.
How to Configure on Qeasy
In the Qeasy console, we typically set things up as follows:
- Datasource Registration: Configure the interface credentials for Kingdee Cloud Galaxy and Guanyi Cloud separately, granting only minimum permissions. Store production and test credentials in separate files.
- Strategy Canvas: Create a new sync strategy, select the Kingdee transfer request as source and Guanyi purchase order (create action) as target, with the direction fixed as B_TO_A.
- Field Mapping: Use a mix of visual mapping and custom scripts. Encoding, organization, warehouse, and product keys are unified into a "Mapping Center" for centralized management, so future adjustments only require a single change.
- Hooks and Scripts: Attach Python script hooks before and after pulling documents to perform status validation, field cleansing, and exception logging.
- Alerts and Retries: Failed documents enter a dead-letter queue and are automatically retried three times. After the third failure, an alert is pushed to the on-duty staff via enterprise WeChat.
Implementation Steps
We divide the rollout of this strategy into three phases:
- Phase One: Incremental Starting Point (Full Initialization). First add a "sync flag field" on the Kingdee side, then use Qeasy's full sync task to pull historical approved and unclosed transfer requests in batches, generating the corresponding Guanyi purchase orders. This phase is triggered manually and stops once complete.
- Phase Two: Scheduling Frequency (Incremental Mode). After full sync converges, switch to incremental mode: Qeasy polls the source for "last modified time" every 5 minutes, pulling only newly added or changed documents. We have seen clients set polling to 1 minute, which spikes source-system interface pressure. A safe approach is to start at 5–10 minutes and compress once stable.
- Phase Three: Exception Closed Loop. Schedule reconciliation jobs for the early morning hours, automatically comparing document status, amount, and quantity on both sides. The difference list is pushed to the operations mailbox. This step truly determines whether numbers match three months later.
Pitfall Recap
- Dependency order not arranged properly. Product and warehouse master data had not yet been synced when the transfer strategy was launched, causing "product does not exist" errors on the target. The typical mistake is enabling all strategies at once. A safe approach is to roll them out in batches according to the dependency graph.
- Encoding mapping scattered across scripts. In one project, organization encoding mappings were written into three different scripts, making a single change a half-day hunt. We later centralized them on Qeasy's "Mapping Center", reducing change time from hours to minutes.
- Scheduling frequency set too low or too high. At 1 minute the source interface cannot cope; at 1 hour the business feels slow. 5–10 minutes is the sweet spot for most clients.
- Changing header and body together makes troubleshooting hard. We recommend a phased approach: get the header right first, then add body mapping for clearer problem isolation.
- No dead-letter or reconciliation mechanism. In one case, failed documents accumulated for two weeks before being noticed, with high remediation cost. A dead-letter queue plus end-of-day reconciliation is non-negotiable.
Applicable and Non-Applicable Scenarios
Applicable: Enterprises whose externally purchased goods enter non-OMS warehouses and need to be transferred to OMS warehouses; businesses with high transfer request volumes and frequent cross-system collaboration; organizations looking to reduce manual duplicate entry and reconciliation cost.
Not applicable: Pure internal warehouse-to-warehouse transfers that do not require generating purchase orders in Guanyi; scenarios where Kingdee and Guanyi already share the same ledger set and cross-system sync is unnecessary; and small-scale operations with fewer than 10 transfer requests per day that can be handled manually.