Qeasy Cloud
Get Started

Other Outbound - Packaging Material Sync: A Practical Guide from JKY to Kingdee Cloud

· 卢剑航· Integration Solutions· 11 views· 3 min read

What This Strategy Solves

After a retail enterprise deployed multiple systems, packaging-material requisitions were entered manually: outbound in the source ERP, then re-entered in the target ERP. Within a month, document errors, inconsistent definitions, and reconciliation time all spiked. The "Other Outbound – Packaging Material" strategy solves one thing: automatically pushing packaging outbound documents from JKY to Kingdee Cloud with consistent business semantics, so every outbound posts immediately and every document number is traceable across systems.

Data Flow and Field Mapping

The pipeline is unidirectional: JKY (source) → Qeasy Data Integration Platform (middleware) → Kingdee Cloud (target).

The source side calls erp.storage.goodsdocout.v2 to query other outbound documents, locates a document by goodsdocNo, and uses a creation-time window for incremental extraction. The target side uses batchSave to write Kingdee Cloud other outbound documents.

Key field mapping (source → target):

Business MeaningJKY (Source)Kingdee Cloud (Target)Notes
Document NumbergoodsdocNoFJKYNoCross-system unique trace ID
Document TypeinouttypeFBillTypeIDTarget uses a coded constant, e.g., QTCKD93_SYS
Inventory OrggoodsDocDetailList.ownerNameFStockOrgIdCarried from line entity
Stock DirectionDerived from outbound typeFStockDirectFixed: GENERAL
Business DateinOutMonthFDateMind the month-cutoff semantics
Requisition DepartmentLine-level fieldFDeptIdDepartment code requires mapping

We strongly recommend managing code mappings centrally inside Qeasy rather than scattering them across scripts — this is where we have seen the most rollbacks in the field.

How to Configure in Qeasy

Inside the Qeasy Data Integration Platform, only three things need to be configured for this strategy:

  1. Source connector: Register the JKY account, use erp.storage.goodsdocout.v2, set incremental extraction via startDate / endDate, with template variables {{LAST_SYNC_TIME|datetime}} and {{CURRENT_TIME|datetime}}.
  2. Target connector: Register Kingdee Cloud, call batchSave, and write header/line entities against the document-type constant QTCKD93_SYS.
  3. Field mapping: Complete header field mapping in the visual panel; for codes (departments, warehouses), reference the centralized mapping table.

The source has idCheck=true, using goodsdocNo for idempotency. This is critical — packaging outbound documents often get re-pushed or patched, so deduplication by document number is mandatory.

Implementation Steps

We recommend a three-phase rollout to avoid disrupting operations with a full initial load:

  • Phase 1: Incremental start point. Freeze a historical timestamp as the LAST_SYNC_TIME baseline and only sync new documents generated after the strategy goes live. Schedule the source during off-peak hours (e.g., a monthly window like 23 1 2 * *; adjust frequency to your business volume).
  • Phase 2: Full backfill trigger. Once incremental sync is stable, manually trigger a historical backfill limited to the most recent N days (e.g., 30 days) to avoid overwhelming the system.
  • Phase 3: Steady-state scheduling. Schedule the target one hour after the source (e.g., 23 2 2 * *) so the source always lands first and the target catches up.

Higher frequency is not better. Packaging outbound only generates a handful of documents per day; hourly or even daily is enough. Too frequent a schedule will only trigger rate limits.

Lessons Learned from the Field

  1. Scattered code mappings. On an early project we embedded department and warehouse mappings inside scripts, and later a single value change required searching dozens of strategies. The safer pattern is to maintain one centralized mapping table in Qeasy that all strategies reference.
  2. Header-and-line write failure rollback. Kingdee Cloud's batchSave rolls back the entire document if any line validation fails, which makes troubleshooting painful. Inside Qeasy, write the header first and then append lines in stages so failures are retryable per stage.
  3. Wrong incremental start point. If you use the system go-live time as LAST_SYNC_TIME, pre-go-live manual documents will never be backfilled, and the month-end reconciliation breaks immediately. Confirm the historical-document scope with the business first.
  4. Time zone and month cutoff. The source creation time is business time, while the target FDate follows the accounting period. For cross-month documents, decide explicitly which period they belong to; otherwise an outbound issued on the month boundary may post to the next month and inventory drifts.
  5. Idempotency relies on document number. Packaging outbounds occasionally get re-pushed. If the target side does not deduplicate by FJKYNo, you end up with a positive and a negative entry, and inventory becomes inconsistent.

Applicable and Non-applicable Scenarios

Applicable: Internal requisition outbounds such as packaging materials and low-value consumables, where document volume is moderate, monthly reconciliation is required, and cross-system traceability is needed.

Not applicable: Sales outbounds (use a dedicated sales outbound strategy); scenarios requiring real-time, second-level synchronization (unnecessary for packaging and only increases interface pressure); and source-side unclosed/draft documents that may introduce dirty data.

Original content. Please credit the source when reposting: https://www.qeasy.cloud/insights/solutions/strat-p2ea595-kingdee-cloud-5924-n4291fcba-113d0fb1

Comments