Assembly/Disassembly Outbound to Misc Delivery Sync: A Practical Guide from Jky to Kingdee Cloud
What This Strategy Solves
In a retail/manufacturing environment, assembly and disassembly operations generate large volumes of outbound documents daily. The source of truth lives in Jky; finance and inventory accounting live in Kingdee Cloud. Without active synchronization, the two ledgers drift apart, batch traceability breaks, and month-end reconciliation becomes painful. We use the Qeasy data integration platform to bridge this: incrementally pull Jky assembly/disassembly outbound orders (inouttype=207) by their gmtModified timestamp, materialize them as Kingdee Cloud miscellaneous delivery notes (STK_MisDelivery), and auto-submit plus auto-audit so manual re-entry is eliminated.
Data Flow and Field Mapping
Data flow: Jky → Qeasy middleware → Kingdee Cloud.
Header key fields (excerpt):
| Source field (Jky) | Target field (Kingdee Cloud) | Mapping type | Transform | Notes |
|---|---|---|---|---|
| goodsdocNo | FBillNo | DIRECT | {{goodsdocNo}} | Document number |
| — | FBillTypeID | CONSTANT | QTCKD01_SYS | Misc delivery bill type |
| companyCode | FStockOrgId | DIRECT | {{companyCode}} | Stock org |
| companyCode | FPickOrgId | DIRECT | {{companyCode}} | Pick org |
| — | FStockDirect | CONSTANT | GENERAL | Stock direction |
| inOutDate | FDate | TRANSFORM | DATE_FORMAT(...) | YYYY-MM-DD |
| — | FDeptId | CONSTANT | BM000016 | Issue department |
| — | FOwnerTypeIdHead | CONSTANT | BD_OwnerOrg | Owner type |
| companyCode | FOwnerIdHead | DIRECT | {{companyCode}} | Owner |
| billNo | F_LSJC_Text | DIRECT | {{billNo}} | Related document |
| sourceBillNo | F_LSJC_Text1 | DIRECT | {{sourceBillNo}} | Source document |
| inouttypeName | F_LSJC_Text4 | DIRECT | {{inouttypeName}} | Outbound type name |
| memo | F_LSJC_Text11 | DIRECT | {{memo}} | Receipt remark |
| goodsDocDetailList | FEntity | COLLECTION | goodsDocDetailList | Detail array |
The detail array FEntity references goodsDocDetailList directly. Core correspondences: goodsNo → FMaterialId, quantity → FQty, unitName → FUnitId, batchNo → batch field; the header warehouseCode is propagated to each line as FStockId.
How to Configure on Qeasy
Source (Jky): pick api erp.storage.goodsdocout.v2, type QUERY, method POST. In selelctFields, select every header and goodsDocDetailList field you need; the filter must include inouttype=207. The incremental window uses _function expressions: gmtModifiedStart = from_unixtime((LAST_SYNC_TIME-86400), '%Y-%m-%d %H:%i:%s'), gmtModifiedEnd = from_unixtime((CURRENT_TIME-86400), '%Y-%m-%d %H:%i:%s'). The 1-day backoff is a deliberate cushion against clock drift.
Target (Kingdee Cloud): pick api batchSave, type EXECUTE. FormId=STK_MisDelivery, IsAutoSubmitAndAudit=true (this is the key difference versus the defective-outbound 210 strategy), IsVerifyBaseDataField=true, Operation=Save. Code mapping for material, unit, warehouse, and organization should be centralized in Qeasy's code-mapping module rather than scattered across individual fields — this is the most common root cause of failure we see in customer projects.
Implementation Steps
- Master data first: confirm in Qeasy's "Master Data" view that materials, units, warehouses, and organizations are aligned between Jky and Kingdee Cloud; if not, run a master-data sync strategy (e.g., material, customer) first.
- Incremental anchor: trigger a one-shot backfill with a very early
gmtModifiedStartto ingest historical assembly/disassembly orders; then switch to the incremental window. - Low-traffic validation: tighten the source crontab to
*/20 7-23/4 * * *(every 4 hours at minute 0/20/40, between 07:00 and 23:59), run for half a day, and manually verify FBillNo, stock org, batch, and audit status in Kingdee. - Target scheduling: set the target crontab to
15-59/20 7-23 * * *, offset from the source so the source produces first and the target has a write buffer. - Phased header/body rollout: stabilize the 14 header fields before opening FEntity. Run incremental and full-volume tracks in parallel until reconciliation matches, then retire full-volume.
- Monitoring and alerting: configure alerts in Qeasy for empty source responses, target batchSave failures, and missing code mappings so on-call engineers are paged on mobile.
Pitfalls We Have Hit
- Missing deliveryNo field: the target mapping references
{{deliveryNo}}forF_LSJC_Text2, butselelctFieldson the source side never includes that field, so the target always receives null. The safe practice is to diffselelctFieldsagainst the target field-reference table before going live; add missing fields rather than waiting for production errors. - Code mapping scattered into fields: when material/unit/warehouse mapping is embedded as
_functionsnippets in every field, a single change touches N strategies. The pattern we see most often in customer projects is to centralize in Qeasy's code-mapping module and reference mapping names only. - Incremental window too tight: using
LAST_SYNC_TIMEwith no backoff loses records on the slightest clock skew. The 1-day backoff on both ends is an empirical value; duplicates are acceptable becauseidCheckdeduplicates them. - Reusing auto-audit across strategies: this strategy needs auto-audit, but defective outbound (210) usually requires manual review. Customer projects typically parameterize the auto-audit flag on the target side instead of hardcoding it per strategy.
- Silent FNote drops: source
comment,vendCustomer,applyDepart,userName,warehouseNameare all unmapped. If business needs them later, extend into theF_LSJC_Textcustom field pool rather than retrofitting standard fields.
When to Use and When Not to Use
Use when: Jky and Kingdee Cloud are both deployed on-prem, assembly/disassembly volume is steady, material and warehouse master data are already bidirectionally synced, and misc delivery notes must auto-post and auto-audit.
Do not use when: cross-org transfers with manual approval flows are involved (disable auto-audit), or when batch/owner policies differ across mixed organizations (a single companyCode cannot describe the scenario — split the strategy).