San Fs SD Qty Discount 005-006 1.0
San Fs SD Qty Discount 005-006 1.0
Wipro
Confidentiality
This document is the property of WI, who owns the copyright thereof. The
information in this document is given in confidence and without the written
consent of WI, given by contract or otherwise, this document must not be
copied, reprinted or reproduced in any material form, either wholly or in
part. Also the contents of this document or any methods or techniques
available there from, must not be disclosed to any third party whatsoever
Functional
Specification
SAN_FS_SD_QTY
DISCOUNT_005
-006_1.0
Table of Contents
1.0
PURPOSE................................................................................................................. 3
2.0
ROLE......................................................................................................................... 3
3.0
3.1
3.2
3.3
3.4
3.5
3.6
3.7
4.0
4.1
4.2
4.3
4.4
5.0
HEADER.......................................................................................................................................................4
OBJECT VERSION HISTORY.......................................................................................................................4
INPUT / HEADER / SUB-HEADING / OBJECT BODY..............................................................................5
PROGRAM FUNCTIONS...............................................................................................................................5
PROGRAM LOGIC........................................................................................................................................6
SELECTION LOGIC:..................................................................................................................................10
ASSUMPTIONS/ DEPENDENCIES/ CHECKS/ FILTERS/ HARD CODED FIELDS:................................10
PRODUCTION CHECKLIST...............................................................................11
Page 2 of 9
Functional
Specification
SAN_FS_SD_QTY
DISCOUNT_005
-006_1.0
1.0 Purpose
2.0 Role
Header
Specification Name
Specification Number
SAN_FS_SD_QTY
006_1.0
Specification Type
(Report / Module Pool / Interface
/ BDC / SAP Script / Dictionary/
Enhancements)
Process Development
Functional Module
Priority (H /M /L)
Arun Kumar
Nagaraj
Page 3 of 9
DISCOUNT_005-
Functional
Specification
3.2
SAN_FS_SD_QTY
DISCOUNT_005
-006_1.0
Program Name
Development Class
Transaction Code
Completion Date
3.3
3.3.1
3.3.2
3.3.3
3.3.4
3.4
3.4.1
New
Version
Previous
Version
Date of
change
Program Functions
Pls. use the FS Format/ Program Logic cum selection screen
template in this way
At the month the sales officer issues the credit note based on the slab qty discount. The system calculate the base on
the below mentioned parameters.
Page 4 of 9
Functional
Specification
SAN_FS_SD_QTY
DISCOUNT_005
-006_1.0
Z table has to be created with the following parameters with a table maintenance generator:
Sales Org VKORG (Primary Key)
Distribution Channel-VTWEG (Primary Key)
Division SPART (Primary Key)
Material MATNR (Primary Key)
State of Plant-BLAND (Primary Key)
Qty-From MENGE
Qty To-MENGE
Rate-KBETR
Update From- DATAM
Update To-DATAM
Input Parameters with Two push buttons:
1. Update Slab rate
2. Process Credit note
On selecting the push button Update slab rate, system should take the user to the Z table maintenance and user can
enter the slabs --- On saving the transaction, the Z table has to be updated
On selecting the push button Process credit note, system should prompt the user with two fields
Sales Organization
VKORG
Distribution channel
VTWEG
Month (Mandatory) and year
FKDAT
State
BLAND
(User will enter the month and year, but the system should convert the same into date format. For example,
user will enter the same as Jan 2009 but the system should convert the same as "From 01/01/2009 to
31/01/2009)
On executing the above, system should process the same as follows:
Step 1 : Calculation from Header table
Input parameters in VBRK
Sales Organization
Distribution channel
Billing Date
-
Page 5 of 9
Functional
Specification
SAN_FS_SD_QTY
DISCOUNT_005
-006_1.0
FKIMG
Actual Invoiced Quantity
MEINS
Base Unit of Measure
MATNR Material Number
PRCTR
Profit Center
Step 3: Clubbing the above steps
Output parameters from Step 1 and Step 2 should be clubbed based on the field VBELN (Billing document). Final
output will be
VBELN
Billing Document
VKORG
Sales Organization
VTWEG
Distribution Channel
FKDAT
Billing date for billing index
BELNR
Accounting Document Number
BLAND
Region (State)
KUNRG
Payer
FKIMG
Actual Invoiced Quantity
MEINS
Base Unit of Measure
MATNR Material Number
Also to fetch
Customer Name (NAME1) from KNA1 based on KUNRG and
Material Description (MAKTX) from MAKT based on MATNR
And check the profit center (PRCTR) of the billing documents and if the profit center is different then the system
should create two credit notes for the customer and after the quantity cumulation
Eg: If the customer is billed for 100 MT in depot 1901 and 200 MT in depot 2901, then the system should check for
the slab as defined in Z table and then multiply rate * 100 MT (based on the profit center in the invoice) as one
credit note and rate* 200 MT as another credit note.
Output:
1) Output should be in ALV Grid form.
2) Summation for the field Quantity (FKIMG)
a) For every material
b) For every customer
c) For each profit center
3) On double clicking the customer (KUNRG), other details should be populated in ALV Grid list.
Sample Output
Sales
Organization
1000
1000
1000
1000
1000
1000
1000
1000
Distribution
Channel
10
10
10
10
10
10
10
10
Profit
Center
1000
1000
1000
2000
2000
2000
Customer
Code
1100
1100
1100
1100
1100
1100
1102
1102
Customer
Name
ABC Ltd
ABC Ltd
ABC Ltd
ABC Ltd
ABC Ltd
ABC Ltd
XYZ Ltd
XYZ Ltd
Continuation
Page 6 of 9
Billing
Document
14000001
14000002
Billing date
01.01.2009
01.01.2009
14000003
14000004
01.01.2009
01.01.2009
14000005
14000006
01.01.2009
01.01.2009
Functional
Specification
A/c Doc
No.
Material
Number
9000001
FERT1
9000002
FERT1
FERT1
9000003
FERT2
9000004
FERT2
FERT2
9000005
FERT1
9000006
FERT1
SAN_FS_SD_QTY
DISCOUNT_005
-006_1.0
Material Description
BIRLA GOLD OPC 43
GRADE
BIRLA GOLD OPC 43
GRADE
BIRLA GOLD OPC 43
GRADE
BIRLA GOLD OPC 53
GRADE
BIRLA GOLD OPC 53
GRADE
BIRLA GOLD OPC 53
GRADE
BIRLA GOLD OPC 43
GRADE
BIRLA GOLD OPC 43
GRADE
Quantity
Unit of
Measure
500
MT
400
MT
900
MT
200
MT
100
MT
300
MT
800
MT
900
MT
Page 7 of 9
Functional
Specification
SAN_FS_SD_QTY
DISCOUNT_005
-006_1.0
Note: If VBRP-WERKS = 1000, 2000, 3000, 5000, 6000, 7000 then take the document type as ZSCM
else ZSCM.
B. Creation of Credit Note (VF01)
Note: If VBAK-AUART = ZDCM then FKART should be ZBCM and if it is ZSCM then FKART
should be ZFCM.
Finally,
(1) System should update the Z table (1) Update From- DATAM and (2) Update To-DATAM as per the input
parameters
(2) It also output the list of credit notes generated
3.5
3.6
OUTPUT:
A) List
B) Grid Display
C) Interactive
D) Direct Download
4.2
EXECUTION:
B) Background
Page 8 of 9
Functional
Specification
4.3
SAN_FS_SD_QTY
DISCOUNT_005
-006_1.0
Check
(tick)
Notes (Names of
reports, tr. code, etc.)
done
by
To
The
___________________
Requested By (Originator)
___________________
Functional Consultant
_____________________
Technical Consultant
Page 9 of 9