Other Outbound - Packaging Material Sync: A Practical Guide from JKY to Kingdee Cloud
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 Meaning | JKY (Source) | Kingdee Cloud (Target) | Notes |
|---|---|---|---|
| Document Number | goodsdocNo | FJKYNo | Cross-system unique trace ID |
| Document Type | inouttype | FBillTypeID | Target uses a coded constant, e.g., QTCKD93_SYS |
| Inventory Org | goodsDocDetailList.ownerName | FStockOrgId | Carried from line entity |
| Stock Direction | Derived from outbound type | FStockDirect | Fixed: GENERAL |
| Business Date | inOutMonth | FDate | Mind the month-cutoff semantics |
| Requisition Department | Line-level field | FDeptId | Department 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:
- Source connector: Register the JKY account, use
erp.storage.goodsdocout.v2, set incremental extraction viastartDate/endDate, with template variables{{LAST_SYNC_TIME|datetime}}and{{CURRENT_TIME|datetime}}. - Target connector: Register Kingdee Cloud, call
batchSave, and write header/line entities against the document-type constantQTCKD93_SYS. - 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_TIMEbaseline and only sync new documents generated after the strategy goes live. Schedule the source during off-peak hours (e.g., a monthly window like23 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
- 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.
- Header-and-line write failure rollback. Kingdee Cloud's
batchSaverolls 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. - 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. - Time zone and month cutoff. The source creation time is business time, while the target
FDatefollows 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. - 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.