Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
Shravan_
Explorer
0 Kudos
322

Vendor rebate processing is a critical part of procurement cost optimization in SAP. While the standard SAP solution calculates rebates based on Purchase Orders (PO), Goods Receipts (GR), and Invoice Receipts (IR), many businesses—especially those with long lead times between GR and IR—require rebate calculations based on handover Supplier ASNs instead.

In this blog post, we’ll walk through a real-world enhancement implementation that enables vendor rebate calculation based on Supplier ASNs (Advanced Shipping Notifications), rather than the standard GR/IR logic.

 

Business Need

The challenge arose from the need to perform rebate calculation earlier in the procurement lifecycle—specifically when the supplier sends an ASN. This is especially useful when:

  • GR/IR are delayed significantly.

  • Accurate tracking of rebate values is necessary based on handover.

  • Businesses want to use Inbound Deliveries (IBD) or ASNs as the base for rebates.

Standard S/4HANA doesn’t support rebate calculations directly from ASNs. Hence, a custom enhancement was required.

 

Solution Overview

To enable rebate calculation at the ASN stage, standard SAP functionality was enhanced through a combination of custom contract types, BADI implementations, and CDS views. This allows the system to capture and process rebate-related data before goods receipt or invoice posting occurs.

Vendor Rebate Handover Process Flowcharts

vendor_rebate_bpd.png

Part 1: From Contract Creation to Business Volume Report

vendor_rebate_flowchart_part1.png

Part 2: From CDS View to Settlement Posting

vendor_rebate_flowchart_part2.png

These flowcharts outline the complete process, from setting up a contract to posting the settlement.

Key Enhancements

The following customizations were implemented to support rebate calculations based on Supplier ASNs:

SAP Components Used

Object Name

Description

Type

ZENH_STP_CL_WB2_REBATE_SETTLEM

Rebate settlement enhancement

Class

ZIMPL_STP_WB2_BUSVOL_OUTPUT

BADI Implementation for Business Volume

BADI

ZIB_V_OLR3_EKKX_EKES

Custom CDS View

CDS

ZTSTP_SETTLE_ALV

ALV Field Storage Table

Table

  • Custom Contract Type (ZHAN): Triggers ASN-based logic.

  • Enhanced Report (WB2R_BUSVOL): Uses a BADI to handle IBD data.

  • Custom CDS View (ZIB_V_OLR3_EKKX_EKES): Fetches ASN + PO data.

  • Settlement Logic: Applies percentage splits, handles cross-company posting.

 

Finally we can conclude this enhancement allows faster, more accurate vendor rebate calculations using Supplier ASNs. It combines the power of CDS, BADI, and settlement logic—delivering a flexible and scalable solution.

Labels in this area