Professional Documents
Culture Documents
SAP
Functional Specification - Enhancement
OTC_FS_4.1.3_ENH1067_Discount Pool
Version: 4.3
Date: 01 Aug 2016
<Page 1 of 28>
This document is considered Mead Johnson Nutrition confidential and proprietary information. The information contained herein may not be
disclosed or distributed without Mead Johnson Nutrition prior written approval. Any person using a copy of this document is responsible for
ensuring that the copy is current.
OTC_FS_4.1.3_ENH 1067_Discount Pool
Version 4.3
Approval Page
Signature Role
27/10/16 16:59:49 +00:00 Author/Process Area OTC Support Team
X
V aradkar, V inay , Sr Solution A naly s t
I s ubmit f or approv al
X
Maury a, V ikas , .
I approv e
X
V enkates w arlu, A rjun , .
I approv e
X
Wiandt, Walter , .
I approv e
Note: The eSignature timestamp is displayed as dd/mm/yy with Military time in UTC.
Page 2 of 28
This document is considered Mead Johnson Nutrition confidential and proprietary information. The information contained herein may not be
disclosed or distributed without Mead Johnson Nutrition prior written approval. Any person using a copy of this document is responsible for
ensuring that the copy is current.
OTC_FS_4.1.3_ENH 1067_Discount Pool
Version 4.3
Revision History
Version Summary of changes Revised By Date (DD-Mon-YYYY)
4.0 Initial Release CQ: MJNC00207486 Gopal Kolli 12-Dec-15
Build discount pool functionality to
aggregate credits for China Kirin.
4.1 MJNC00207486: Add table names and Gopal Kolli 01-Mar-16
additional details of discount pool logic.
4.2 MJNC00207486 - Changes added for Vinay Varadkar 08 Apr 2016
a. Discount pool accounting
b. Discount pool Program
c. Discount Pool report
4.3 MJNC00225340 – Accounting – Billing Vinay Varadkar 01 Aug 2016
Document Cancellation not posting to
Special GL
Page 3 of 28
This document is considered Mead Johnson Nutrition confidential and proprietary information. The information contained herein may not be
disclosed or distributed without Mead Johnson Nutrition prior written approval. Any person using a copy of this document is responsible for
ensuring that the copy is current.
OTC_FS_4.1.3_ENH 1067_Discount Pool
Version 4.3
Table of Contents
Page 4 of 28
This document is considered Mead Johnson Nutrition confidential and proprietary information. The information contained herein may not be
disclosed or distributed without Mead Johnson Nutrition prior written approval. Any person using a copy of this document is responsible for
ensuring that the copy is current.
OTC_FS_4.1.3_ENH 1067_Discount Pool
Version 4.3
2.Module /Sub-module
Information
Module OTC Submodule Vistex
The following references are the current versions as of the date on the title page.
Reference
SAP System Overview
GL-IM-SOP-05433 Mead Johnson Nutrition System Development LifeCycle (SDLC)
OTC_PDD_4.1.3_Trade_Promotion_and_Execution
Page 5 of 28
This document is considered Mead Johnson Nutrition confidential and proprietary information. The information contained herein may not be
disclosed or distributed without Mead Johnson Nutrition prior written approval. Any person using a copy of this document is responsible for
ensuring that the copy is current.
OTC_FS_4.1.3_ENH 1067_Discount Pool
Version 4.3
***** Begin changes for FS version 4.2 - Discount Pool Accounting *****
Business Requirement:
Discount pool has 6 FI touch points:
3 in Vistex:
1. Expected Accrual ZT02
2. Actual Accrual ZT01
3. Actual Settlement ZT01
3 in SD
4. Credit Memo ZCR1
5. Debit Memo ZDR1
6. Standard Sales Order ZOR
GL accounts
Discount pool steps Expected Accounting entry
Dr Cr
Additions to Discount pool
- Vistex ZT02 Expected Accrual Dr Expenses, Cr Provision 430070 232040
- Vistex ZT01 Actual Accrual Dr232040 Cr 232040 232040 232040
- Vistex ZT01 Settlement Dr232040 Cr 232040 232040 232070
Page 6 of 28
This document is considered Mead Johnson Nutrition confidential and proprietary information. The information contained herein may not be
disclosed or distributed without Mead Johnson Nutrition prior written approval. Any person using a copy of this document is responsible for
ensuring that the copy is current.
OTC_FS_4.1.3_ENH 1067_Discount Pool
Version 4.3
The highlighted cells show Special GL Indicator controlled Alternate Reconciliation account.
So, all these entries would be posted to the customer account and can be tracked using
Special GL indicators as mentioned below:
Condition Special GL GL
Type Indicator Account
ZA09 1 232070
ZA17 2 232070
ZA18 3 232070
***** End changes for FS version 4.2 - Discount Pool Accounting *****
As per SAP reply, a Code change is needed as suggested in SAP note 1259505.
3. Assumptions
Discount pool functionality is only applicable for China
Page 7 of 28
This document is considered Mead Johnson Nutrition confidential and proprietary information. The information contained herein may not be
disclosed or distributed without Mead Johnson Nutrition prior written approval. Any person using a copy of this document is responsible for
ensuring that the copy is current.
OTC_FS_4.1.3_ENH 1067_Discount Pool
Version 4.3
All the calculations will be done at the sales order item level and the discount pool will be
refreshed whenever an order is changed. If there is any change from order to invoice, it
is assumed that business will update the sales order
No maintenance view will be provided for YO1067_DP_SOURCE and
YO1067_DP_TARGET tables. All the additions and deletions have to be done by
creating a sales document or a claim.
Once a credit memo/debit memo request is released (block is removed), discount pool is
updated. It is assumed that these documents will be released to accounting. Even
though debit/credit memo document is not billed, but released, amount is already added
to discount pool tables.
Document types Sales order ZOR, Credit memo ZCR1, ZCR2, Debit memo ZDR1,
ZDR2 and Vistex claim type ZT01 are in scope.
4. Functional Details
Create custom tables YO1067_DP_SOURCE to capture all the additions into the
discount pool and YO1067_DP_TARGET to capture all the consumptions from the
discount pool.
An additional table YO1067_DP_GROUP will be created to maintain cross reference
between customer and a group id. This group ID, which is generated from a custom
number range will be used in source and target tables.
This document is considered Mead Johnson Nutrition confidential and proprietary information. The information contained herein may not be
disclosed or distributed without Mead Johnson Nutrition prior written approval. Any person using a copy of this document is responsible for
ensuring that the copy is current.
OTC_FS_4.1.3_ENH 1067_Discount Pool
Version 4.3
Claims
When a Vistex claim is settled, logic has to be added in
YO_IRM_BADI_IPBBDOC~SETTLEMENT_CREATE to populate
YO1067_DP_SOURCE table. An entry will be created in the table
YO1067_DP_SOURCE with condition type ZCCL. Total amount that will be populated to
source table will be the net value (/IRM/IPBBHDR-NETWR).
Discount pool is updated only for ZT01/CN01 claims.
Validation is added so that claims for China cannot be reverse settled.
Credit memos:
When a credit memo is created for CN01, an entry has to be logged to
YO1067_DP_SOURCE table. When this credit memo is changed or repriced, source
has to be updated with new values. Logic has to be written in sales order user exit to
update the table after releasing the order.
Only after credit memo is released (VBAK-FAKSK is initial), then discount pool table has
to be updated. YO1067_DP_SOURCE table is updated with condition type ZGM4,
ZGM5, ZGM8 or ZGM9 depending on the condition type that is used in that particular
credit memo.
Debit memos:
Page 9 of 28
This document is considered Mead Johnson Nutrition confidential and proprietary information. The information contained herein may not be
disclosed or distributed without Mead Johnson Nutrition prior written approval. Any person using a copy of this document is responsible for
ensuring that the copy is current.
OTC_FS_4.1.3_ENH 1067_Discount Pool
Version 4.3
Sales orders:
A calculation routine will be assigned to these three conditions ZA09, ZA18 and ZA17. In
the condition formula routine, for each condition type maximum allowable discount is
calculated and then validated from Z-tables if that discount is available in the pool
o When control comes to ZA09 in pricing procedure, total allowed discount (Max
allowed – Off invoice – Free goods) is calculated. If total allowed discount is
greater than discount in Z-tables, then the discount in Z-tables for ZA09 is
applied. If not, total allowed discount is applied and next two condition types
need not be executed.
o Similarly when control comes to ZA18, total allowed discount (Max allowed – Off
invoice – Free goods – ZA09) is calculated. Same logic as above is used to apply
discounts.
o When control comes to ZA17 total allowed discount (Max allowed – Off invoice –
Free goods – ZA09 – ZA17) is calculated
After every change to the sales order, discount pool has to be recalculated and applied
correctly.
Maximum discount = Gross Price at header * Maximum Discount % from Additional Data
B at header
11,806.27 * .30 = 3541.88
Minus 1) off invoice discount condition records that applied = suppress discount
at header level = 690.40
Minus 2) free goods value = 1943.50
Minus 3) Discount pool in priority order – ZA09 (returns) = 10.00 - even though
shows as 8.25 here
and then ZA18 rebates = 30.00
and then ZA17 promotions = 20.00
Page 10 of 28
This document is considered Mead Johnson Nutrition confidential and proprietary information. The information contained herein may not be
disclosed or distributed without Mead Johnson Nutrition prior written approval. Any person using a copy of this document is responsible for
ensuring that the copy is current.
OTC_FS_4.1.3_ENH 1067_Discount Pool
Version 4.3
Reporting:
Technical
Name Field Name Range O/M
VKORG Sales Org Range Mandatory
VTWEG Distribution Channel Range Mandatory
SPART Division Range Mandatory
ERDAT Created on Range Optional
KUNAG Sold-to party Range Mandatory
REGIO Region Range Optional
BZIRK Area (Sales district) Range Optional
AUART Document Type Range Optional
Page 11 of 28
This document is considered Mead Johnson Nutrition confidential and proprietary information. The information contained herein may not be
disclosed or distributed without Mead Johnson Nutrition prior written approval. Any person using a copy of this document is responsible for
ensuring that the copy is current.
OTC_FS_4.1.3_ENH 1067_Discount Pool
Version 4.3
Report output:
Below new columns have been added to Discount pool report output.
Page 12 of 28
This document is considered Mead Johnson Nutrition confidential and proprietary information. The information contained herein may not be
disclosed or distributed without Mead Johnson Nutrition prior written approval. Any person using a copy of this document is responsible for
ensuring that the copy is current.
OTC_FS_4.1.3_ENH 1067_Discount Pool
Version 4.3
Discount Pool
Report Output layout.xlsx
Changes done:
1. PO number population for Credit Memo & Debit Memo: Pick up value of BSTNK from
VBAK and populate it in this column.
2. Tactic id – It was populating Last 4 characters from XBLNR for IPNUM from
/IRM/GCRHDR: It should be picked up from agreement table /IRM/IPBBASP-TACTIC.
For this, get Agreement number from /IRM/GCRHDR – KNUMA-DET and pass it to
/IRM/IPBBASP.
3. Tactic description – From configuration table /IRM/TIPATAC - Picked from
/IRM/TIPATACT-DESCR for the TACTIC code from field TACTIC for language LANGU
= E.
4. Activity id – Display 1st 10 characters of /IRM/GCRHDR-XBLNR.
5. Activity description – Available from KONA-ABREX. For this, get Agreement number
from /IRM?GCRHDR – KNUMA-DET and pass it to table KONA.
6. Payment ID -- /IRM/GCRHDR-KIDNO: No change.
This report will be used by the business to get information of all the debits and credits
that make up the discount pool.
Each line item will only have either a debit or a credit in the report.
Depending the data entered in the selection screen, all the entries are pulled from
YO1067_DP_SOURCE and YO1067_DP_TARGET tables and then additional entries
as explain below have to be populated for each line item.
o Sold to number is populated in the file and customer name has to be retrieved
from KNA1-NAME1 field.
o Region will be mapped from KNA1-REGIO.
o Sales org, DC, Division are mapped from sales document details.
o Columns F- R are populated for source documents and columns S-V are
populated for target documents.
Page 13 of 28
This document is considered Mead Johnson Nutrition confidential and proprietary information. The information contained herein may not be
disclosed or distributed without Mead Johnson Nutrition prior written approval. Any person using a copy of this document is responsible for
ensuring that the copy is current.
OTC_FS_4.1.3_ENH 1067_Discount Pool
Version 4.3
Page 14 of 28
This document is considered Mead Johnson Nutrition confidential and proprietary information. The information contained herein may not be
disclosed or distributed without Mead Johnson Nutrition prior written approval. Any person using a copy of this document is responsible for
ensuring that the copy is current.
OTC_FS_4.1.3_ENH 1067_Discount Pool
Version 4.3
***** Begin changes for FS version 4.2 - Discount Pool Accounting *****
As per standard SAP, all these entries are posted to Regular Customer Reconciliation
account. But for Discount pool for China, it needs to be posted to Alternate Reconciliation
account.
New Custom table needs to be created which will hold below mentioned parameters based
on which Custom code will populate Necessary Posting Key and special GL Indicator in the
Accounting Interface ACCIT during run time.
A] Scenario set 1:
While creating Billing document through t-code VF01, the Custom code should read:
Sales Org/Distribution channel/Division: VKORG/VTWEG/SPART
Billing type : FKART and
Current posting Key: BSCHL
B] For Standard Sales order ZOR scenario, the Discount GL account needs to be flipped to
Special GL account.
Page 15 of 28
This document is considered Mead Johnson Nutrition confidential and proprietary information. The information contained herein may not be
disclosed or distributed without Mead Johnson Nutrition prior written approval. Any person using a copy of this document is responsible for
ensuring that the copy is current.
OTC_FS_4.1.3_ENH 1067_Discount Pool
Version 4.3
From only those lines where the KSCHL populated in structure is matching with the
table entry, code should check ‘Current posting Key: BSCHL’.
If scenario matches, the Current Posting key should be replaced with new Posting
key BSCHL and Special GL Indicator UMSKZ.
In addition to above,
Remove the value of HKONT, before populating KUNNR.
Populate Customer number: Pick the Sales Order number VBEL2 from the
structure. Pass it to table VBAK and pick corresponding value of KUNNR.
GL accounts in other lines shall be picked up from standard VKOA settings.
***** End changes for FS version 4.2 - Discount Pool Accounting *****
2. If one Material is deleted from Sales order, the discount calculation becomes
incorrect: Addition of logic to re-price and re-distribute the Discount amount in Only
those Items which are active.
4. ZMDS added to Tax base calculation: Condition ZMDS is used only as a reference
for maximum allowed discount in any sales order. Its value is only for guidance and
should not be added to Tax base or Net value. This issue is handled using ‘condition
exclusion’ configuration.
The logic is: If ZR00 is active in pricing procedure, ZMDs would become inactive.
Page 16 of 28
This document is considered Mead Johnson Nutrition confidential and proprietary information. The information contained herein may not be
disclosed or distributed without Mead Johnson Nutrition prior written approval. Any person using a copy of this document is responsible for
ensuring that the copy is current.
OTC_FS_4.1.3_ENH 1067_Discount Pool
Version 4.3
For achieving this, a new header Condition ZMD1 is created which is editable at
header.
Logic:
If user enters value in ZMD1 condition, the routine 916 shall pick its % condition
value and overwrite ZMDS.
If ZMD1 is blank, routine 916 will not trigger.
Page 17 of 28
This document is considered Mead Johnson Nutrition confidential and proprietary information. The information contained herein may not be
disclosed or distributed without Mead Johnson Nutrition prior written approval. Any person using a copy of this document is responsible for
ensuring that the copy is current.
OTC_FS_4.1.3_ENH 1067_Discount Pool
Version 4.3
b. If there are multiple materials in a Sales order and one of them is marked
with Reason for rejection, the Distribution of Header ZMDS and ZA09/18/17
should ignore conditions in this material and allocate the whole amount in
remaining items.
When the posted billing document is reversed using T-code VF11, the accounting entry gets
reversed. Ideally, it should pick up the Reversal Posting Keys from Standard SAP
configuration. So, for posting key 19, Reversal Posting key assigned is 09.
But system picks up Posting key 40 instead and posts with No Special GL Indicator. This is
causing incorrect accounting.
Reason being: The code gets triggered for SD Document Category VBTYP = M. It is not
getting triggered for Type N. In the standard code, any of the existing User exits for Billing
Page 18 of 28
This document is considered Mead Johnson Nutrition confidential and proprietary information. The information contained herein may not be
disclosed or distributed without Mead Johnson Nutrition prior written approval. Any person using a copy of this document is responsible for
ensuring that the copy is current.
OTC_FS_4.1.3_ENH 1067_Discount Pool
Version 4.3
document Cancellation VF11 is not getting called, for making this addition. So, we had to
raise ticket to SAP.
---------------------------------------
Dear Sir or Madam,
As described in note #1259505 the new cancellation procedure is performed by default. If this procedure
is executed then then user exits in the SD-FI interface are not performed at all.
This is standard. However you have the possibility to force the system to perform the old cancellation thus
your modification will work.
You could consider to add a certain logic in USEREXIT_FILL_XKOMK1 (include RV60BFZA) to fill
parameter RULE_NEW_CANCEL with value 'A'. In this way the old cancellation will be performed.
Best regards,
Tamas
--------------------------
Page 19 of 28
This document is considered Mead Johnson Nutrition confidential and proprietary information. The information contained herein may not be
disclosed or distributed without Mead Johnson Nutrition prior written approval. Any person using a copy of this document is responsible for
ensuring that the copy is current.
OTC_FS_4.1.3_ENH 1067_Discount Pool
Version 4.3
Menu/Submenu
Menu/Submenu
Page 20 of 28
This document is considered Mead Johnson Nutrition confidential and proprietary information. The information contained herein may not be
disclosed or distributed without Mead Johnson Nutrition prior written approval. Any person using a copy of this document is responsible for
ensuring that the copy is current.
OTC_FS_4.1.3_ENH 1067_Discount Pool
Version 4.3
Page 21 of 28
This document is considered Mead Johnson Nutrition confidential and proprietary information. The information contained herein may not be
disclosed or distributed without Mead Johnson Nutrition prior written approval. Any person using a copy of this document is responsible for
ensuring that the copy is current.
OTC_FS_4.1.3_ENH 1067_Discount Pool
Version 4.3
Substituted Field Derived from Field Table used in Substitution Business Rules
Page 22 of 28
This document is considered Mead Johnson Nutrition confidential and proprietary information. The information contained herein may not be
disclosed or distributed without Mead Johnson Nutrition prior written approval. Any person using a copy of this document is responsible for
ensuring that the copy is current.
OTC_FS_4.1.3_ENH 1067_Discount Pool
Version 4.3
This document is considered Mead Johnson Nutrition confidential and proprietary information. The information contained herein may not be
disclosed or distributed without Mead Johnson Nutrition prior written approval. Any person using a copy of this document is responsible for
ensuring that the copy is current.
OTC_FS_4.1.3_ENH 1067_Discount Pool
Version 4.3
This document is considered Mead Johnson Nutrition confidential and proprietary information. The information contained herein may not be
disclosed or distributed without Mead Johnson Nutrition prior written approval. Any person using a copy of this document is responsible for
ensuring that the copy is current.
OTC_FS_4.1.3_ENH 1067_Discount Pool
Version 4.3
This document is considered Mead Johnson Nutrition confidential and proprietary information. The information contained herein may not be
disclosed or distributed without Mead Johnson Nutrition prior written approval. Any person using a copy of this document is responsible for
ensuring that the copy is current.
OTC_FS_4.1.3_ENH 1067_Discount Pool
Version 4.3
Below new columns have been added to Discount pool report output.
Page 26 of 28
This document is considered Mead Johnson Nutrition confidential and proprietary information. The information contained herein may not be
disclosed or distributed without Mead Johnson Nutrition prior written approval. Any person using a copy of this document is responsible for
ensuring that the copy is current.
OTC_FS_4.1.3_ENH 1067_Discount Pool
Version 4.3
Data Verification
7. Error Handling
Normal Functionality - test cases that ensure the enhancement functions as it should.
ID Description
1 Create a Vistex ZT01 IP document and Settle – Discount pool is updated
2 Reverse Settled a ZT01 IP document – Discount pool is cleared.
3 Create a ZCR1 credit memo—Discount pool is updated with corresponding mapping from config table.
4 Create a ZDR1 debit memo—Discount pool is depleted and an entry is added in YDEP_POOL table.
5 Create a sales order and off invoice discounts, free goods make up 30% of order. No consumption from
discount pool happends
6 Create a sales order and discount for a claim is applied An entry is logged to YDEP_POOL table
Page 27 of 28
This document is considered Mead Johnson Nutrition confidential and proprietary information. The information contained herein may not be
disclosed or distributed without Mead Johnson Nutrition prior written approval. Any person using a copy of this document is responsible for
ensuring that the copy is current.
OTC_FS_4.1.3_ENH 1067_Discount Pool
Version 4.3
Exception - special logic or exceptions (e.g. report should exclude certain specific condition)
5 Create a credit memo and just save the credit memo. Discount pool is not updated.
6 Create a debit memo and just save the debit memo. Discount pool is not updated.
Error Handling - functionality in case of errors (e.g. Error Message or Error Log )
7 Reverse settle a Vistex claim Error message that claim cannot be reverse settled.
8 Create a debit memo with balance greater that available in the pool Error issued when debit memo is
released.
9. Additional Information
10. Attachments
Page 28 of 28
This document is considered Mead Johnson Nutrition confidential and proprietary information. The information contained herein may not be
disclosed or distributed without Mead Johnson Nutrition prior written approval. Any person using a copy of this document is responsible for
ensuring that the copy is current.