Académique Documents
Professionnel Documents
Culture Documents
Rebates - VISTEX
Workshop
Rebates functionality - MARS
DOW RESTRICTED
1) Get the records from /DOW/RR_IPCHDRT (Temporary table) table where Sales and Distribution Document Number
(VBELN) = Customer invoice number from selection screen and IP Type (IPTYP) = range based on check box and IPITM =
Customer invoice item.
For Accruals use TVARVC variable /DOW/RR_REBATES_DOCTYP_ACCRUAL
For Settlement use TVARVC variable /DOW/RR_REBATES_DOCTYP_STLMNT
For both use TVARVC variable /DOW/RR_REBATES_DOCTYP
1) Get all the records from /DOW/RR_MKT_SLS and /DOW/RR_MKT_SUB tables for customer invoice.
Processing logic 2) Check all the IP document from step 1 in /DOW/RR_IPCHDRP (Permanent table). If you find the IP Doc in permanent table
then go to MKT_SLS table to see if this invoice is already marked as Sent to sadara.
a) Create an application log with error message if an IP document is already processed (moved into permanent table
and marked as send in MKT_SLS). And delete the record from temp table /DOW/RR_IPCHDRT.
b) If the IP document is in permanent table but with NEW or HOLD record in MKT_SLS table then reprocess the IP
document and update the rebates amount in MKT_SLS or MKT_SUB.
3) For any invoice the order of processing Rebates starts with Accruals and then Settlements. Marketer sales data cannot
have settlement first followed by accruals posting.
4) Accruals - Accruals will be updated in /DOW/RR_MKT_SLS table in EST_RBT field and this can only be done to the MSD
data that is not send to SADARA.
5) If the MSD data in MKT_SLS table is marked as SEND then display an error message in the application log as “Accruals
cannot be processed for the Invoice # and item # as it has already been marked as SEND to SADARA”.
6) If the MSD data in MKT_SLS table is marked as REJECT then display an error message in the application log as “Accruals
cannot be processed for Rejected invoice# Item# in MSD”.
7) For all other status collect the amounts from /DOW/RR_IPCHDRT table for the standard invoice from NETWR for all the IP
Type using TVARVC variable /DOW/RR_REBATES_DOCTYP_ACCRUAL .
Total Estimated Rebate for Invoice should match the sum of total of NETWR which is 13.299,72 from below screenshot
and each line item should match sum of NETWR ($1108.31 for item 10) with respect to line item for the invoice as
highlighted below.
The line items total NETWR should be proportionately divided based on the quantity split in MKT_SLS table for
respective invoice line item.
Est Rebate = (QUAN for current record in MSD/Total QUAN for the Customer invoice item in MSD) *NETWR for that item
from Accruals table
DOW RESTRICTED
2 Process billing documents which includes Rebate accruals for Estimated Rebate is populated in MSD along with currency for
Return the return. This will be a negative number
3 Process billing documents which includes Rebate for Estimated Rebate is populated in MSD along with currency for
Cancellation the cancellation. This will be a negative number
4 Process billing documents which includes rebates accruals for Estimated Rebate is populated in MSD along with currency for
Sales Service Fee the sales service fee
5 Process billing documents which includes rebates accruals for Estimated Rebate is populated in MSD along with currency for
Agent Commission the agent commissions
Test conditions
6 Process billing documents which includes Rebate settlement Rebate entry is created in MSD sub table for each of the
for sale , Return and Cancellation transaction based on matching sale order and item
7 Process Accounting documents which includes settlement for Rebate entry is created in MSD sub table for each of the
Sales Service Fee transaction based on matching sale order and item
8 Process Accounting documents which includes settlement for Rebate entry is created in MSD sub table for each of the
Agent Commission transaction based on matching sale order and item
10 Process billing documents which includes Rebate accrual Estimated Rebate is populated in MSD along with currency for
for sale for multiple original Sadara batches the sale for Sadara product with two different line items- line
items will be split based on quantity
Notes –
• UAT 8th November 2017 LQ_RC_05_CLOSED No run
• No reasons, users or status mentioned in ALM why
LQ_RC_05 onward are closed
• Han, Joyce (J) JHan2@dow.com
• Shao, Rayno (R) mshao4@dow.com
• Ismath, Jawahar (JI) MJIsmathInoon@dow.com 24
October 2017
• Agent commission validation - Not tested, not passed
• DOW/RR_REBATE_PROC – Works (T6A)
• \\usnt43\P_RecReport\2018 PMLA Enhancement -
PRJ18001\WIP\Finance Enhancements\Production
Issues\Rebates_CA
Invoice type missing for various record types (non Invoice type missing on
TBD Shipra 79085
CA or Rebates) Rebates
UAT:
Han, Joyce (J) JHan2@dow.com
Shao, Rayno (R) mshao4@dow.com
Ismath, Jawahar (JI) MJIsmathInoon@dow.com 24 October 2017
Agent commission validation - Not tested, not passed
DOW/RR_REBATE_PROC – Works
\\usnt43\P_RecReport\2018 PMLA Enhancement - PRJ18001\WIP\Finance
Enhancements\Production Issues\Rebates_CA
09/11 – Marketing sales header level accruals and settlements, separate
record. If we need some fields, is VISTEX price condition driven? We
may be missing some fields, we might not be calculating the numbers
accurately. The MARS flow should work (jeff deck rebates)