Qeasy Cloud
Get Started

Assembly/Disassembly Outbound to Misc Delivery Sync: A Practical Guide from Jky to Kingdee Cloud

· 何海波· Integration Solutions· 3 views· 4 min read
吉客云Kingdee CloudInventory SyncIncremental Sync编码映射供应链集成

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 typeTransformNotes
goodsdocNoFBillNoDIRECT{{goodsdocNo}}Document number
—FBillTypeIDCONSTANTQTCKD01_SYSMisc delivery bill type
companyCodeFStockOrgIdDIRECT{{companyCode}}Stock org
companyCodeFPickOrgIdDIRECT{{companyCode}}Pick org
—FStockDirectCONSTANTGENERALStock direction
inOutDateFDateTRANSFORMDATE_FORMAT(...)YYYY-MM-DD
—FDeptIdCONSTANTBM000016Issue department
—FOwnerTypeIdHeadCONSTANTBD_OwnerOrgOwner type
companyCodeFOwnerIdHeadDIRECT{{companyCode}}Owner
billNoF_LSJC_TextDIRECT{{billNo}}Related document
sourceBillNoF_LSJC_Text1DIRECT{{sourceBillNo}}Source document
inouttypeNameF_LSJC_Text4DIRECT{{inouttypeName}}Outbound type name
memoF_LSJC_Text11DIRECT{{memo}}Receipt remark
goodsDocDetailListFEntityCOLLECTIONgoodsDocDetailListDetail 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

  1. 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.
  2. Incremental anchor: trigger a one-shot backfill with a very early gmtModifiedStart to ingest historical assembly/disassembly orders; then switch to the incremental window.
  3. 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.
  4. 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.
  5. 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.
  6. 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

  1. Missing deliveryNo field: the target mapping references {{deliveryNo}} for F_LSJC_Text2, but selelctFields on the source side never includes that field, so the target always receives null. The safe practice is to diff selelctFields against the target field-reference table before going live; add missing fields rather than waiting for production errors.
  2. Code mapping scattered into fields: when material/unit/warehouse mapping is embedded as _function snippets 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.
  3. Incremental window too tight: using LAST_SYNC_TIME with no backoff loses records on the slightest clock skew. The 1-day backoff on both ends is an empirical value; duplicates are acceptable because idCheck deduplicates them.
  4. 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.
  5. Silent FNote drops: source comment, vendCustomer, applyDepart, userName, warehouseName are all unmapped. If business needs them later, extend into the F_LSJC_Text custom 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).

Original content. Please credit the source when reposting: https://www.qeasy.cloud/insights/solutions/strat-p2ea595-kingdee-cloud-3635-207v2-c0f3d67a

Comments