Qeasy Cloud
Get Started

Supply Chain Integration Overview: Xinbao Industry Chain Collaboration Platform and Kingdee Cloud Cosmic

· 高金凤· Integration Solutions· 7 views· 5 min read
新宝-产业链协同平台Kingdee Cloud新宝产业链协同平台供应链集成生产同步采购销售一体化轻易云数据集成平台

Scenario and Value

In a supply chain integration project for a manufacturing enterprise, we ran into a familiar pain point: production orders, schedules, and inbound documents in the ERP were being moved into the external collaboration platform through manual imports. At month-end reconciliation, the procurement side would walk into the workshop asking "where is batch X right now?", and the workshop would reply "we only see the production order number, not the customer order number." The two systems used different document numbering schemes, state machines, and field semantics, and the truth was scattered across spreadsheets and chat groups.

The goal of this engagement was to wire up the main supply chain flow between Kingdee Cloud Cosmic (used internally as the ERP) and the Xinbao Industry Chain Collaboration Platform (used externally for order intake and production collaboration). Purchase orders had to flow downstream as sales orders, delivery notes had to become inbound receiving notices, production order statuses had to be reflected as schedules, and production receipts plus on-hand inventory had to feed the collaboration platform for visualization. Once this was in place, the business side could finally see procurement-side order progress and inventory levels directly in the collaboration platform, and the procurement team no longer had to jump between systems.

Integration Architecture and Data Flow

The overall pattern is bidirectional. The collaboration platform (referred to as side A) and Kingdee Cloud Cosmic (side B) exchange data through an iPaaS integration layer that handles adapter adaptation, field mapping, strategy orchestration, and exception hosting.

The data flow has two main trunks:

  • A → B (collaboration platform → Kingdee Cloud Cosmic): purchase orders become sales orders; delivery notes become receiving notices.
  • B → A (Kingdee Cloud Cosmic → collaboration platform): production orders (started / completed) are written into schedules on the collaboration platform; production receipts are mirrored as inbound documents; on-hand inventory feeds the collaboration platform's stock view.

In addition, there are two query-only strategies (B → integration platform internals): a sales order query and a material query. These are consumed inside the integration platform for code cross-reference and document validation, and never write back to either source or target.

┌──────────────────────┐         ┌──────────────────────┐
│ Xinbao Collaboration │ ◄────►  │ Kingdee Cloud Cosmic │
│       Platform        │         │        (ERP)         │
│        (A)            │         │        (B)            │
└──────────┬────────────┘         └──────────┬────────────┘
           │                                 │
           │   A → B:                        │
           │   • Purchase Order → Sales Order │
           │   • Delivery Note → Receipt Note │
           │                                 │
           │   B → A:                        │
           │   • Production Order            │
           │     (start/finish) → Schedule   │
           │   • Production Receipt → Receipt │
           │   • On-hand Inventory → Stock   │
           │                                 │
           ▼                                 ▼
        ┌──────────────────────────────────────┐
        │   iPaaS Integration Platform:        │
        │   • Code mapping (material/customer/ │
        │     site/warehouse)                  │
        │   • Incremental + full reconciliation │
        │   • Retry / idempotency / alerting    │
        └──────────────────────────────────────┘

In this project, we used Qeasy (轻易云数据集成平台). It exposes strategy scheduling, field mapping, runtime monitoring, and failure handling as visual configuration, which significantly reduces the cost of writing and maintaining scripts. All eight strategies live in one unified view, where document lineage, checkpoint position, and failure causes are visible at a glance.

Interface Inventory

Strategy IDData ObjectDirectionNotes
P6-S01Production Order (started) → ScheduleKingdee → CollaborationFilter FStatus=4, incremental on FStartDate
P6-S02Production Order (completed) → ScheduleKingdee → CollaborationFilter FStatus=5, incremental on FFinishDate
P6-S03Production Receipt → Production ReceiptKingdee → CollaborationIncremental on FApproveDate, header + lines aggregated
P6-S04On-hand Inventory → Stock InfoKingdee → CollaborationOwner / org filtered, incremental on FUpdateTime
P6-S05Purchase Order → Sales OrderCollaboration → KingdeeSite→customer and material code mapping, master data preferred
P6-S06Sales Order QueryKingdee → Platform InternalQUERY_ONLY, executeBillQuery
P6-S07Delivery Note → Receipt NoticeCollaboration → KingdeeSite→customer, SKU→material, warehouse code mapping
P6-S08Material QueryKingdee → Platform InternalQUERY_ONLY, supplies code mapping for other strategies

Implementation Highlights

Phased scheduling. Master data goes first: the Kingdee material query runs every 5 minutes during business hours (08:00–22:00), serving as the encoding cross-reference base for downstream strategies. The other seven strategies can run in parallel without hard dependencies, but for first go-live we recommend a full sync before switching to incremental.

Incremental fields and full reconciliation. Production orders, production receipts, and on-hand inventory strategies all use a LAST_SYNC_TIME incremental pattern, with filters on FStartDate / FFinishDate / FApproveDate / FUpdateTime respectively. For first go-live or data repair scenarios, run a full sync first, then switch to incremental. The checkpoint is only advanced when the entire batch succeeds; on failure the original value is preserved so the next run resumes from the same breakpoint.

Code mapping. Cross-references for sites↔customers, materials↔materials, warehouses, and units are maintained centrally in the mapping tables of Qeasy (轻易云数据集成平台), supporting batch imports. They are refreshed whenever a new material is added or a site changes, so strategies do not have to look up master data at runtime.

Exception retry and idempotency. Network timeouts and target-side 5xx errors use exponential backoff (1 min / 2 min / 5 min, up to 3 retries). 4xx business errors are not retried; instead, they are written to the failure table and trigger an alert. All write strategies enable idCheck, deduplicating on primary keys (such as FTreeEntity_FEntryId, poNo, FEntity_FEntryID) to prevent duplicate writes.

Privacy handling. The design deliberately does not embed any customer information, company information, secrets, or tokens. All environment-specific values are expressed as placeholders in the design document and only filled in by the implementation team under proper authorization in the real environment.

Best Practices and Postmortem Notes

  1. Run master data first, then the rest. In an earlier attempt we let all strategies fire concurrently, and the sales order write failed with "material code not found" because the mapping table had not been populated yet. We now treat the Kingdee material query as a "pioneer strategy": run it for one or two cycles until the data is stable, then start downstream writes.

  2. Write header and lines in two stages. For production receipts and receiving notices, a common mistake is to POST the line array directly, leaving the header foreign key unfilled. The reliable pattern is to write the header first, capture the returned primary key, and then write the lines keyed on it. Qeasy (轻易云) supports this naturally through staged mapping nodes.

  3. Split Qimen / non-Qimen channels. Some interfaces between the collaboration platform and Kingdee go through the Kingdee open platform while others use bespoke APIs, with different response shapes and authentication mechanisms. Keeping them in separate connector configurations, each with its own timeout and retry parameters, is much easier to maintain than cramming everything into a single strategy.

  4. Map state machine fields explicitly; do not pass them through. Production order FStatus (4=started, 5=completed) becomes an unreadable enum on the collaboration side if passed through verbatim. We use a TRANSFORM step in the mapping to convert it explicitly to in_progress / completed, with a second localization pass on the receiving side.

  5. Alert tiering matters more than alert frequency. Four classes of alerts — single sync failure, three consecutive failures of the same strategy, a single batch exceeding 10× the daily average, and missing code mappings — are triggered separately. Combining them all into one bucket leads to alert fatigue.

When to Use Qeasy

When an enterprise needs to close the loop between ERP, industry chain collaboration platform, and e-commerce back ends with eight or more orchestrated strategies, and prefers a configuration-driven, visual, and observable approach, Qeasy (轻易云数据集成平台) is a sensible fit. It offers centralized code mapping, visual orchestration of scheduling, built-in idempotency and retries, and checkpoint resumption, which together significantly lower the implementation and operations bar compared with hand-rolled scripts.

Original content. Please credit the source when reposting: https://www.qeasy.cloud/insights/solutions/sol-p324930-kingdee-cloud-0880

Comments