Você está na página 1de 16

Functional Specification

(To be filled by Functional Consultant)



We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties
without express authority is strictly forbidden. * Mandatory
HPIS; 2012
Format No: HPIS-FS-00, DOCUMENT1 Page 1
of 15
Release Development ID Prepared By Approved By
1 MM_ABAP_1
Bharat Kumar
Patnaik.Choudary
Kamal Somani
Date
(dd-mm-yyyy)
04-07-2013 07-07-2013

Revision History *
Version Date Description
1.1
1.2
1.3



Justification *
Instance
Pipe
Steel
Textile
Sintex
Module MM
Requested
By
Vijay Khanore
Description :

Freight Advice document is not a part of standard SAP.
Development needs to be done in order to meet the clients requirement.



Business Requirment (Please use this section for describing the business requirement in detail,
preferably with flow diagram)
Detailed Description
Freight Advice document will be prepared by stores in order to inform
Finance team regarding the receipt of materials as well as for advising
freight amount to be payable to transportation vendor.

In case of any deductions against particular supply, then the reasons for
deducting the amount needs to be mentioned.
Intergration Freight Advice document has intergrated with FI module.
System needs to pop up a warning message with Freight advice
document number at the time of Invoice verification of transportation
vendor.
Pre-requisites / Master Data Transportation vendor needs to be assigned to Freight condition type in

Functional Specification

(To be filled by Functional Consultant)

We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties
without express authority is strictly forbidden. * Mandatory
HPIS; 2012
Format No: HPIS-FS-00, DOCUMENT1 Page 2
of 15
PO pricing.
GRN needs to be done on truck basis.
Authorisation Requirements Nil


Operational Requirement (Detail Functional Description Concept To describe in detail)

1. Freight Advice document will be prepared by store person after Goods Receipt.

2. Module Pool Screen needs to be designed for Freight Advice document.

3. Input field for Freight Advice document will be GRN Number / Year.
4. The following fields needs to be enhanced & system should fetch the data from Gate Entry, GRN &
Purchase Order into these fields automatically.
- Challan / Invoice No.
- Challan / Invoice Date
- Consignment Document No (LR No.)
- Consignment Document Date (LR Date)
- Transporter Name
- Vehicle No
- Gate Entry No.
- Gate Entry Date
- Vendor Name
- Purchase Order No.
INCO Terms
- GRN No
- GRN Date
- GRN Freight Amount

5. Input fields (Material Description, From Location & to Location) along with (reason codes) for the
deduction of freight amount needs to be developed.

6. Freight Advice date needs to be developed & the same needs to be defaultely system date.

7. User will select the required field (check box) & enters the amount relevant to that component.
Eg: Late Delivery (2000/-))

Functional Specification

(To be filled by Functional Consultant)

We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties
without express authority is strictly forbidden. * Mandatory
HPIS; 2012
Format No: HPIS-FS-00, DOCUMENT1 Page 3
of 15

8. Text field needs to be designed for user to enter his remarks relevant to that delivery.

9. In case of multiple reasons for deducting the freight amount, then Provison should be there for the
selection of multiple reason codes and amounts.

10. Total Amount deductible field needs to be enhanced & the same needs to be calculated based on
the selection & sum up of various reason codes amounts. This field should be non editable.

11. System should generate internal generated number during the saving of this document & this
number should be plant specific.

12. There should be a Provison to have a change mode of the screen where the concerned authority
can change the reason codes & the respective values until the invoice verification has not done.
Provison should be there to have only display view of this document.

13. System needs to pop up a warning message with Freight advice document number at the time of
Invoice verification against the transportation vendor.

14. Provison should be there to make the transporter payment in case of internal movement of
vehicles for which service entry sheet will be passed.



Requirement Details
Requirement type *:
Form
Module Pool
Report
Interface
Enhancement
Conversion
Workflow
IMG




Forms (Fill if Requirement type is Form)
Input Data Tables
Desired Output

Functional Specification

(To be filled by Functional Consultant)

We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties
without express authority is strictly forbidden. * Mandatory
HPIS; 2012
Format No: HPIS-FS-00, DOCUMENT1 Page 4
of 15



Reports (Fill if Requirement type is Report)
Report Creation Mode ABAP
Program
ABAP Query BW
Requested characteristics Drill-down ALV BW
Standard
Others
Proposed execution Online Background
Authority Checks Required Yes No
Any LDB available Yes No If Yes Which Screen to use?

Enhancement (Fill if Requirement type is Enhancement)




Module Pool (Fill if Requirement type is Module Pool)
Input Data Tables ZMM_MIGOCUSTH, EKKO, BKPF, BSEG, WB2_V_MKPF_MSEG2
Output Data Tables ZMM_FRTADV
Desired Layout
Freight Advice
Format_100713.docx

* Fields needs to be entered manually.
Mandatory Fields.






Technical Field mapping details for Forms / Reports / Enhancements / Module Pool

Functional Specification

(To be filled by Functional Consultant)

We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties
without express authority is strictly forbidden. * Mandatory
HPIS; 2012
Format No: HPIS-FS-00, DOCUMENT1 Page 5
of 15
Table Field Name Field Description
ZMM_MIGOCUSTH MBLNR Material Document No. (GRN No.)
ZMM_MIGOCUSTH MJAHR Material Doc Year (GRN Year)
ZMM_MIGOCUSTH BUDAT Material Doc Posting Date
ZMM_MIGOCUSTH ZCHLNO Challan / Invoice No
ZMM_MIGOCUSTH ZCHLDT Challan/ Invoice Date
ZMM_MIGOCUSTH ZCNDOC
Consignment Document No
ZMM_MIGOCUSTH ZCNDAT Consignment Document Date
ZMM_MIGOCUSTH ZTRANNAME
Transporter Name
ZMM_MIGOCUSTH ZVEHNO Vehicle Number
ZMM_MIGOCUSTH ZGPASS Gate Entry Number
ZMM_MIGOCUSTH ZGCDATE Gate Entry Date
ZMM_MIGOCUSTH LIFNR Vendor Name
ZMM_MIGOCUSTH EBELN Purchase order number
EKKO INCO1 INCO Terms
BSEG ZGFRTAMT GRN Freight Amount
ZTDAMT Total Deductible Amount
ZMAKTX Material Description
ZFRLOC From Location
ZFRTO To Location
ZLDFLAG Late Delivery Flag
ZLDAMT Late Delivery Amount
ZDAMFLAG Damage Flag
ZDAMAMT Damage Amount
ZSHRTFLAG Short Receipt Flag

Functional Specification

(To be filled by Functional Consultant)

We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties
without express authority is strictly forbidden. * Mandatory
HPIS; 2012
Format No: HPIS-FS-00, DOCUMENT1 Page 6
of 15
ZSHRTAMT Short Receipt Amount
ZSPRFLAG Special Req not fulfilled Flag
ZSPRAMT Special Req not fulfilled Amount
ZOTHFLAG Others Flag
ZOTHAMT Others Amount
ZFRTCL Closed Indicator
ZFADC Freight Advice document number
ZFADDT Freight Advice document Date
Note: Fields without table from technical fields mapping indicates the fields needs to be designed
where user can enter data manually or select calculates the values in these fields based on the program
logic.
Validation:
1) Freight Advice should be executed only for GRNs with movement types 101 & 105.
Logic:
SY T-CODE: ZFRTADV
PASS INPUT FIELD MBLNR INTO MBLNR- WB2_V_MKPF_MSEG2
WHERE BWART EQ 101 OR 105
IF SY-SUBRC EQ 0
THEN EXECUTE
ELSE
EXECUTE ERROR MESSAGE
Message: Please select the suitable material document for Freight Advice.

2) System should trigger an error message in case of input of cancelled material documents.
Logic:
SY T-CODE: ZFRTADV
PASS INPUT FIELD MBLNR INTO LFBNR- WB2_V_MKPF_MSEG2 WHERE BWART EQ 102 AND
106.
IF SY-SUBRC EQ 0
THEN ERROR MESSAGE

Functional Specification

(To be filled by Functional Consultant)

We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties
without express authority is strictly forbidden. * Mandatory
HPIS; 2012
Format No: HPIS-FS-00, DOCUMENT1 Page 7
of 15
ELSE EXECUTE
Message: Selected Material Document has cancelled.

3) System should trigger an error message if Local freight has not included in PO Pricing at the
time of creation of Freight Advice.
Logic:
PASS INPUT FIELDS (MBLNR + MJAHR) INTO AWKEY- BKPF

FETCH
- BELNR- BKPF (Accounting Document Number)
- GJAHR (Document Year)
- BUKRS (Company Code)

PASS BELNR / GJAHR / BUKRS- BKPF INTO BELNR / GJAHR / BUKRS- BSEG
WHERE KTOSL EQ FR1 AND SHKZG EQ H
IF SY-SUBRC EQ 0
THEN EXECUTE
ELSE
ERROR MESSAGE
Message: Freight Condition is missing in PO Pricing.

4) In case of entry unauthorized GRN number, system should trigger error message.
Logic:
PASS MBLNR INTO MBLNR- WB2_V_MKPF_MSEG2
IF SY-SUBRC EQ 4
THEN EXECUTE ERROR MESSAGE
Message: Please enter valid GRN Number.

5) In case of completion of Invoice verification against the transportation vendor then freight
advice should not allow for any changes.
Logic:
PASS PASS INPUT FIELDS (MBLNR + MJAHR) INTO AWKEY- BKPF

Functional Specification

(To be filled by Functional Consultant)

We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties
without express authority is strictly forbidden. * Mandatory
HPIS; 2012
Format No: HPIS-FS-00, DOCUMENT1 Page 8
of 15
IF SY-SUBRC EQ 0
THEN EXECUTE
ELSE UPDATE ZFRTCL- ZMM_FRTADV EQ X
(No changes in freight advice document should be allowed).

6) System should trigger error message in case of selection of reason code & non entry of value in
the respective value field.
Logic:
IF ZLDFLAG EQ X AND ZLDAMT EQ INITIAL
OR
IF ZTFFLAG EQ X AND ZTFAMT EQ INITIAL
OR
IF ZDAMFLAG EQ XAND ZDAMAMT EQ INITIAL
IF SY-SUBRC EQ 0
THEN EXECUTE ERROR MESSAGE
Message: Please enter the value against the selected reason code.

7) System needs to pop up a warning message with Freight advice document number at the time of
Invoice verification against the transportation vendor.
Logic:
Use BADI: INVOICE_UPDATE
SY-T CODE: MIRO
PASS MBLNR IN RUN TIME TO MBLNR- ZMM_FRTADV
IF SY-SUBRC EQ 0
THEN POP UP WARNING MESSAGE
Message: Refer Freight Advice Doc No. (ZFADC) and Freight Advice Doc Date (ZFADDT)


Authorization:
Nil
Process Logic:

Functional Specification

(To be filled by Functional Consultant)

We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties
without express authority is strictly forbidden. * Mandatory
HPIS; 2012
Format No: HPIS-FS-00, DOCUMENT1 Page 9
of 15
Input Fields:
MBLNR (Material Document Number)
MJAHR (Material Document Year)

PASS MBLNR/ MJAHR INTO MBLNR- ZMM_MIGOCUSTH AND MJAHR- ZMM_MIGOCUSTHEAD
FETCH
- ZCHLNO (Challan / Invoice No.)
- ZCHLDT (Challan / Invoice Date
- ZCNDOC (Consignment Document No (LR No.)
- ZCNDAT (Consignment Document Date (LR Date)
- ZTRANNAME (Transporter Name)
- ZVEHNO (Vehicle No)
- ZGPASS (Gate Entry No.)
- ZGCDATE (Gate Entry Date)
- LIFNR (Vendor Name)
- EBELN (Purchase Order No.)

PASS EBELN- ZMM_MIGOCUSTH INTO EBELN- EKKO
FETCH
- INCO1 (INCO terms)

DESIGN THE FOLLOWING CUSTOM FIELDS IN MODULE POOL SCREEN:
User needs to enter data manually in these fields.
Field Name Data Type Length
Decima
l
Description
ZTDAMT CURR 13 2 Total Deductible Amount
ZMAKTX CHAR 40 0 Material Description
ZFRLOC CHAR 20 0 From Location
ZFRTO CHAR 20 0 To Location
ZLDFLAG CHAR 1 0 Late Delivery Flag
ZLDAMT CURR 13 2 Late Delivery Amount
ZTFFLAG CHAR 1 0 Theft Flag
ZTFAMT CURR 13 2 Theft Amount
ZDAMFLAG CHAR 1 0 Damage Flag
ZDAMAMT CURR 13 2 Damage Amount
ZSHRTFLAG CHAR 1 0 Short Receipt Flag

Functional Specification

(To be filled by Functional Consultant)

We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties
without express authority is strictly forbidden. * Mandatory
HPIS; 2012
Format No: HPIS-FS-00, DOCUMENT1 Page
10 of 15
ZSHRTAMT CURR 13 2 Short Receipt Amount
ZSPRFLAG CHAR 1 0 Special Req not fulfilled Flag
ZSPRAMT CURR 13 2 Special Req not fulfilled Amount
ZOTHFLAG CHAR 1 0 Others Flag
ZOTHAMT CURR 13 2 Others Amount
ZFRTCL CHAR 1 0 Closed Indicator
ZFADC CHAR 10 0 Freight Advice Document No.
ZFADDT DATS 8 0 Freight Advice Document Date

Text field needs to be designer for writing down the remarks relevant to the particular transport.
Text Id: FA1
Text Object ZMM_FRTADV:
Text Name: FRTADVNO
Language: EN

GRN Freight Amount (ZGFRTAMT):
PASS INPUT FIELDS (MBLNR + MJAHR) INTO AWKEY- BKPF

FETCH
- BELNR- BKPF (Accounting Document Number)
- GJAHR (Document Year)
- BUKRS (Company Code)

PASS BELNR / GJAHR / BUKRS- BKPF INTO BELNR / GJAHR / BUKRS- BSEG
FETCH DMBTR (Freight Value) WHERE KTOSL EQ FR1 AND SHKZG EQ H

Total Deductible Amount:
Total Deductable Amount (ZTDAMT) = SUM ((ZLDAMT (IF ZLDFLAG EQ X), ZTFAMT (IF ZTFFLAG EQ
X), ZDAMAMT (IF ZDAMFLAG EQ X), ZSHRTAMT (IF ZSHRTFLAG EQ X), ZSPRAMT (IF ZSPRFLAG
EQ X), ZOTHAMT (IF ZOTHFLAG EQ X))
Freight Advise in case of Service Entry Sheet:
PASS INPUT FIELDS (MBLNR + MJAHR) INTO AWKEY- BKPF

Functional Specification

(To be filled by Functional Consultant)

We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties
without express authority is strictly forbidden. * Mandatory
HPIS; 2012
Format No: HPIS-FS-00, DOCUMENT1 Page
11 of 15

FETCH
- BELNR- BKPF (Accounting Document Number)
- GJAHR (Document Year)
- BUKRS (Company Code)

PASS BELNR / GJAHR / BUKRS- BKPF INTO BELNR / GJAHR / BUKRS- BSEG
FETCH DMBTR WHERE KTOSL EQ KBS & HKONT EQ L06050007* (Inward Freight G/L)
Note* : Hard Coded G/L will get changed subjected to G/L fianlization.

Freight Advise Document Number:
On saving the document system should generate internal generated number as well as save the data in
ZMM_FRTADV Table.

Transaction Code:
Transaction Code for Freight Advice document: ZFRTADV

Number Range Logic:
Number Range for Freight advice should be plant specific.
CALL FUNCTION: NUMBER_GET_NEXT
Number Range Interval: NR_RANGE_NR EQ 01
Number Range Object: ZFRTADV

PASS INPUT FIELDS MBLNR/ MJAHR INTO
MBLNR- WB2_V_MKPF_MSEG2 AND MJAHR- WB2_V_MKPF_MSEG2
FETCH WERKS_I (Plant)
Develop a custom table (ZFANR) for the combination of plant (LIFNR), number range interval
(NRRANGENR) & maintain the data as follows.
PASS LIFNR INTO LIFNR- ZFANR
FETCH NRRANGENR (Number Range Interval)


Workflow (Fill if Requirement type is Workflow)

Functional Specification

(To be filled by Functional Consultant)

We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties
without express authority is strictly forbidden. * Mandatory
HPIS; 2012
Format No: HPIS-FS-00, DOCUMENT1 Page
12 of 15
Specify workflow requirement with BOR details.






Interfaces
Type of Interface Real-Time Batch
Direction of Interface Inbound Outbound Both
Data Exchange Mode RFC XI ALE/IDOC
Frequency Daily Weekly Monthly Biweekly
Other If others, please specify
Field Requirment from Source System
Field Description Field Name in Source System Data Type


Field Requirment from Target System
Field Description Field Name in Target System Data Type


Data Mapping
Field Name in Source System Field Name in Target System



Functional Specification

(To be filled by Functional Consultant)

We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties
without express authority is strictly forbidden. * Mandatory
HPIS; 2012
Format No: HPIS-FS-00, DOCUMENT1 Page
13 of 15
Validation

Authorization

Process Logic

Error Handling Requirments




Conversion
Type of Conversion LSMW BDC BAPI
Upload Method Call Transaction Session
Transaction Code

Flat File Structure (Attach Flat File to upload data)

Validation

Process Logic



Functional Specification

(To be filled by Functional Consultant)

We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties
without express authority is strictly forbidden. * Mandatory
HPIS; 2012
Format No: HPIS-FS-00, DOCUMENT1 Page
14 of 15



IMG (Configuration Data) (Fill if Requirement type is IMG)
Configuration type Enterprise Master Process Local
Description

Company Code
Module Responsible
IMG Access Path

Transaction Code
T-Code Description
Configuration
Instructions

Client Dependency

Screen Entry Details (if required)
(Please provide screen shots of changes / details)

Enter Field Values as needed with comments
Fields Values Comments








Functional Specification

(To be filled by Functional Consultant)

We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties
without express authority is strictly forbidden. * Mandatory
HPIS; 2012
Format No: HPIS-FS-00, DOCUMENT1 Page
15 of 15

Configuration Updated in Master * YES NO
<If Yes, Please provide Screen Shots of Master Update.>



Unit Testing Data (Provide Unit test data for testing)





ENCLOSURES (IF ANY):
1.

2.

3.




Approver

Name Date (dd/mm/yy)

Module Lead

Vijay Khanore


HOD




IT Head

Screen Shots of Approvals, either mail or scanned signed hardcopy to be pasted below.

Functional Specification

(To be filled by Functional Consultant)

We reserve all rights in this document and in the information contained therein. Reproduction, use or disclosure to third parties
without express authority is strictly forbidden. * Mandatory
HPIS; 2012
Format No: HPIS-FS-00, DOCUMENT1 Page
16 of 16