You are on page 1of 13

Functional Specification Document

Module: MM

Development Description: FMS – Get Open PO Details(Inbound and


Outbound)

Get Open PO Details.

Document No.: FS_002_Open PO Details

Version No.: V1.2


Functional Specification Document – RETAIL
Document No: FS_002_Open PO Details Get Open PO Details

Effective Date: 27.07.2018

Table of Contents

1.0 DOCUMENT HISTORY............................................................................................................................3


1.1 DOCUMENT VERSION..............................................................................................................................3
1.2 DOCUMENT APPROVAL / REVIEW DETAILS..................................................................................................3
1.1 REFERENCE DOCUMENT DETAILS...............................................................................................................3
1.2 ABBREVIATIONS USED (IF ANY).................................................................................................................3
1.3 DEFINITIONS USED (IF ANY).....................................................................................................................4
2.0 FUNCTIONAL SPECIFICATION................................................................................................................4
2.1 DEVELOPMENT SUMMARY.......................................................................................................................4
2.2 APPLICABILITY........................................................................................................................................5
2.3 OBJECTIVE OF THE DEVELOPMENT.............................................................................................................5
2.4 DEPENDENCIES AND CONSTRAINTS............................................................................................................6
2.5 ASSUMPTIONS AND NOTES.......................................................................................................................6
2.6 RELEVANT TRANSACTION CODES...............................................................................................................6
2.7 REFERENCE SAP PROGRAMS....................................................................................................................6
2.8 SELECTION PARAMETERS TO EXECUTE THE TRANSACTION / PROGRAM.............................................................6
2.9 OUTPUT LAYOUT (FOR REPORT, INTERFACE, ENHANCEMENT AND FORM ONLY)................................................6
2.10 ERROR HANDLING...................................................................................................................................7
2.11 USER EXIT/ENHANCEMENT......................................................................................................................7
2.12 BATCH SCHEDULE REQUIREMENT..............................................................................................................7
3.0 PROGRAM LOGIC / PSEUDO CODE / FIELD MAPPINGS.......................................................................8
3.1 AUTHORIZATION CHECK REQUIREMENT......................................................................................................9
3.2 OTHER SPECIAL REQUIREMENT (SUCH AS GRC REQUIREMENTS).....................................................................9
3.3 FUNCTIONAL VALIDATION REQUIREMENT (IF ANY).......................................................................................9
3.4 FLOW CHART (IF ANY).............................................................................................................................9
4.0 ATTACHMENTS & ANNEXURE...............................................................................................................9

Confidential Page 2 of 13
Functional Specification Document – RETAIL
Document No: FS_002_Open PO Details Get Open PO Details

1.0 Document History


Document Category Functional Specification Document
Document title FMS- Get Open PO Details.
Author Subhojit Banerjee
Lead Consultant

1.1 Document Version

Date Version Author Status - Description


10.07.2018 V1.0 Subhojit Banerjee Draft

1.2 Document Approval / Review Details

Function Name Department Sign & Date


Subhojit Banerjee MM
Prepared By

Reviewed By

1.1 Reference Document Details


Department /
Title of the Document Version No Organization Reference / Remarks

Confidential Page 3 of 13
Functional Specification Document – RETAIL
Document No: FS_002_Open PO Details Get Open PO Details

1.2 Abbreviations Used (If any)


Abbreviation Description

1.3 Definitions Used (If any)


Definitions Description

2.0 Functional Specification

2.1 Development Summary


Function Description
Development ID
Gap ID
Author Subhojit Banerjee
Name of Development FMS- Open PO Details
Short Description FMS- Open PO Details
Development Type (RICEFW) Interface
Module/Business Process Retail
Required Transaction Code ME2L
Complexity (L/M/H) M
Priority (L/M/H) M
Frequency Once a Day
Functional Consultant Subhojit Banerjee
Process Owner

Confidential Page 4 of 13
Functional Specification Document – RETAIL
Document No: FS_002_Open PO Details Get Open PO Details

2.2 Applicability
The process described in this document are applicable to the below mentioned entities / tracks.

Business Vertical Applicability


N
Water Vertical
N
Telecom Vertical
N
Anup Engineering
N
Textile Vertical
Y
Brands & Retail
N
Garment Export Division

2.3 Objective of the Development


Business Need:
The objective of this development is that once the API call for selective triggered from Vendor Portal into
SAP FMS the system as an Inbound IDOC should pass all the PO list for that selective vendor into Vendor
Portal as an Outbound IDOC.

The data should be based upon real time.

Business Requirement:
Requirement is to trigger the list of total PO Details based upon the real time data once the API
triggered to SAP from Vendor Portal.
For selective Vendor – List of PO details are transferred via Idoc from T-Code- ME2L.

Objective:
IDOC will trigger all the PO list for selective vendor.

Confidential Page 5 of 13
Functional Specification Document – RETAIL
Document No: FS_002_Open PO Details Get Open PO Details

Input parameters will be the Vendor.

2.4 Dependencies and Constraints


Dependencies:
 Partner Profile (WE20) & Distribution Model (BD64)
 Creation of extension basic type (WE30) & creation of message type (WE80)
2.5 Assumptions and Notes
 N/A
2.6 Relevant Transaction Codes
Transaction Code Description
PO List based on Vendor
ME2L

2.7 Reference SAP Programs


Program Name Description
YMM_OPENPO through WE80.
IDOC Message Type
YMM_OPENPO through WE30.
IDOC Basic Type

2.8 Selection Parameters to execute the Transaction / Program


Field Name Table Name Description (M)andatory (P)arameter
(O)ptional (S)elect Option

Confidential Page 6 of 13
Functional Specification Document – RETAIL
Document No: FS_002_Open PO Details Get Open PO Details

2.9 Output Layout (For Report, Interface, Enhancement and Form only)
(Detail the output layout of the development)

2.10 Error Handling


 Error as part of the IDOC tracking.

* WE02: IDOC monitoring.

* BD87: Status Monitor for ALE Messages.


* WE05: IDoc Lists.
* WE09: Search for IDoc in Database.

* BD20: Inbound Processing of IDOCs.

 Outbound IDOC Error Tracking:


1. PO IDOC successfully processed
2. PO IDOC not processed
Outbound IDOC can be tracked through Status record.
Status can be identified through the Status Record Number.

Please find the list of status numbers.

Confidential Page 7 of 13
Functional Specification Document – RETAIL
Document No: FS_002_Open PO Details Get Open PO Details

01 Success Outbound IDoc 30 29    


created

02 Error Error passing data     Correct the error and


to port Execute RSEOUT00
program again

03 Success Outbound IDoc None,    


successfully sent 32
to port

04 Error within control in-      


formation on EDI
subsystem

05 Error during translation      

12 Success Dispatch OK   Changed from  


status 03 by
BD75 transaction
(see below)

25 Success Processing out-      


bound IDoc des-
pite syntax errors

26 Error during syntax   Missing mandat- You may edit the


check of outbound ory segment for IDoc or force it to be
IDoc example processed

29 Error ALE service (for ex- 29, 31    


ample

30 Success Outbound IDoc 03 02 Partner profile cus- Execute


ready for dispatch tomized to not run RSEOUT00 pro-
(ALE service) gram

31 Error no further pro-

Confidential Page 8 of 13
Functional Specification Document – RETAIL
Document No: FS_002_Open PO Details Get Open PO Details

cessing

32 Success Outbound IDoc   There was a  


was edited manual update
of the IDoc in
SAP tables, the
original was
saved to a new
IDoc with status
33

33 Success Original of an IDoc None None Backup of another  


which was edited. IDoc manually up-
It is not possible to dated, see status 32
post this IDoc

35 Success IDoc reloaded


from archive. Can't
be processed

37 Error Erroneous control None,    


record (for ex- 37
ample, "reference"
field should be
blank for out-
bound IDocs)

42 Success Outbound IDoc 01 37    


manually created
by WE19 test tool

50 Success Inbound IDoc cre- 64 65    


ated

51 Error inbound IDoc data 53, 64 51, 66, 68, 69 Error triggered by Ask functional
contains errors SAP application, in- people, modify
correct values in the erroneous values
IDoc data in the IDoc
(WE02 for ex-
ample) and run it
again using BD87

53 Success inbound IDoc pos- None,    

Confidential Page 9 of 13
Functional Specification Document – RETAIL
Document No: FS_002_Open PO Details Get Open PO Details

ted 53

56 Error IDoc with errors 50, 51,    


added (You should 56, 62,
never see this er- 68
ror code)

60 Error syntax check of in- 56, 61,    


bound IDoc 62

61 Error Processing in- 64    


bound IDoc des-
pite syntax error

62 Success inbound IDoc 53 51  


passed to applica-
tion

63 Error passing IDoc to ap-      


plication

64 Success Inbound IDoc 62 51, 60, 63, 68, 69   execute BD20


ready to be passed transaction (RBD-
to application APP01 program)

65 Error ALE service - incor- 64, 65    


rect partner pro-
files

66 Waiting Waiting for prede-   51


cessor IDoc (Serial-
ization)

68 Success no further pro- 68 None The IDoc was cre-  


cessing ated using inbound
test tool (WE19) and
written to file to do
file inbound test. An-
other IDoc is created
if immediate pro-
cessing is chosen

69 Success IDoc was edited 64 51, 68, 69 There was a manual  


update of the IDoc in

Confidential Page 10 of 13
Functional Specification Document – RETAIL
Document No: FS_002_Open PO Details Get Open PO Details

SAP tables, the ori-


ginal was saved to a
new IDoc with status
70

70 Success Original of an IDoc None None Backup of another  


which was edited. IDoc manually up-
It is not possible to dated, see status 69
post this IDoc

71 Success Inbound IDoc re-


loaded from
archive. Can't be
processed

74 Success Inbound IDoc 50, 56    


manually created
by WE19 test tool

2.11 User Exit/Enhancement


User Exit Name Component name Description

2.12 Batch Schedule Requirement

3.0 Program Logic / Pseudo Code / Field Mappings


Vendor Portal will provide the API to SAP FMS as an Inbound IDOC for a particular vendor and start date and end
date for PO creation based on that FMS will trigger the Outbound IDOC which will contain the list of POs for a
particular vendor and update into vendor portal.
As per business requirement, IDOC can be processed on two ways – either through Manual push or
Automatic Push via IDOC to vendor Portal method for selective Vendor.

Confidential Page 11 of 13
Functional Specification Document – RETAIL
Document No: FS_002_Open PO Details Get Open PO Details

Vendor Portal will provide the Vendor No. which will consider as an API, it will update as an Inbound IDOC.

Inbound IDOC consists of Start Date, End Date and Vendor Code.

Please find the structure for Inbound IDOC.

Inbound IDOC Structure for GET OPEN PO DETAILS


TEXT TABLE FIELD
START DATE EKKO BEDAT
END DATE  EKKO BEDAT
VENDOR CODE  EKKO LIFNR

It will update in EKKO-LIFNR and EKKO-BEDAT and fetch the PO details from EKKO table.

Before the Outbound IDOC is generated, following functions should be completed:

One IDOC number will contains the list of POs for the selective vendor.

System will give the real time data based upon input data from API and create one IDOC number which will
be posted to Vendor Portal.

Please find the outbound IDOC structure.

Outbound IDOC Structure for GET OPEN PO


TABL
TEXT FIELD
E
PO_REPORT_DATE    
 EKK
BRAND O EKGRP
 EKK  AE-
DATECREATED O DAT
 EKK
PONUMBER O EBELN
 EKP MENG
POQUANTITY O E
VENDORCODE  LFA1 LIFNR
VENDORNAME  LFA1 NAME

Confidential Page 12 of 13
Functional Specification Document – RETAIL
Document No: FS_002_Open PO Details Get Open PO Details

Logic of each field is given below.

PO_REPORT_DATE = Current Time Date which will be based upon API date.

BRAND = Pass LFA1-LIFNR in EKKO and get EKKO-EBELN and fetch EKKO-EKGRP.

DATE CREATED = Pass LFA1-LIFNR in EKKO and get EKKO-AEDAT which will be coming on range.

PO NUMBER = Pass LFA1-LIFNR in EKKO and get EKKO-EBELN.

PO QUANTITY = For getting PO quantity pass LFA1-LIFNR in EKKO get EKKO-EBELN. Then pass EKKO-EBELN into
EKPO and get EKPO-EBELP. Pass both EKPO-EBELN and EKPO-EBELP get EKPO-MENGE.

VENDOR CODE= LFA1-LIFNR

VENDOR NAME = LFA1-NAME1

3.1 Authorization Check Requirement


(Detail the organization element and authorization object that involve in authorization check)
3.2 Other Special Requirement (such as GRC requirements)
(Detail any other special requirement of the specification)
N/A
3.3 Functional Validation Requirement (If any)
3.4 Flow Chart (If any)

4.0 Attachments & Annexure


NA

Confidential Page 13 of 13

You might also like