Qeasy Cloud
Get Started

Syncing JikeCloud Assembly/Disassembly Stock-In Orders to Kingdee Cloud Flagship Edition: A Single-Strategy Field Guide in a Private Deployment

· 王浩宇· Integration Solutions· 12 views· 5 min read

What This Strategy Solves

In one manufacturing customer's warehouse, assembly and disassembly operations generate dozens to hundreds of stock-in documents every day. Each document carries normal materials as well as disassembled sub-components, with quantities, unit prices, batch numbers, and shelf-life dates that all have to flow downstream. Kingdee Cloud Flagship Edition serves as the financial and costing ledger, and it needs these stock-in documents to roll costs forward — but the two systems use different coding schemes, and direct point-to-point integration feels risky. We used the Qeasy data integration platform as the bridge: it pulls assembly/disassembly stock-in orders from JikeCloud by time window, performs centralized field mapping, and writes them into Kingdee Cloud Flagship Edition on a scheduled, traceable, rerunnable basis.

Data Flow and Field Mapping

The overall flow is: JikeCloud (source) → Qeasy data integration platform (mapping middle layer) → Kingdee Cloud Flagship Edition (target). The source side uses the WebAPI query interface erp.storage.goodsdocin.v2, while the target side uses Kingdee Cloud Flagship Edition's stock-in write interface. The middle layer takes care of code mapping, time-window stitching, and the parsing of batch and shelf-life data.

Key field mapping (excerpt):

Business MeaningJikeCloud Source FieldKingdee Target FieldHandling
Stock-in numbergoodsdocNoDocument numberPass-through, used as idempotency key
Stock-in dateinOutDateBusiness dateFormat as yyyy-MM-dd
Document typeinouttype (107 = assembly/disassembly)Document typeFixed at assembly/disassembly stock-in
Vendor/customervendCustomerCode / vendCustomerIdBusiness unit codeTranslated via centralized code map
Warehouse codewarehouseCodeWarehouse codeCodes differ across systems, must map
Item codegoodsDocDetailList.goodsNoMaterial codeMaster data must align first, or costing breaks
QuantitygoodsDocDetailList.quantityReceived quantityUnit conversion handled in middle layer
Tax-inclusive pricegoodsDocDetailList.transHasTaxPriceUnit pricePaired with currencyCode
Tax rategoodsDocDetailList.taxRateTax ratePass-through
Batch numbergoodsDocDetailList.batchNoBatch numberSub-component batches must be preserved
Production/shelf-life dategoodsDocDetailList.productionDate / shelfLife / expirationDateProduction date / expiration datePass through when shelf-life management is on
RemarkgoodsDocDetailList.rowRemark / commentRemarkLine vs. header remarks kept separate

How to Configure It in Qeasy

In the Qeasy data integration platform, this strategy is split into three parts: a source query strategy, a target write strategy, and the middle-layer mapping.

Source side: The API is erp.storage.goodsdocin.v2, a POST request. Pagination parameters are pageIndex and pageSize (we recommend 100 per page — going larger tends to cause timeouts). inouttype is fixed at 107 so that only assembly/disassembly stock-in is pulled, which avoids mixing it with sales returns or inventory surpluses. selelctFields uses a whitelist so that only the fields actually needed downstream are fetched — this saves traffic and shortens the time spent debugging missing fields. The start time uses the variable {{LAST_SYNC_TIME|datetime}}, so the system automatically resumes from the last successful run.

Middle-layer mapping: This is where things go wrong most often. We recommend that customers put every code translation (JikeCloud warehouse → Kingdee warehouse, JikeCloud item → Kingdee material, JikeCloud vendor → Kingdee business unit) into a single "code mapping table" that business staff can maintain, and let Qeasy look up translations based on document fields. This way, business changes don't touch the integration, integration changes don't touch the business systems, and audits are easy later. Fields like batch number, production date, expiration date, and tax rate are formatted and validated in the middle layer so dirty data never reaches Kingdee.

Target side: For the Kingdee Cloud Flagship Edition stock-in write, we recommend a "header-then-body" staged commit: write the header first to obtain the internal document ID, then batch the body lines, and roll back per line on error instead of rolling back the whole document. The idempotency key is goodsdocNo from JikeCloud, which prevents duplicate pushes.

Implementation Steps

In a private deployment, we usually go live in four phases.

Phase 1: Full initialization. Manually specify a start date (for example, midnight of the day before one retail customer went live), and trigger a one-time full run to bring all historical assembly/disassembly stock-in documents into Kingdee Cloud Flagship Edition. This step runs only during the initial cutover, and once complete the cursor is immediately moved to the maximum document time seen so far.

Phase 2: Confirm the incremental start point. In Qeasy, bind startDate to the last-sync-time variable. Observe for one or two days while manually reconciling document numbers and amounts on both sides. Once they match, open the strategy's scheduled cycle.

Phase 3: Enable the schedule. A crontab like 1-59/5 6-23 * * * (every 5 minutes covering business hours) works, or it can be adjusted to hourly based on the warehouse closing cadence. Qeasy supports both minute-level polling and event-driven triggers; we use polling, because JikeCloud allows late entry of stock-in documents and event triggers tend to miss them.

Phase 4: Reconciliation and rerun. After business closes each day, run a reconciliation: count and amount of today's assembly/disassembly stock-in documents in JikeCloud vs. Kingdee Cloud Flagship Edition. Differences beyond a threshold produce automatic alerts. Every Qeasy strategy has a "rerun by time window" entry — discrepant documents can be re-pushed in one click without rerunning the whole batch.

Pitfalls We Have Seen

  1. Running without code mapping in place. On one customer site, the JikeCloud warehouse was named "Finished Goods Warehouse 1" while Kingdee expected "CK001" — the two strings didn't match at all, and direct pass-through caused Kingdee to reject writes. Switching to a lookup-based translation got the 30 warehouses mapped in about 30 minutes.
  2. Not pinning inouttype. If inouttype=107 isn't pinned on the source side, sales returns and inventory surpluses will also be pulled in, and assembly/disassembly stock-in ends up mixed with document types that should never appear there, breaking financial closing. Filter strictly on the source side.
  3. Batch and shelf-life data being dropped. Disassembled sub-components usually carry the original batch number. If Kingdee has shelf-life management enabled, missing productionDate or expirationDate will make the stock-in fail. Treat these fields as "must carry" and alert on missing values instead of silently skipping them.
  4. Oversized transactions. Early on we wrote an entire document as a single transaction, which timed out whenever there were many lines. Switching to a lightweight "header first to get the internal ID, then batch the body" pattern immediately improved stability. This is the "header-then-body staged commit" pattern we often recommend.
  5. Reruns overwriting manually corrected documents. If the rerun script doesn't carry an idempotency key, it overwrites unit prices that someone has manually adjusted in Kingdee. We standardized on goodsdocNo as the idempotency key: look up before write, never blindly overwrite.

Where It Fits and Where It Doesn't

Fit: Private-deployment projects where JikeCloud is the operational front end and Kingdee Cloud Flagship Edition is the financial/costing back end, and where assembly/disassembly stock-in must be landed on the books reliably by time window — typically manufacturing and retail customers with strict reconciliation needs. Doesn't fit: Scenarios demanding sub-second real-time response (polling-based sync inherently has a window delay); and early-stage integrations where the source document types change frequently and the middle layer has no version compatibility handling. In the latter case, fix master-data governance first, then talk integration.

Original content. Please credit the source when reposting: https://www.qeasy.cloud/insights/solutions/strat-p2ea595-p4a143d-3954-n9cf553b3-829bf3ee

Comments