Qeasy Cloud
Get Started

Syncing Sales Outbound from Baison ME3 to Kingdee Cloud: A Single-Strategy Playbook

· 冯潇· Integration Solutions· 17 views· 4 min read
百胜ME3Kingdee Cloud销售出库同步策略供应链集成轻易云

What This Strategy Solves (Scenario and Value)

A retail enterprise runs Baison ME3 for store fulfillment and Kingdee Cloud for finance and supply-chain accounting. Every day, over a thousand outbound documents must be reconciled between the two systems—Baison only cares about fulfillment status, while Kingdee needs to book documents and produce reports. Manual export/import quickly drifts out of sync within three months. We used the Qeasy (轻易云) data integration platform to own this sync: every 10 minutes, Baison orders that have reached "outbound" status are pushed as SAL_OUTSTOCK into Kingdee, auto-submitted and audited, so the finance side sees results immediately.

Data Flow and Field Mapping

The data flow is: Baison ME3 (source) → Qeasy intermediate layer → Kingdee Cloud SAL_OUTSTOCK (target). The source uses orm.order.detail_get to pull orders; the target uses batchSave to persist in bulk.

Header key-field mapping:

Target FieldSource / RuleBusiness Meaning
FBillTypeIDConstant XSCKD01_SYSStandard sales outbound doc type
FBillNoEmpty, auto-generated by KingdeeBill number produced by Kingdee's coding rule
FDateorderListGet.last_updatePosting date
FStockOrgIdConstant 102.01Shipping organization
FSaleOrgId_mongoQuery lookupLook up customer master by sd_code, return e-commerce org
FCustomerID_mongoQuery lookupLook up customer master by sd_code, return customer code
F_OrderIDorder_snSource order number, used for tracing
FOwnerTypeIdHead / FOwnerIdHeadConstant BD_OwnerOrg / 102.01Owner type and owner

Line key-field mapping:

Target FieldSource / RuleBusiness Meaning
FMaterialIdLine SKU code; mapping table if codes differMaterial code
FRealQtyLine actual shipped qtyActual outbound qty
FStockIdWarehouse code mappingShipping warehouse
FOwnerTypeId / FOwnerIdConstantLine owner, same as header

The core of the code mapping is the shop→customer/organization lookup. Baison's shop code sd_code is bridged to Kingdee customer master through the custom field F_SVSH_ME3ID. _mongoQuery matches on sd_code, then returns FNumber as customer code and F_BelongORG_FNumber as sales organization code.

How to Configure on Qeasy (轻易云)

In Qeasy's strategy canvas, this strategy is a three-stage pipeline: Source QUERY → intermediate mapping → Target EXECUTE.

  • Source: Pick the orm.order.detail_get API, QUERY type, GET method; mark order_sn as the primary key with idCheck enabled.
  • Filter conditions: In request parameters, set shipping_time_fh_start to {{LAST_SYNC_TIME}} and shipping_time_fh_end to {{CURRENT_TIME}}, then layer business filters (covered in the next section).
  • Intermediate layer: Configure header per the mapping table; bind the line array with orderDetailGets → FEntity.value; line fields use direct value or code mapping. The two shop-related columns use _mongoQuery against the customer-query strategy's result set.
  • Target: Pick batchSave; set FormId to SAL_OUTSTOCK, Operation to Save, set IsAutoSubmitAndAudit to true, IsVerifyBaseDataField to true, SubSystemId to 21.
  • Scheduling: Source cron */10 8-22 * * *, target cron 8-59/10 8-22 * * *—both sides aligned on 10-minute slots.

Implementation Steps

  1. Validate prerequisites: The dependent customer-query strategy must be live first, and the F_SVSH_ME3ID custom field must be maintained on Kingdee customer master data. Without this, every shop field comes back empty.
  2. Initialize the incremental baseline: On first go-live, explicitly set LAST_SYNC_TIME to an acceptable historical point to avoid pulling the full history at once.
  3. Business status filtering: Sync only shipping_status = 7 (outbound), exclude order_status = 3 (voided) and is_hh = 1 (exchange orders). A common Qeasy pattern is to centralize filter conditions inside the source configuration so the business side can change them in one place.
  4. Full-volume trigger: For backfill scenarios, temporarily switch the source cron to manual trigger with a widened time window, then restore incremental cadence once the backfill completes.
  5. Scheduling frequency: Both source and target run every 10 minutes between 08:00 and 22:00; off-hours pause to save resources. Make sure the source runs one slot before the target, otherwise the target can fire on an empty result set.
  6. Target operation: With IsAutoSubmitAndAudit=true, Kingdee documents land directly in audited status and finance can book immediately.

Pitfall Postmortem

  1. _mongoQuery source not ready before go-live—the lookup returns empty, FSaleOrgId and FCustomerID come back as empty strings, and IsVerifyBaseDataField rejects them. The safe approach is to model the lookup dependency as a hard prerequisite and start the source schedule ahead of downstream.
  2. Missing shipping_status filter—initial-status orders also get pushed, accumulating junk documents in Kingdee. The typical mistake is treating "suggested sync strategy" as default config; before go-live, shipping_status = 7 must be explicitly selected.
  3. order_sn re-imports—when Baison's last_update changes for the same order, the source returns it again. A common Qeasy pattern is to enable idCheck on both source and target, forming a dual-track deduplication.
  4. Hard-coded FStockOrgId blows up in multi-org scenarios—once multiple business units are involved, the constant must be replaced with a sd_code-driven lookup. This project is single-org, so 102.01 works; multi-org projects must replace this step.
  5. IsAutoSubmitAndAudit=true bypasses the approval flow—some Kingdee workflows require mandatory manual review; in that case disable auto-audit, keep only Save, and let a follow-up strategy handle approval.

Applicable vs. Non-applicable Scenarios

Applicable: Single-org retail enterprises with stable order volume that need to land Baison fulfillment data into Kingdee for financial accounting, with the lookup dependency ready. Not applicable: Multi-sales-org scenarios requiring per-document dynamic determination, retail models that need complex order edits/merges, or business lines where Baison does not maintain a stable ship-time field.

Original content. Please credit the source when reposting: https://www.qeasy.cloud/insights/solutions/strat-me3-kingdee-cloud-2339-nf34db49e-6d123602

Comments