Connecting Salesforce to SAP fulfillment means linking an opportunity to specific sales order items, because customer-level totals hide shortages behind unrelated deliveries. Keep requested, confirmed and delivered quantities separate, compare them at the order line or schedule line, and aggregate deliveries before joining to the opportunity. Treat open pipeline, won deals and confirmed orders as different populations. A gap at a checkpoint shows what is outstanding, and says nothing on its own about why.
Totals by customer hide the shortage
Synthetic example: a fictional customer commits to 100 units of product A on a won opportunity. SAP holds an order line for those 100 units, along with a separate line for 20 units of product B that has nothing to do with this deal. Deliveries so far cover 70 of A and all 20 of B. At customer level, 90 of 120 units have shipped, a tidy 75 percent. For the commitment the sales team made, 30 units of A are outstanding, and a promise date may be about to slip.
The customer-level number is correct arithmetic on the wrong population, and most errors in this kind of analysis start there. Salesforce holds a commercial view, often at deal level, with products that may not map one to one to SAP materials. SAP holds an operational view at item level, with schedule lines below that and delivery documents off to the side. The two meet only where someone has built and maintained a link.
The grain ladder
Read the two systems as a ladder of grains. Going down the ladder adds precision. Each step also multiplies rows, which is where double counting comes from. SAP’s Sales Order API separates the sales order item entity, A_SalesOrderItem, from the schedule line entity, A_SalesOrderScheduleLine, and a single item can have several schedule lines when supply can only cover part of the request on the requested date.
Those schedule lines carry the distinction people most often blur. SAP community guidance on classic tables describes VBEP-WMENG as the order quantity and VBEP-BMENG as the confirmed quantity on a schedule line, with the date in VBEP-EDATU, which SAP’s service level monitor documentation also ties to the schedule line carrying a confirmed quantity. Your S/4HANA edition and released APIs decide which names you can read, so confirm them with the system owner before assuming a table is reachable.
Aggregate deliveries before you join
One order item can have several delivery items after a partial shipment, and one order item can have several schedule lines. Join items to both at once and you multiply them: three deliveries across two schedule lines yields six rows, and the requested quantity gets summed six times. Roll each side to the order item first, then bring the rolled-up numbers together.
I’ve used generic names in the example on purpose. Replace them with whichever released views or APIs your SAP system exposes. One community answer notes that delivered quantity shown in schedule lines lives in a structure, with no stored table behind it, and points to the document flow table VBFA as the way to find delivery documents for an order. Check the route from an order to its deliveries with an SAP analyst before anyone writes the join.
WITH confirmed AS (
SELECT order_id, item_id, SUM(confirmed_qty) AS confirmed_qty
FROM schedule_lines GROUP BY order_id, item_id
), delivered AS (
SELECT order_id, item_id, SUM(delivered_qty) AS delivered_qty
FROM delivery_items
WHERE goods_issue_date <= DATE '2026-09-30'
GROUP BY order_id, item_id
)
SELECT m.opportunity_id, i.order_id, i.item_id, i.unit,
i.requested_qty, i.rejected_qty,
COALESCE(c.confirmed_qty, 0) AS confirmed_qty,
COALESCE(d.delivered_qty, 0) AS delivered_qty
FROM order_items i
JOIN opportunity_order_map m ON m.order_id = i.order_id
AND m.item_id = i.item_id
LEFT JOIN confirmed c USING (order_id, item_id)
LEFT JOIN delivered d USING (order_id, item_id)Building the Salesforce to SAP link
Three levels of link are commonly available, and each supports different conclusions. A customer mapping between an account and a sold-to party lets you compare totals per customer and can’t attribute anything to a specific deal. An opportunity-to-order link, stored on either side, lets you attribute an order but assumes the whole order belongs to the deal. The opening example needs an item-level link, or a product mapping applied within a linked order.
Expect many-to-many cases: one opportunity creating several orders, one order consolidating several opportunities, a blanket agreement with call-offs. Write the allocation rule for each, or report these as unattributed. Agree the sold-to, ship-to and parent rule too, since a group’s Salesforce account hierarchy rarely mirrors its SAP partner structure.
Measure the link before relying on it. For one quarter’s won deals, report the share of amount with a mapped order. Synthetic example: 82 percent of won amount has a mapped order, and 18 percent does not. I’d put that 18 percent next to every chart, since a fulfillment rate calculated only on mapped deals describes the mapped deals alone.
Keep populations and clocks apart
Open pipeline, won opportunities and confirmed orders are three populations with three questions. Whether supply could cover pipeline is a planning question weighted by probability. Whether won deals have reached an order is a process question. Whether confirmed orders will deliver on time is an execution question. Ask if all demand can be fulfilled and you’ve blended the three and given a planner nothing to act on.
Dates need the same discipline. Requested date, confirmed date and goods issue date each measure something different, and a confirmed date may be revised. Choose the date that drives the exception, and state whether a revised confirmation resets the clock, since that decides whether a slipped order counts as late.
Quantities bring two more traps. Rejected lines should leave the requested quantity, or they will look like permanent shortages. Units may differ between order and delivery or between the CRM’s product and SAP’s material, so never add across a unit without a conversion the owner has approved. Returns reduce net delivered, and they need a decision about whether the review is on gross or net.
Treat a gap as a question
A shortage at a checkpoint doesn’t show a supplier failed or a date will be missed. Saying why takes evidence that may not be in either system’s connected data: supply plans, shipment records, change history. Report the observed gap and leave the explanation open until something supports it. I’d take a blank over a confident paragraph blaming a supplier on nothing but a quantity difference.
Check access on both sides too. A sales manager entitled to an account may not be entitled to pricing or operational detail held in the ERP, and combining sources should not create a new route to it.
- Test case 1A partial delivery: confirm the outstanding quantity is calculated once, per item.
- Test case 2A rejected line: confirm it leaves requested quantity and is not shown as a shortage.
- Test case 3A won deal with no order: confirm it stays visible on an unmatched list.
- Test case 4An order line unrelated to the deal under review: confirm it does not hide the gap.
One page for an evaluation
Those four cases fit on a page, and a spreadsheet built by an analyst can face them as easily as a product. Ask for the outstanding quantity on each, check the answer against an owner’s reference, and read how it handled the unmatched deal. A product’s source list lives in its connector catalog. Ours is at https://nexatron.io/connectors, and these are the cases to bring to a session with us.
Bring three business questions
Explore your sources, definitions, and review criteria with our team. Please keep credentials and sensitive records out of the inquiry.