You are on page 1of 10

Ooredoo

MM & SD
Technical Design IIS005 Interface WMS to SAP

Technical Design

Interface WMS to SAP

File Name: 271301566


Status: Draft

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

Description / Reason for Change


Initial Draft
Final

GENERAL REQUIREMENTS........................................................................................................................... 4

RELATED DOCUMENT.................................................................................................................................... 4

DEVELOPMENT OBJECTS............................................................................................................................. 4

ASSUMPTIONS................................................................................................................................................ 4

TECHNICAL FLOW / PROGRAM LOGIC........................................................................................................ 5


5.1
5.2
5.3
5.4
5.5
5.6
5.7
5.8

General Program Hierarchy...................................................................................................................... 5


Program Subroutine / Component Inventory............................................................................................. 5
Code Reuse.............................................................................................................................................. 5
Selection-screen Layout........................................................................................................................... 5
Authorization Objects and Checks to be Used.......................................................................................... 5
Pseudo Codes.......................................................................................................................................... 7
Output Detail/Layout................................................................................................................................. 9
Interactive Capabilities.............................................................................................................................. 9

PERFORMANCE CONSIDERATIONS............................................................................................................. 9

SET-UP PROCEDURE...................................................................................................................................... 9

RECOVERY PROCEDURE / SPECIAL CONSIDERATIONS...........................................................................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

File Name: 271301566


Status: Draft

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

Interface WMS to SAP


100%

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

IDOC goods movement via BAPI

Z_MPU_WMS_UPLOADER

FM to Upload data from WMS to


SAP

ASSUMPTIONS
[Assumptions that are being used so that program can be run/used properly]

File Name: 271301566


Status: Draft

Page 4 of 10
Copyright 2014 Ooredoo-Accenture. All Rights Reserved

Ooredoo
MM & SD
Technical Design IIS005 Interface WMS to SAP
5
5.1

TECHNICAL FLOW / PROGRAM LOGIC


General Program Hierarchy
[Required - Flowchart of program logic and processing to be included here, not the business or functional flowchart]

5.2

Program Subroutine / Component Inventory


Program
ZMPUI_WMS_TO_SAP
ZMPUI_WMS_TO_SAP
ZMPUI_WMS_TO_SAP

5.3

Code Reuse
N/A

5.4

Selection-screen Layout
N/A

5.5

Input/Output File Layout


File type
Concept
Field separator
Decimal separator

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)
-

File Name: 271301566


Status: Draft

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

Line item number

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

Only take the first 4


character to get the
storage location
number

10

Destination
storage
location

Storage location
number

CHAR

WHFX - faulty

Only take the first 4


character to get the
storage location
number

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

Functional Notes/ Calculations/


Translations

Purchase Order
Number

File Name: 271301566


Status: Draft

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

Authorization Objects and Checks to be Used


N/A

5.8

Pseudo Codes

Functional Notes/ Calculations/


Translations

1. Get data from application server


Read file to extract the data and mapping the data into table IT_RAW_DATA.
2. Prepare data to be sent via Idoc by append the data into corresponding structure :
a. ELBP2017_GM_HEAD_01
b. ELBP2017_GM_CODE
If movement type EQ 101
Gm_code EQ 04
Else if movement type EQ 551
Gm_code EQ 04
Else if movement type EQ 541 OR 351
Gm_code EQ 04
Else if processed data are SO, use GM_CODE EQ 03
c.

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.

File Name: 271301566


Status: Draft

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)

5.10 Interactive Capabilities


N/A
6

PERFORMANCE CONSIDERATIONS
N/A

SET-UP PROCEDURE
N/A

RECOVERY PROCEDURE / SPECIAL CONSIDERATIONS


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

DESIGN CHANGES / ISSUE DOCUMENTATION


[Describe any change to the original design in this section Use this section to record issues or items that need to be resolved as part of
the Functional Design. The following Issues were defined during Functional Design/Preparation.]

Raised
by

Issue

Date
Needed

Resolution/Answer

File Name: 271301566


Status: Draft

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

File Name: 271301566


Status: Draft

Page 10 of 10
Copyright 2014 Ooredoo-Accenture. All Rights Reserved

You might also like