Your Returns & Refund Processing Data Template

SAP ECC
Your Returns & Refund Processing Data Template

Your Returns & Refund Processing Data Template

This template provides a structured guide to collecting the necessary data for analyzing your returns and refund processing. It outlines the essential attributes and activities you'll need to track, ensuring you capture all relevant events for a complete process view. Additionally, it offers practical guidance on how to extract this data from your source system. With this, you can effectively prepare your data for process mining and gain valuable insights.
  • Recommended attributes to collect
  • Key activities to track
  • Extraction guidance
New to event logs? Learn how to create a process mining event log.

Returns & Refund Processing Attributes

These are the recommended data fields to include in your event log for comprehensive returns & refund processing analysis.
5 Required 6 Recommended 11 Optional
Name Description
Activity Name
ActivityName
The name of a specific business event or step that occurred within the returns process.
Description

This attribute describes a single, distinct action or status change in the return lifecycle, such as 'Return Order Created', 'Goods Receipt Posted', or 'Credit Memo Created'. These activities form the building blocks of the process map.

Analyzing the sequence and frequency of these activities helps identify the most common process paths, deviations, and rework loops. It is crucial for understanding what happens within a case and in what order, forming the basis for all process mining analysis.

Why it matters

Activities define the steps in the process. Analyzing their sequence, duration, and frequency is the core of process mining and reveals how work is actually done.

Where to get

Derived from status changes in tables like VBUK/VBUP, document creation events (e.g., in VBAK, LIKP, VBRK), or change logs in CDHDR/CDPOS tables.

Examples
Return Order CreatedGoods Receipt PostedCredit Memo CreatedReturn Order Item Completed
Event Time
EventTime
The exact date and time when the activity occurred.
Description

This timestamp marks the precise moment a business event happened. It is recorded for every activity in the process, providing the chronological sequence of events within a case.

Event Time is critical for all time-based analysis, including calculating cycle times between activities, identifying bottlenecks where time is spent waiting, and measuring overall case duration. It enables performance analysis and compliance checks against service level agreements (SLAs).

Why it matters

This timestamp is essential for calculating all durations, analyzing process performance, identifying bottlenecks, and understanding the timeline of each return case.

Where to get

Sourced from various date and time fields across SAP tables. For creation events, it's often ERDAT and ERZET fields (e.g., in VBAK). For change events, it's UDATE and UTIME in the CDHDR table.

Examples
2023-04-15T10:22:05Z2023-04-16T14:01:30Z2023-04-18T09:15:00Z
Return Case ID
ReturnCaseId
The unique identifier for a customer's return request, linking all related activities and documents.
Description

The Return Case ID serves as the primary key for tracking the entire lifecycle of a return process from initiation to closure. Each ID corresponds to a specific customer return, encompassing all associated events such as order creation, delivery, inspection, and credit memo processing.

In process analysis, this attribute is fundamental for constructing the process map. It allows the system to group individual events into end-to-end case journeys, enabling the analysis of process variants, cycle times, and bottlenecks for each distinct return instance.

Why it matters

This is the essential case identifier that connects all steps of a return journey, making it possible to analyze the end-to-end process flow and performance.

Where to get

This is typically the Return Order number from the Sales and Distribution (SD) module. Found in table VBAK (Sales Document Header Data), field VBELN, where the document category (VBAK-VBTYP) is 'H' for Returns.

Examples
600001236000045660000789
Last Data Update
LastDataUpdate
The timestamp indicating when the data for this process was last refreshed.
Description

This attribute records the date and time of the most recent data extraction or update. It provides transparency into the freshness of the data being analyzed.

In analysis, this is important for understanding the timeliness of the insights. Users can see how current the data is, which affects the relevance of any findings, especially for monitoring ongoing operations.

Why it matters

Indicates data freshness, ensuring users understand how current the process analysis is and when the next update can be expected.

Where to get

This is a metadata attribute populated with the execution timestamp of the data extraction job.

Examples
2023-05-20T02:00:00Z2023-05-21T02:00:00Z
Source System
SourceSystem
The system from which the data was extracted.
Description

This attribute identifies the origin of the data, which is essential in environments with multiple systems. It provides context and helps ensure data lineage and integrity.

For analysis, it is used to segment or filter data when combining processes from different source systems. It confirms that the events are coming from the expected application, in this case, SAP ECC.

Why it matters

Identifies the data's origin, which is crucial for data governance and for analyses spanning multiple enterprise systems.

Where to get

This is a static value defined during data extraction to identify the specific SAP ECC instance (e.g., 'ECC_PROD_100').

Examples
SAP_ECC_PRODSAPECC_FINANCE_200
Actual Refund Amount
ActualRefundAmount
The final amount credited to the customer, as posted in the financial documents.
Description

This attribute is the final, confirmed refund value that was processed and posted in the accounting system. This amount may differ from the requested amount due to restocking fees, adjustments based on item condition, or other policy applications.

This is a critical attribute for the 'Refund Amount Discrepancy Tracking' dashboard. Comparing this to the requested amount helps identify systemic issues in the refund calculation and approval process, ensuring financial accuracy.

Why it matters

Represents the final financial outcome of the return. Comparing it to the requested amount helps ensure accuracy and identify financial leakage.

Where to get

Sourced from the financial document associated with the credit memo. Typically found in the BSEG (Accounting Document Segment) table, field WRBTR (Amount in document currency), for the relevant G/L account posting.

Examples
150.0045.001200.75
Material Number
MaterialNumber
The unique identifier for the product being returned.
Description

The Material Number, or SKU, specifies the exact item involved in the return. This allows for detailed analysis at the product level.

By analyzing returns by Material Number, businesses can identify products with high return rates, which may indicate quality issues, inaccurate descriptions, or manufacturing defects. It is essential for dashboards like 'Inventory Impact of Returns' and for understanding how different products move through the returns process.

Why it matters

Identifies which products are being returned, highlighting potential quality control issues or inaccurate product descriptions.

Where to get

Found in the Sales Document Item table VBAP, field MATNR.

Examples
RM-1025FG-2050-BACC-5591
Processing Agent
ProcessingAgent
The user ID of the employee who performed the activity.
Description

This attribute captures the username of the person responsible for executing a specific process step, such as creating the return order or posting the goods receipt. It is often referred to as the 'Changed By' or 'Created By' user.

Analyzing by Processing Agent is key for performance management and resource analysis. It helps identify top performers, agents who may require additional training, and workload distribution across a team. It's used in dashboards like 'Agent Return Processing Performance' to compare cycle times and throughput.

Why it matters

Tracks user involvement, enabling analysis of team performance, workload distribution, and identification of training needs or best practices.

Where to get

Typically found in fields like ERNAM (Created by) or AENAM (Changed by) in header tables like VBAK, LIKP, VBRK. For change events, it is USERNAME in CDHDR.

Examples
CBURNSDSCRANTONJHALPERT
Requested Refund Amount
RequestedRefundAmount
The expected value of the refund, typically based on the net value of the returned item(s).
Description

This attribute represents the initial monetary value of the return, as captured in the return order. It serves as the baseline for financial analysis and reconciliation.

This amount is compared against the 'Actual Refund Amount' to track discrepancies, a key metric for the 'Refund Amount Discrepancy Tracking' dashboard. Analyzing this value helps monitor the financial impact of returns and identify potential issues in pricing or credit calculation.

Why it matters

Establishes the initial financial value of the return, which is crucial for tracking financial discrepancies and understanding the total value of returned goods.

Where to get

This value is typically the net value from the return order item level. Found in table VBAP, field NETWR.

Examples
150.0049.991250.75
Return Channel
ReturnChannel
The channel through which the return was initiated, such as online, in-store, or call center.
Description

This attribute specifies the origin or intake method for the return request. It helps differentiate between returns initiated through a web portal, a physical store, or via a customer service representative.

Segmenting the process by Return Channel is crucial for understanding operational differences and resource allocation. For example, in-store returns might have faster inspection times but different documentation steps compared to online returns. This is a key dimension for the 'Returns Process Throughput Trends' dashboard.

Why it matters

Distinguishes how returns are initiated, which often impacts the process flow, resource needs, and cycle times for different channels.

Where to get

This is often not a standard field in SAP ECC and may need to be sourced from a custom field (e.g., in VBAK) or inferred from other data like the Sales Organization (VKORG) or Distribution Channel (VTWEG). Consult SAP ECC documentation for specific implementation.

Examples
Online PortalIn-StoreCall Center
Return Reason
ReturnReason
The reason code provided by the customer for returning the item.
Description

This attribute indicates why a product was returned, using predefined reason codes in SAP. Examples include 'Damaged in transit', 'Wrong item shipped', or 'Does not fit'.

This is a critical dimension for root cause analysis. By filtering the process map or KPIs by Return Reason, analysts can identify if certain reasons are associated with longer processing times, higher inspection failure rates, or specific process deviations. This insight can drive improvements in product quality, logistics, or sales processes.

Why it matters

Explains why returns occur, enabling root cause analysis to reduce return rates by addressing product quality, shipping, or description issues.

Where to get

Found in the Sales Document Item table VBAP, field ABGRU (Reason for rejection of sales documents).

Examples
001 - Damaged product002 - Wrong product005 - Arrived too late
Company Code
CompanyCode
The legal entity or company responsible for the transaction.
Description

The Company Code represents a self-contained accounting unit within SAP. All financial transactions, including returns and refunds, are posted to a specific company code.

This attribute is essential for financial reporting and for segmenting the process in multinational or multi-entity organizations. Analyzing by Company Code allows for comparison of return process performance across different legal entities within the corporation.

Why it matters

Allows for filtering and comparing return processes across different legal entities within an organization, which is critical for financial analysis.

Where to get

Found in the Sales Document Header table VBAK, field BUKRS_VF (Company code for billing).

Examples
10002000US01
Credit Memo Number
CreditMemoNumber
The unique identifier for the credit memo document issued for the refund.
Description

The Credit Memo is the official billing document in SAP that formalizes the refund to be paid to the customer. This number uniquely identifies that financial document.

This attribute is essential for financial reconciliation and for tracking the process from the operational return to the financial settlement. It serves as a key milestone in the process and is used to find related accounting documents for attributes like 'Actual Refund Amount'.

Why it matters

Provides a direct link to the financial document that authorizes the customer refund, which is essential for financial auditing and reconciliation.

Where to get

The credit memo is a billing document. Its number is found in the VBRK table (Billing Document: Header Data), field VBELN. The link is found via the document flow of the return order.

Examples
900011229000334490005566
Customer ID
CustomerId
The unique identifier for the customer initiating the return.
Description

This attribute identifies the specific customer (the 'Sold-to Party' in SAP terms) who is returning the product. It links the return transaction to the customer master data.

Analyzing by Customer ID helps identify customers with frequent returns, which could signal dissatisfaction or potential misuse of return policies. It can also be used with customer segmentation data to understand if certain customer groups have different return behaviors or process experiences.

Why it matters

Links returns to specific customers, allowing for analysis of customer behavior, identification of repeat returners, and impact on customer relationships.

Where to get

Found in the Sales Document Header table VBAK, field KUNNR (Sold-to party).

Examples
CUST-100432CUST-203991CUST-831102
End-to-End Cycle Time
EndToEndCycleTime
The total time elapsed from the first to the last activity for a return case.
Description

This is a case-level metric calculated as the duration between the very first event (e.g., 'Return Order Created') and the final event (e.g., 'Return Order Completed' or 'Credit Memo Cleared'). It represents the total time a return spends in the process.

This is a primary key performance indicator for overall process efficiency. It is used in trend analysis and benchmarking to track improvements over time. Analyzing the distribution of this metric helps identify the factors, such as product type or return reason, that correlate with longer or shorter resolution times.

Why it matters

Measures the total duration of the return process, providing a key indicator of overall process efficiency and customer experience.

Where to get

This is a calculated metric. It is the timestamp of the last activity in a case minus the timestamp of the first activity.

Examples
5 days 4 hours12 days 8 hours3 days 2 hours
Is SLA Compliant
IsSLACompliant
A flag indicating whether the refund was processed within the agreed service level agreement (SLA).
Description

This is a calculated boolean attribute that compares the actual date of the 'Refund Processed' activity with the 'Refund SLA Target Date'. It resolves to true if the refund was completed on time and false otherwise.

This attribute simplifies analysis and reporting by providing a clear, binary outcome for each case's SLA performance. It is used to calculate the overall 'Refund Processing SLA Compliance' rate and allows for easy filtering to isolate and analyze non-compliant cases.

Why it matters

Provides a clear, binary indicator of SLA performance for each case, simplifying compliance monitoring and reporting.

Where to get

This is a calculated attribute. The logic is: 'Refund Processed' EventTime <= RefundSLATargetDate.

Examples
truefalse
Original Sales Document
OriginalSalesDocument
The number of the original sales order against which the return is being made.
Description

This attribute provides a direct link back to the initial customer purchase. It is a reference document that connects the return to the original transaction details.

Having this link is extremely valuable for deeper analysis. It allows analysts to investigate why sales from certain orders are returned, to check original pricing and terms, and to understand the complete customer order-to-return lifecycle. It can help answer questions about whether products sold via specific campaigns or channels have higher return rates.

Why it matters

Links the return to the original sale, enabling a full-circle view of the customer transaction and deeper root cause analysis.

Where to get

This reference is stored at the item level of the return order. It can be found in table VBAP, field VGBEL (Document number of the reference document).

Examples
100034561000987110012345
Plant
Plant
The physical location or facility where the returned item is received and processed.
Description

The Plant in SAP represents a physical location, such as a warehouse or distribution center, where goods are handled. For returns, this is typically the location where the item is received and inspected.

Analyzing the process by Plant helps identify performance variations between different facilities. It can highlight which warehouses are more efficient at item inspection or have higher throughput, supporting the 'Item Inspection Throughput & Efficiency' dashboard.

Why it matters

Identifies the physical location processing the return, enabling performance comparison across different warehouses or distribution centers.

Where to get

Found at the item level in the return order, table VBAP, field WERKS.

Examples
PL01WH02DC05
Refund Amount Discrepancy
RefundAmountDiscrepancy
The calculated difference between the actual and requested refund amounts.
Description

This calculated metric quantifies the monetary difference between what was initially requested in the return order and what was finally issued in the credit memo. A positive value might indicate a partial refund, while a negative value is unusual but could indicate an overpayment.

This attribute is the key measure for the 'Refund Amount Discrepancy Tracking' dashboard. It helps to quickly identify and analyze cases with financial deviations, which could be due to item condition assessments, restocking fees, or errors. Monitoring this helps ensure financial control and policy adherence.

Why it matters

Directly measures financial deviations in the refund process, helping to identify policy non-compliance, processing errors, or financial leakage.

Where to get

Calculated field: ActualRefundAmount - RequestedRefundAmount.

Examples
0.00-4.99-50.00
Refund SLA Target Date
RefundSLATargetDate
The date by which the refund is expected to be processed according to service level agreements.
Description

This attribute defines the deadline for completing the refund process for a given return case. It is typically calculated based on business rules, such as '5 business days from goods receipt'.

This target date is the benchmark against which actual performance is measured. It is the core component for the 'Refund Processing SLA Compliance' dashboard, allowing the business to monitor adherence to customer commitments and identify cases that are at risk of breaching their SLA.

Why it matters

Sets the performance target for processing refunds, allowing the business to measure and report on SLA compliance and prioritize overdue cases.

Where to get

This is typically not a standard SAP field and would need to be derived based on business rules. It could be calculated from a key date field (e.g., goods receipt date from MKPF) plus a configured duration. Consult SAP ECC documentation or business requirements.

Examples
2023-04-25T23:59:59Z2023-04-28T23:59:59Z2023-05-02T23:59:59Z
Return Order Status
ReturnOrderStatus
The overall processing status of the return order case.
Description

This attribute provides a snapshot of the current state of the return case, such as 'Open', 'In Process', or 'Completed'. It is derived from the combination of statuses at the header or item level of the sales document.

In analysis, this attribute is useful for filtering cases to focus on active or completed returns. It can help in monitoring the overall workload and progress of open cases and provides a high-level outcome for each return journey.

Why it matters

Provides a high-level view of where a case is in its lifecycle, allowing for filtering and analysis of open, in-progress, or closed returns.

Where to get

Derived from the status fields in tables VBUK (Header Status) and VBUP (Item Status). For example, VBUK-GBSTK is the overall processing status of the document.

Examples
OpenIn ProcessCompleted
Return Policy Adherence
ReturnPolicyAdherence
A flag indicating if the return complies with all defined business rules and policies.
Description

This calculated boolean attribute signals whether a return case followed the standard, prescribed company policies. The logic could involve checking multiple conditions, such as if the return was initiated within the allowed timeframe, if the reason code is valid for the product, or if manager approval was obtained for an exception.

This attribute powers the 'Return Approval Policy Compliance' dashboard. It allows for direct measurement of the compliance rate and helps identify which policies are most frequently bypassed, enabling targeted process improvement or training.

Why it matters

Measures compliance against business rules, helping to enforce policies consistently and identify cases that require special review or approval.

Where to get

This is a derived attribute based on a set of business rules. For example: (Return Initiation Date - Original Purchase Date) <= 30 days AND ReturnReason IS NOT NULL.

Examples
truefalse
Required Recommended Optional

Returns & Refund Processing Activities

These are the key process steps and milestones to capture in your event log for accurate process discovery.
6 Recommended 6 Optional
Activity Description
Credit Memo Created
A billing document (credit memo) is generated to authorize the financial credit to the customer. This is the official financial document that formalizes the refund amount.
Why it matters

This is a major financial milestone in the process. Analyzing the time to create the credit memo helps identify delays in financial document processing after goods receipt and inspection.

Where to get

This is an explicit event recorded in the VBRK table (Billing Document Header). The creation date is VBRK-ERDAT. The credit memo is linked to the return order or credit memo request in the document flow.

Capture

Use creation timestamp (ERDAT) from the VBRK table for the relevant billing document.

Event type explicit
Credit Memo Posted To FI
The credit memo is released to financial accounting, making it an official accounts receivable posting. This step triggers the actual refund payment process to the customer.
Why it matters

This activity marks the point where the refund is financially recognized by the company. Delays between credit memo creation and posting can slow down the actual refund to the customer.

Where to get

This is an inferred event, identified when the posting status in the billing document header (VBRK-RFBSK) is updated to 'C' (Posting document has been created). The actual accounting document creation date is in the BKPF table.

Capture

Identify the timestamp when VBRK-RFBSK is set to 'C', or use the creation date (CPUDT) from the linked BKPF accounting document.

Event type inferred
Goods Receipt Posted
This activity occurs when the returned physical item is received at the warehouse or processing center. It is captured by the posting of a goods movement document against the return delivery.
Why it matters

A key milestone indicating the company has taken possession of the returned item. It is the starting point for physical inspection and affects inventory accuracy.

Where to get

This event can be inferred from the goods movement status of the return delivery item in the VBUP table (e.g., WBSTA = 'C'). The exact timestamp is in the material document header (MKPF-BUDAT) for the corresponding goods receipt.

Capture

Find the posting date (BUDAT) from the MKPF table for the material document linked to the return delivery.

Event type inferred
Return Order Completed
This activity marks the end of the returns process from a sales and distribution perspective. It occurs when all line items on the return order are fully processed and closed.
Why it matters

This is the primary end event for the process. Measuring the time from 'Return Order Created' to this activity gives the end-to-end cycle time for the return case.

Where to get

This is an inferred event from the status tables. It is captured when the overall status of the sales document header (VBUK-GBSTK) is updated to 'C' (Completely processed).

Capture

Identify the timestamp from change documents (CDHDR/CDPOS) when the header status field VBUK-GBSTK changes to 'C'.

Event type inferred
Return Order Created
This activity marks the initiation of the return process when a customer requests to return a product. It is captured when a new sales document of type 'Return' (e.g., RE) is created in SAP ECC.
Why it matters

This is the primary start event for the returns process. Analyzing the time from this activity to others helps measure the total cycle time and identify initial processing delays.

Where to get

This is an explicit event recorded in the VBAK table (Sales Document Header). The creation timestamp is stored in VBAK-ERDAT and VBAK-ERZET for the corresponding sales document number (VBAK-VBELN) with order type VBAK-AUART = 'RE'.

Capture

Use creation timestamp (ERDAT, ERZET) from the VBAK table for sales document type 'RE'.

Event type explicit
Usage Decision Made
After inspection, a quality engineer or inspector makes a formal decision on the condition of the returned item. This decision determines the subsequent process, such as returning to stock, scrapping, or repair.
Why it matters

This activity is crucial for understanding inspection efficiency and its outcomes. The decision directly impacts the refund amount and inventory management.

Where to get

If SAP QM is used, this is an explicit event captured in the QAVE table (Inspection processing usage decision). The decision time is stored in QAVE-VDATUM. The link to the delivery is in the QALS table.

Capture

Use the usage decision date (VDATUM) from the QAVE table, linked via the inspection lot (QALS-PRUEFLOS).

Event type explicit
Credit Memo Cleared
The open credit item in accounts receivable is cleared, typically by an outgoing payment to the customer. This event marks the final financial closure of the refund.
Why it matters

This activity confirms the cash-out event and completes the financial side of the process. It is the true end of the refund journey from a customer perspective.

Where to get

This is an explicit event from the FI module. The clearing date for the accounting document is stored in the BSEG table (BSEG-AUGDT) for the corresponding customer line item.

Capture

Use the clearing date (AUGDT) from the BSEG or BSAD table for the accounting document linked to the credit memo.

Event type explicit
Credit Memo Request Created
A credit memo request is created to formally document the need for a refund. In many configurations, the return order itself serves as the credit memo request.
Why it matters

This is the formal start of the financial settlement part of the returns process. It provides a trigger for subsequent financial approvals and document creation.

Where to get

This can be an explicit event in VBAK for a sales document of type 'Credit Memo Request' (e.g., CR), or it can be the same event as 'Return Order Created' if the order type is configured to be order-related billing.

Capture

Use creation timestamp (ERDAT) from VBAK for document type 'CR', or reuse the return order creation event.

Event type explicit
Return Delivery Created
A delivery document is generated to manage the physical receipt of the returned goods. This event signifies that the logistics process for the return has been initiated.
Why it matters

Tracks the transition from administrative processing to physical logistics. Delays here can impact warehouse planning and overall return cycle time.

Where to get

This is an explicit event recorded in the LIKP table (Delivery Header). The creation timestamp is in LIKP-ERDAT. The link to the source return order is found in the LIPS table (LIPS-VGBEL).

Capture

Use creation timestamp (ERDAT) from the LIKP table for the delivery associated with the return order.

Event type explicit
Return Order Block Removed
Represents the approval of the return request, allowing it to proceed to the next stage. This is typically captured by a change in the document status or the removal of a delivery or billing block.
Why it matters

This activity is a critical approval milestone. Measuring the time taken to reach this step helps identify bottlenecks in the return authorization and approval process.

Where to get

This is an inferred event, derived from change logs for the sales document. Check tables CDHDR and CDPOS for changes to block fields in VBAK or VBAP, or status fields in VBUK/VBUP.

Capture

Identify the timestamp from change document tables (CDHDR/CDPOS) when a relevant block status is removed.

Event type inferred
Return Order Item Completed
An individual line item within the return order is marked as fully processed. This typically occurs after all logistics and financial follow-on documents for that item have been completed.
Why it matters

Tracking at the item level helps identify which products or return reasons cause the longest delays. It provides a more granular view of process completion.

Where to get

This is an inferred event from the status tables. It is captured when the overall status of the sales document item (VBUP-GBSTK) is updated to 'C' (Completely processed).

Capture

Identify the timestamp from change documents (CDHDR/CDPOS) when the item status field VBUP-GBSTK changes to 'C'.

Event type inferred
Return Order Item Rejected
A specific item on the return order is rejected, either during initial review or after inspection. This means no further processing, such as a refund, will occur for this item.
Why it matters

Analyzing rejections helps identify invalid return requests and can inform customer policy communication. It's a key path in the process that does not lead to a refund.

Where to get

This is an inferred event. It is typically captured by a unique 'Reason for Rejection' code being set for the item in the VBAP table (VBAP-ABGRU). The timestamp must be sourced from change logs.

Capture

Identify the timestamp from change documents (CDHDR/CDPOS) when the VBAP-ABGRU field is populated for a return item.

Event type inferred
Recommended Optional

Extraction Guides

How to get your data from SAP ECC