Vous êtes sur la page 1sur 9

Functional Specifications

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_REVERSAL
OF
CASH
DISCOUNTS_002_1.0
Table of Contents

1.0

PURPOSE................................................................................................................. 3

2.0

ROLE......................................................................................................................... 3

3.0

TEMPLATE FOR CAPTURING FUNCTIONAL SPECIFICATIONS.............3

3.1

HEADER............................................................................................................................................................3

SPECIFICATION NAME.......................................................................................................3
FUNCTIONAL MODULE.......................................................................................................3
3.2 OBJECT VERSION HISTORY............................................................................................................................4
3.3 INPUT / HEADER / SUB-HEADING / OBJECT BODY...................................................................................4
3.3.1
Object Name:....................................................................................................................................4
3.3.2
Heading:
DEBIT MEMO FOR CASH DISCOUNTS............................................................4
3.3.3
Sub-Heading (if any):....................................................................................................................4
3.3.4
Sub-Heading (if any):....................................................................................................................4
3.4 PROGRAM FUNCTIONS....................................................................................................................................4
3.4.1
Pls. use the FS Format/ Program Logic cum selection screen template in this
way
5
3.5 ANY SPECIAL REMARKS WRT PROGRAM LOGIC OTHER THEN GIVEN IN EXCEL SHEET............................9
3.6 ASSUMPTIONS/ DEPENDENCIES/ CHECKS/ FILTERS/ HARD CODED FIELDS:.......................................9

4.0

OPTIONS FOR PROGRAM (TO BE TICKED).................................................9

4.1 OUTPUT: A) LIST.....................................................................................................................................9


4.2 EXECUTION:................................................................................................................................................9
B) BACKGROUND.......................................................................................................................................................9
4.3 SAMPLE OBJECT (IF ANY, TO BE ATTACHED)..........................................................................................9

5.0

PRODUCTION CHECKLIST.................................................................................9

1.0 Purpose
Page 2 of 9

Functional
Specification

SAN_FS_SD_REVERSAL
OF
CASH
DISCOUNTS_002_1.0

The purpose of this development is to develop the functionality to enable the


business in order to raise the debit note for the reversal of the cash discount to a
particular market segments (Trade) at the month end.

2.0 Role

Fn co to provide logic / source of data


Developer translate the logic provided by the function consultant into program
code.

3.0 Template for capturing Functional specifications


3.1

Header

Specification Name

REVERSAL OF CASH DISCOUNT

Specification Number

SAN_FS_SD_REVERSAL OF CASH
DISCOUNTS_002_1.0

Specification Type
(Report / Module Pool / Interface
/ BDC / SAP Script / Dictionary/
Enhancements)

Process Development

Functional Module
Priority (H /M /L)

Functional Consultant Name

Arun Kumar

Technical Consultant Name

Kiran Marekar

Functional / Technical Estimated


Person Days
For Modification, name of
current report / object

3.2

Object Version History

(To be filled in by the Programmer after the Development or Modification is


complete)
Objects Created / Modified

New
Version

Page 3 of 9

Previous
Version

Date of
change

Functional
Specification

SAN_FS_SD_REVERSAL
OF
CASH
DISCOUNTS_002_1.0

Program Name

Development Class

Transaction Code

Completion Date

Actual Person Days

3.3
3.3.1
3.3.2
3.3.3
3.3.4

3.4
3.4.1

Input / Header / Sub-Heading / Object Body


Object Name:
Heading:
DEBIT MEMO FOR CASH DISCOUNTS
Sub-Heading (if any):
Sub-Heading (if any):

Program Functions
Pls. use the FS Format/ Program Logic cum selection screen
template in this way

Cash discount is already captured in each commercial invoice of trade sales (distribution channel 10) as one
condition type ZCSH and this value is statistical at the time of commercial invoice and is deducted from the base
price of the condition type ZPRO.
As per the discussion, all plants would be adopting a uniform process such as including only the cash discount in the
commercial invoice as a statistical condition.
There would be two z tables for the slab rate maintenance.
1. Create a Z table, with the Region of the Plant, Plant code and no of days indicating the payment receipt of
the customer. This table is used in exceptional cases such as West Bengal depots where the dumping is
done.
Country

Region of Plant

Plant

IN
IN
IN

25
25
25

1404
2404
3404

From
Date
0
4
6

To
Date
3
5
10

Slab

From Day

To Day

120
100
80

01.01.2009
01.01.2009
01.01.2009

31.12.2010
31.12.2010
31.12.2010

Page 4 of 9

Type
of
Instrument
C or D

Functional
Specification

IN
IN
IN
IN
IN
IN
IN
IN
IN

25
25
25
25
25
25
25
25
25

SAN_FS_SD_REVERSAL
OF
CASH
DISCOUNTS_002_1.0
1405
2405
3405
1406
2406
3406
1410
2410
3410

0
4
6
0
4
6
0
4
6

3
5
10
3
5
10
3
5
10

120
100
80
120
100
80
120
100
80

01.01.2009
01.01.2009
01.01.2009
01.01.2009
01.01.2009
01.01.2009
01.01.2009
01.01.2009
01.01.2009

31.12.2010
31.12.2010
31.12.2010
31.12.2010
31.12.2010
31.12.2010
31.12.2010
31.12.2010
31.12.2010

2. Create a Z-table, with the Region of the plant and no of days indicating the payment receipt of the customer.
Country

Region of Plant

IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34

From
Date

To
Date

Slab

Page 5 of 9

From
Day

To Day

Type
of
Instrument
C or D

Functional
Specification

IN

SAN_FS_SD_REVERSAL
OF
CASH
DISCOUNTS_002_1.0

35

Step1: Create an initial screen with the values as


Billing Date FKDAT (Primary Key)
Payer -KUNRG (Primary Key).Only 10- Trade
Display Matching To check the balances
Step2: Based on the selection criterion, fetch all the commercial invoices VBRK-VBTYP = M of the division
cement 51 and only those materials whose MATKL of VBRP-MATKL = PPC, OPC, or PSC.
Also check whether the invoice is cancelled (VBRK- FKSTO is flagged) that means the invoice is cancelled and
then delete this invoice from this list.
And then get the no of days after the invoice date that the customer has made the payment and then go to the z table
ZVDISCRTCAL and if the entry exists then take the slab from this table else go to the second z table ZVDISCRT
and get the slab and then based on the region of the customer check with values in the no of days table to arrive at
the rate at which the debit note can be raised.
And read only those invoices where, in the billing document the condition type exists and has a value greater than
zero i.e., get VBRK-KNUMV and go to KONV-KNUMV and get KNUMV-KSCHL = ZCSH has a value > 0
On selecting the each line, the user can Process the Debit note.
Step 1: Calculation from Header table
Input parameters in VBRK
Sales Organization
Distribution channel
Billing Date
-

VKORG (As per input parameters)


VTWEG (As per input parameters)
FKDAT (As per input parameters)

Following fields should be fetched:


VBELN
Billing Document
VKORG
Sales Organization
VTWEG
Distribution Channel
FKDAT
Billing date for billing index
BELNR
Accounting Document Number
BLAND
State (plant)
KUNRG
Payer
Step 2 : Calculation from Item table
From the above data following field will be the input parameter for the next selection in the table VBRP
VBELN Billing Document
Following fields should be fetched:
VBELN
Billing Document
FKIMG
Actual Invoiced Quantity
MEINS
Base Unit of Measure
MATNR Material Number
WERKS
Plant
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

Page 6 of 9

Functional
Specification

SAN_FS_SD_REVERSAL
OF
CASH
DISCOUNTS_002_1.0

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 Debit 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 plant in the invoice) as one Debit note
and rate* 200 MT as another Debit 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.
Apart from the above list, following columns need to be appended
1) Quantity slab from and TO as per Z table (Based on the quantity shown in yellow color, system should pick up
respective data from Z table)
2) Rate from Z table (Based on the slab available for the above combination from the Z table)
Note: While creating the sales order through BAPI, pass 0 into VBAK- TAXK1 where VBRP- REGIO_AUFT is
not equal to 35 i.e., the taxes are applicable in case of Uttaranchal only.
Execution of BAPI
Once the user validates the record and upon execution / F8 the system should check whether, these Debit notes are
already generated. This can be checked by verifying whether the input month is already appended in the field
Update from- DATAM and Update To-DATAM.
If it is blank, then system should prompt a message Do you want you process for generating the Debit Notes",
On clicking OK, system should process the BAPI
Step-6-Debit Note Processing through BAPI
A. Creation of Debit note request (VA01)
Order Type ZDDM- Depot, ZSDM- Factory
Sales Organization 1000
Distribution Channel 10 (Trade)
Sales Office -1000
Sold to Party
Order Reason- AUGRUcan be used for account assgnmt

Page 7 of 9

Functional
Specification

SAN_FS_SD_REVERSAL
OF
CASH
DISCOUNTS_002_1.0

Condition type = ZRCD


Target Qty
Material
Plant
Save
Note: If VBRP-WERKS = 1000, 2000, 3000, 5000, 6000, 7000 then take the document type as ZSDM
else ZDDM.
B. Creation of Debit Note (VF01)

Select the billing type (ZBDM- Depot, ZFDM- Factory) - FKART


Enter the Debit note request # - VBELN
Press Enter
Save.

Note: If VBAK-AUART = ZDDM then FKART should be ZBDM and if it is ZSDM then FKART
should be ZFDM.
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 Debit notes generated

3.5

Any special remarks wrt Program Logic other then given in


excel sheet

3.6

Assumptions/ Dependencies/ Checks/ Filters/ Hard coded


fields:

4.0 Options for program (to be ticked)


4.1

OUTPUT:

A) List
B) Grid Display
C) Interactive
D) Direct Download

Filename if (D) is ticked above Grid Display

Page 8 of 9

Functional
Specification

4.2

SAN_FS_SD_REVERSAL
OF
CASH
DISCOUNTS_002_1.0

EXECUTION:
B) Background

4.3

SAMPLE OBJECT (if any, to be attached)

5.0 Production Checklist


Item

Check
(tick)

Notes (Names of
reports, tr. code, etc.)

User Sign-Off In QA after Testing


Program Documentation
ABAP programmer

done

by

Authorization Profiles to which the


Transaction Code is to be attached
All Components Related
Development released

To

The

Transport Request Number generated


Test Case attached
Test results Dev/ Qual / Prod (To be
attached in E-help line)

___________________
Requested By (Originator)

___________________
Functional Consultant

_____________________
Technical Consultant

Page 9 of 9

Vous aimerez peut-être aussi