ERPClimb logoERPClimb
Cart checkout and orders
SAP Commerce Cloudintermediate 5 min read

Cart checkout and orders — SAP Guided Tutorial

Free sample lesson · open to everyone

Key takeaway

The order journey in SAP Commerce: cart calculation, checkout steps (addresses, delivery, payment), payment authorisation, order placement, the order business process, and handover to ERP for fulfilment.

In this lessonShow sections

Visual overview

Cart checkout and orders — learning sheetFlow: Cart: calculate → Checkout: address, delivery, payment → Place order → Order process → ERP. Key ideas: CART; CHECKOUT; ORDER PROCESS; ERP HANDOVER. Watch out: An order process without error handling leaves orders stuck between Commerce and ERP.ERPClimb.com / COMMERCE / LESSON 6/12 / LEARNING SHEETCart checkout and orders1 · HOW IT FLOWS1Cartcalculate2Checkoutaddress,delivery, payment3Place order4Orderprocess5ERP2 · KEY IDEAS EXPLAINEDCartEntries with quantity and unit; recalculationapplies prices, promotions and taxes.Anonymous and logged-in carts; merge on login.CheckoutDelivery address and mode with cost.Payment via a PSP integration with tokenisationand 3-D Secure where required.Order ProcessBusiness process engine executes actions insequence after placement.Typical steps: fraud check, export to ERP,confirmation email.ERP HandoverOrder replicated to ERP as sales order; status anddeliveries flow back.Capture payment on shipment or as the businessrequires.3 · REMEMBER · WATCH OUTRememberThe cart holds entries, prices, promotions and totals; it isrecalculated on changes.Checkout collects addresses, delivery mode and payment, then placesthe order.Payment is usually authorised with a payment service provider; carddata should never be stored in Commerce.!Watch outAn order process without errorhandling leaves orders stuck betweenCommerce and ERP.4 · IN A REAL PROJECTDuring a sale, ERP was slow and order exports timed out. Orders stayed 'created' without alerts; customersreceived no confirmation for hours. Adding retries, an alert on stuck orders and decoupling confirmationemails from the ERP step fixed it.Original ERPClimb learning sheet • Verify against your SAP release and edition

The situation: a real project scenario

During a sale, ERP was slow and order exports timed out. Orders stayed 'created' without alerts; customers received no confirmation for hours. Adding retries, an alert on stuck orders and decoupling confirmation emails from the ERP step fixed it.

Explanation

With products and prices in place, customers need to actually buy something, and that journey runs through three connected pieces: the cart, checkout, and the order business process.

The cart holds line entries — product, quantity, unit — and is recalculated whenever something changes, reapplying prices, promotions and taxes so the totals shown to the customer are always current.

Commerce supports both anonymous carts (for guests browsing before they log in) and carts tied to a logged-in customer, and a common requirement is merging an anonymous cart into the customer's account cart at login so items aren't lost.

Stock should be checked before checkout completes, not only at add-to-cart time, since stock levels can change between when an item is added and when the order is placed.

Checkout collects the delivery address, delivery mode (with its associated cost), and payment details, then places the order. Payment is normally authorized through a payment service provider (PSP) integration rather than handled directly by Commerce — card data should never be stored in the Commerce database, and features like tokenization and 3-D Secure are typically the PSP's responsibility, not something built from scratch in the platform.

Once an order is placed, a business process engine runs a defined sequence of steps — commonly fraud screening, export of the order to the ERP for fulfilment, and a confirmation email. This is where a lot of real-world fragility shows up: if any step in that sequence can fail (and ERP connectivity timing out is a very common failure), the process needs retries and a clearly visible error state, otherwise an order can get stuck in limbo between Commerce and the ERP with no one aware anything is wrong.

After the ERP accepts the order as a sales order, status updates (shipped, delivered, invoiced) are expected to flow back so the customer's order history in their account reflects reality, and so customer service isn't guessing at order state from two disconnected systems.

Watch out

Common mistakes

Storing card data in Commerce instead of relying entirely on PSP tokenization: beyond being a security risk, this usually violates PCI-DSS scope requirements the business didn't intend to take on.

Having no retry logic or alerting when the ERP export step fails: orders sit silently in a 'created' or 'pending' state, customers get no confirmation, and the business often only finds out when customer service complaints start arriving.

Not merging anonymous and logged-in carts at login: a customer who added items before signing in loses their cart, which is a surprisingly common and avoidable source of abandoned carts.

Not checking stock immediately before payment is captured: an item can go out of stock between add-to-cart and checkout completion, and charging a customer for something that then can't be fulfilled creates a refund and support burden that proper stock validation at checkout would have prevented.

Do this

Best practices

Always route payment through a PSP with tokenization — Commerce should never see or store raw card data, and 3-D Secure / strong customer authentication should be delegated to the PSP's flow.

Build the order business process with retries and explicit, visible failure states for integration steps like ERP export, and alert on orders stuck past a reasonable time threshold, so a stuck order is caught by monitoring within minutes rather than by a customer complaint hours later.

Decouple customer-facing steps like the confirmation email from backend-dependent steps like ERP export where possible, so a slow or failing ERP doesn't also delay the one thing the customer is actually waiting for — confirmation their order was received.

Make sure order and delivery status updates flow back from the ERP into the customer's account promptly, so support isn't the only channel for 'where is my order.'

In the interview

Interview angle

Interviewers like to ask 'A customer says they paid but never got a confirmation email — how do you investigate?' The weak answer is to check the email server.

The strong answer recognizes that the confirmation email is usually one step in an order business process that also includes fraud check and ERP export, so the first move is to look at where that specific order's process instance stopped — if it's stuck waiting on an ERP export that timed out, the email step may never even have been reached.

Candidates who can explain why decoupling the confirmation step from the ERP-dependent step is a deliberate design choice — not just a nice-to-have — demonstrate they've actually debugged order flow issues in production, not just described the happy path.

Practice this lesson

Original educational case studies for SAP consultants, not official SAP certification exam questions. Verify product edition and implementation details against the current SAP documentation.

Quick check

0 of 4 questions attempted

Question 1 of 4

Where should credit card numbers be stored in a SAP Commerce shop?

Practise this in an interview

Answer in your own words and get instant feedback, the way an interviewer would judge it.

1Walk me through the order flow in SAP Commerce from cart to ERP.

2How do you handle ERP downtime for a web shop?

Was this lesson helpful?

Keep exploring

Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.