Qeasy Cloud
Get Started

Practical Tutorial: Syncing LingXing Other-Outbound Orders to Kingdee Cloud Skyline

· 王浩宇· Integration Solutions· 11 views· 5 min read
金蝶云·星空旗舰版ERP供应链集成Inventory Sync轻易云金蝶云·星空私有化部署

What This Strategy Solves

In cross-border operations, the other-outbound order covers non-sales outflows: transfers, inventory shrinkage, internal requisitions, and sample shipments. When the cross-border business system acts as the operational front-end and Kingdee Cloud Skyline acts as the financial and inventory back-end, a missing integration inevitably splits the two ledgers and drowns finance in Excel reconciliations at month-end. On customer sites, our approach is to place the Qeasy data integration platform as the middle layer, pushing other-outbound orders into Kingdee on a scheduled window—without disrupting operations, and giving finance a real-time audit trail.

Data Flow and Field Mapping

The overall flow is "Source System → Qeasy Middle Layer → Target System." Qeasy handles protocol adaptation, field transformation, deduplication, and write control, so neither end system needs custom development.

Key field mapping (typical convention; final fields are confirmed with the business team):

Business MeaningSource (Other-Outbound)Target (Kingdee Other-Outbound)Handling Notes
Bill Numberbill_noFBillNoPass-through; serves as dedup key
Bill Datebill_dateFDateNormalize date format
Warehousewarehouse_codeFStockIdConvert via encoding mapping table
Business Typebiz_typeFBizTypeEnum mapping, maintained centrally
SKUskuFMaterialIdReuse the same mapping as the material sync strategy
QuantityqtyFQtyNumeric type, align decimal places
RemarkremarkFNoteTruncate to length limit

A typical anti-pattern we have seen in real projects: each strategy maintains its own encoding mapping, and three months later the two mappings diverge, leaving the two ledgers out of sync. The reliable approach is centralized encoding mapping—place it in a Qeasy shared dataset referenced by all related strategies so a single change propagates globally.

How to Configure on Qeasy

Configuration falls into three blocks: data source registration, strategy orchestration, and exception handling.

Data source registration: Register both the source (LingXing-side API adapter) and the target (Kingdee WebAPI adapter) in the Qeasy console, with credentials centrally managed and never hard-coded inside the strategy. In a private-deployment environment, network proxies and whitelists are configured once during initialization.

Strategy orchestration: Create a new strategy, pick the source and target data sources, and bind the business document type. Lay the mapping relationships from the table above directly into the configuration. For fields that need secondary processing—such as date normalization or warehouse code conversion—use Qeasy expression nodes rather than external scripts, so everything is observable and traceable.

Exception handling: Enable deduplication using the bill number as the unique key. Existing documents follow update or skip logic, preventing duplicate writes from corrupting inventory. Enable failure retry and alerting: when a document fails repeatedly beyond a threshold, trigger a Lark/DingTalk alert to the owner.

Implementation Steps

We split the rollout into three phases—incremental start point → full load trigger → scheduling frequency—phased to avoid flooding production from day one.

Step 1: Incremental start point. For the first rollout, we usually suggest the customer pick a low-traffic moment as the start point, after which Qeasy pulls deltas by document modification time. A safe practice we use on-site is to set the start point right after the previous complete month-end close. This naturally isolates cross-period data and makes issues easy to locate.

Step 2: Full load trigger. Once incremental runs stably, perform a historical full backfill. Qeasy supports manually triggering a one-off full pull; after backfill completes, it automatically returns to incremental mode. The key here is rate limiting—the Kingdee side has a concurrency ceiling, and pushing too fast triggers throttling. We typically set the batch size to 50–100 records per batch with a 1–2 second pause between batches.

Step 3: Scheduling frequency. Other-outbound orders are moderate-frequency but business-critical. Our default recommendation is a 15-minute schedule, which keeps finance close to real-time without slowing the source system. For stricter latency, this can drop to 5 minutes; below that, we recommend an event-driven approach instead of tight polling.

It is worth noting that the dual-track incremental and full model is a common pattern among Qeasy customers: incremental runs on a timer day-to-day, and full load kicks in for backfill or exception recovery—two mechanisms coexisting without interference.

Pitfalls and Lessons Learned

Pitfall 1: Confusing other-outbound with sales-outbound orders. These are different document types in Kingdee, with different accounts and inventory directions. During a customer's first rollout, a transfer order was mistakenly pushed as a sales-outbound, directly corrupting normal inventory. The safe approach is to add a document-type pre-filter at the strategy entry, so only records matching "other-outbound" flow through.

Pitfall 2: Syncing header and body together with incomplete rollback. We once saw a project where a zero-quantity line in the body caused the entire document to fail, but the header had already been reserved, leaving a "ghost document." Phased header-body processing is a common Qeasy pattern: first write the header and obtain the target document's internal ID, then write each body line; on failure, only the body is rolled back, and the header can be voided independently.

Pitfall 3: Time zone and date formats. The source system runs in UTC+0 while Kingdee defaults to UTC+8, so cross-day documents get pushed to the next day. Perform explicit time zone conversion in the field mapping; do not rely on implicit database conversion.

Pitfall 4: Source documents are editable but the target is already posted. A document was unapproved and edited on the source side, but the update was rejected by the target. The fix is: during incremental pull, fetch not only new records but also modifications; on write, decide between "overwrite" or "void-and-reopen" per business rules.

Pitfall 5: Voucher attachments or image fields. Original documents may carry image attachments; Qeasy by default syncs only master data fields. If the business requires attachments to flow through, a separate attachment channel is needed along with a storage bandwidth budget—align this with the customer before go-live.

When to Use and When Not to Use

Use when: cross-system real-time or near-real-time sync of non-sales outbound business is needed, both source and target systems expose standard APIs, and encoding rules can be aligned via mapping tables in a private-deployment environment.

Do not use when: the daily volume is extremely large (100k+ records/day) with sub-second latency requirements—use event-driven plus message queues instead; or when the source system data structure is not yet frozen and fields change frequently during an early pilot.

Original content. Please credit the source when reposting: https://www.qeasy.cloud/insights/solutions/strat-p110c26-erp-2385-n9121dd9b-5981ba1a

Comments