Professional Documents
Culture Documents
MM & SD
Technical Design IIS005 Interface WMS to SAP
Technical Design
Page 1 of 10
Copyright 2014 Ooredoo-Accenture. All Rights Reserved
Ooredoo
MM & SD
Technical Design IIS005 Interface WMS to SAP
General Information
Document Location
Associated Documentation
(FD)
Sign Off
Team
Name
Date
Signature
Revision History
Date
20 Feb 2014
19 May 2014
Author
Rhesa Tanoto
Gregorius
Raymond Djatnika
Status
Draft
Version 1.1
GENERAL REQUIREMENTS........................................................................................................................... 4
RELATED DOCUMENT.................................................................................................................................... 4
DEVELOPMENT OBJECTS............................................................................................................................. 4
ASSUMPTIONS................................................................................................................................................ 4
PERFORMANCE CONSIDERATIONS............................................................................................................. 9
SET-UP PROCEDURE...................................................................................................................................... 9
EXCEPTIONS................................................................................................................................................... 9
10 UNIT TEST...................................................................................................................................................... 10
File Name: 271301566
Status: Draft
Page 2 of 10
Copyright 2014 Ooredoo-Accenture. All Rights Reserved
Ooredoo
MM & SD
Technical Design IIS005 Interface WMS to SAP
11 DESIGN CHANGES / ISSUE DOCUMENTATION..........................................................................................10
Page 3 of 10
Copyright 2014 Ooredoo-Accenture. All Rights Reserved
Ooredoo
MM & SD
Technical Design IIS005 Interface WMS to SAP
1
GENERAL REQUIREMENTS
Program Description
Status (Required)
Business Priority
RELATED DOCUMENT
DevLo
g No
Description
Transport
Request
CHARM
Number
DEVELOPMENT OBJECTS
[List of all objects being used or modified e.g. program, function module, transaction codes, etc. Refer to content of Transport Request
submitted for the change]
Object
Type
Function
module
Function
module
Name
Description
ZMPU_WMS_GOODSMVT_UPLOAD
Z_MPU_WMS_UPLOADER
ASSUMPTIONS
[Assumptions that are being used so that program can be run/used properly]
Page 4 of 10
Copyright 2014 Ooredoo-Accenture. All Rights Reserved
Ooredoo
MM & SD
Technical Design IIS005 Interface WMS to SAP
5
5.1
5.2
5.3
Code Reuse
N/A
5.4
Selection-screen Layout
N/A
5.5
Subroutine/Component
F_EXTRACT_DATA
F_POST
F_SEND_IDOC
Description
Extract data from CSV file
Preparing data for create Idoc
Create the Idoc
CSV
Delimiter
, (Coma)
-
Page 5 of 10
Copyright 2014 Ooredoo-Accenture. All Rights Reserved
Ooredoo
MM & SD
Technical Design IIS005 Interface WMS to SAP
Thousand separator
Date and time format
Header column on 1st line
5.6
YYYYMMDD
No
Positio
n
Field
Name
Field Description
Data
Type
Lengt
h
Sample
Remarks
PO/SO
Number
Purchase Order or
Sales order number
CHAR
10
1000000028
Date
Transaction date
CHAR
10
11.02.2014
Line item
CHAR
10
10
Transaction
type
WMS transaction
code
CHAR
10
GM_SCT
Source
material
Source material
number
CHAR
10
1100000002
Destination
material
Destination material
number
CHAR
10
1100000002
Quantity
Quantity to be posted
20
UoM
Unit of material
CHAR
PC
Source
storage
location
Storage location
number
CHAR
2001 retail
shop 1
10
Destination
storage
location
Storage location
number
CHAR
WHFX - faulty
Data Mapping
[Provide the field name, a short description, and any functional notes, translations and calculations. If a transaction was referenced to
obtain the table and field names, please list the transaction code.]
SAP Table
Field Name
SAP
Description
External
Field Name
External Field
Description
VBAK-VBELN
SO Number
PO/SO
Number
Sales Order
Number
EKKO-EBELN
PO Number
MSEG-BLDAT
Date
Date
Transaction date
VBAP-POSNR
EKPO-EBELP
Line item
Line Item
Line Item PO /
SO
MSEG-MATNR
Material
number
Source
material
Source material
number
MSEG-UMMAT
Receiving /
Issuing
Material
Destination
material
Destination
material number
MSEG-MENGE
Quantity
Quantity
Quantity to be
posted
Purchase Order
Number
Page 6 of 10
Copyright 2014 Ooredoo-Accenture. All Rights Reserved
Ooredoo
MM & SD
Technical Design IIS005 Interface WMS to SAP
SAP Table
Field Name
SAP
Description
External
Field Name
External Field
Description
MSEG-MEINS
Unit of
Measure
UoM
Unit of material
MSEG-LGORT
Storage
Location
Source
storage
location
Storage location
number
MSEG-UMLGO
Receiving
Storage
Location
Destination
storage
location
Storage location
number
5.7
5.8
Pseudo Codes
ELBP2017_GM_ITEM_CREATE
WA_ITEM-PO_NUMBER = WA_RAW_DATA-DOCNO.
WA_ITEM-PO_ITEM = WA_RAW_DATA-POSNR.
WA_ITEM-MATERIAL = WA_RAW_DATA-MATNR
WA_ITEM-MOVE_MAT = WA_RAW_DATA-UMMAT
WA_ITEM-STGE_LOC = WA_RAW_DATA-LGORT
WA_ITEM-MOVE_STLOC = WA_RAW_DATA-UMLGO
WA_ITEM-ENTRY_QNT = WA_RAW_DATA-MENGE
WA_ITEM-ENTRY_UOM = WA_RAW_DATA-MEINS
If transaction type EQ GI_SC
WA_ITEM-MOVE_TYPE = 551
Append WA_ITEM.
If transaction type EQ QI_OK
WA_ITEM-MOVE_TYPE = 101
WA_ITEM-STGE_LOC = WA_RAW_DATA-UMLGO
WA_ITEM-MOVE_STLOC = blank
Append WA_ITEM.
Page 7 of 10
Copyright 2014 Ooredoo-Accenture. All Rights Reserved
Ooredoo
MM & SD
Technical Design IIS005 Interface WMS to SAP
If transaction type EQ GI_ST
If WA_RAW_DATA-UMLGO EQ WHFX OR WHQX
WA_ITEM-MOVE_TYPE = 351
Append WA_ITEM
WA_ITEM-MOVE_TYPE = 101
WA_ITEM-STGE_LOC = WA_RAW_DATA-UMLGO
WA_ITEM-MOVE_STLOC = blank
Append WA_ITEM
Else
WA_ITEM-MOVE_TYPE = 351
Append WA_ITEM
If transaction type EQ GM_SCT
SELECT table EKET WHERE EBELN EQ WA_RAW_DATA-EBELN
AND EBELP EQ WA_RAW_DATA-EBELP
Loop at table RESB WHERE RSNUM EQ EKET_RSNUM
WA_ITEM-material = RESB-MATNR
WA_ITEM-ENTRY_QNT = RESB-MENGE
WA_ITEM-ENTRY_UOM = RESB-MEINS
WA_ITEM-VENDOR = RESB-LIFNR
IF WA_RAW_DATA-LGORT IS BLANK
WA_ITEM-STGE_LOC = WA_RAW_DATA-UMLGO
ELSE
WA_ITEM-STGE_LOC = WA_RAW_DATA-LGORT
ENDIF
Append WA_ITEM
ENDLOOP
WA_ITEM-PO_NUMBER = WA_RAW_DATA-DOCNO.
WA_ITEM-PO_ITEM = WA_RAW_DATA-POSNR.
WA_ITEM-MATERIAL = WA_RAW_DATA-MATNR
WA_ITEM-MOVE_MAT = WA_RAW_DATA-UMMAT
WA_ITEM-MOVE_TYPE = 101
WA_ITEM-STGE_LOC = WA_RAW_DATA-LGORT
WA_ITEM-MOVE_STLOC = WA_RAW_DATA-UMLGO
WA_ITEM-ENTRY_QNT = WA_RAW_DATA-MENGE
WA_ITEM-ENTRY_UOM = WA_RAW_DATA-MEINS
APPEND WA_ITEM
If transaction type EQ GR_ST
WA_ITEM-MOVE_TYPE = 101
WA_ITEM-STGE_LOC = WA_RAW_DATA-LGORT
WA_ITEM-MOVE_STLOC = blank
APPEND WA_ITEM
3. Send idoc to be processed
Send the idoc using function module IDOC_INBOUND_WRITE_TO_DB
And start the data processing by call function module IDOC_START_INBOUND
IDOC will call function module ZMPU_WMS_GOODSMVT_UPLOAD
This function module will processed data based on the data type (PO OR SO)
If the data are PO, the function module BAPI_GOODSMVT_CREATE will be called,
File Name: 271301566
Status: Draft
Page 8 of 10
Copyright 2014 Ooredoo-Accenture. All Rights Reserved
Ooredoo
MM & SD
Technical Design IIS005 Interface WMS to SAP
Else, for SO data, function module BAPI_OUTB_DELIVERY_CREATE_SLS will be crated.
5.9
Output Detail/Layout
(the data result are material documents for PO data and delivery order for SO data)
PERFORMANCE CONSIDERATIONS
N/A
SET-UP PROCEDURE
N/A
EXCEPTIONS
N/A
10
UNIT TEST
[The following table is used for unit test procedure by ABAPer refer to test script provided in Functional Design document. Provide
screen-capture to show result when necessary]
Test Condition
Normal Processing
1.
2.
3.
4.
Error Processing
1.
2.
3.
11
Expected Result
Test Result
Raised
by
Issue
Date
Needed
Resolution/Answer
Date
Completed
Resolved
by
Page 9 of 10
Copyright 2014 Ooredoo-Accenture. All Rights Reserved
Ooredoo
MM & SD
Technical Design IIS005 Interface WMS to SAP
Page 10 of 10
Copyright 2014 Ooredoo-Accenture. All Rights Reserved