You are on page 1of 15

Ooredoo

Material Management
AP450 Purchase Order Form

Technical Design

Purchase Order Form

File Name:AP450 - PO form Page 1 of 15


Status: Draft
Copyright 2013 Ooredoo-Accenture. All Rights Reserved
Ooredoo
Material Management
AP450 Purchase Order Form

General Information

Document Location
Associated Documentation
(FD)

Sign Off

Team Name Date Signature

Revision History

Date Author Status Description / Reason for Change


17/12/2013 Rhesa tanoto Draft Initial creation

1 GENERAL REQUIREMENTS........................................................................................................................... 4
2 RELATED DOCUMENT.................................................................................................................................... 4
3 DEVELOPMENT OBJECTS............................................................................................................................. 4
4 ASSUMPTIONS................................................................................................................................................ 4
5 TECHNICAL FLOW / PROGRAM LOGIC........................................................................................................ 5
5.1 General Program Hierarchy...................................................................................................................... 5
5.2 Program Subroutine / Component Inventory............................................................................................. 5
5.3 Code Reuse.............................................................................................................................................. 5
5.4 Selection-screen Layout........................................................................................................................... 5
5.5 Authorization Objects and Checks to be Used.......................................................................................... 5
5.6 Pseudo Codes.......................................................................................................................................... 5
5.7 Output Detail/Layout................................................................................................................................. 5
5.8 Interactive Capabilities.............................................................................................................................. 5
6 PERFORMANCE CONSIDERATIONS............................................................................................................. 5
7 SET-UP PROCEDURE...................................................................................................................................... 5
8 RECOVERY PROCEDURE / SPECIAL CONSIDERATIONS...........................................................................6
9 EXCEPTIONS................................................................................................................................................... 6
10 UNIT TEST........................................................................................................................................................ 6

File Name:AP450 - PO form Page 2 of 15


Status: Draft
Copyright 2013 Ooredoo-Accenture. All Rights Reserved
Ooredoo
Material Management
AP450 Purchase Order Form

11 DESIGN CHANGES / ISSUE DOCUMENTATION............................................................................................ 6

File Name:AP450 - PO form Page 3 of 15


Status: Draft
Copyright 2013 Ooredoo-Accenture. All Rights Reserved
Ooredoo
Material Management
AP450 Purchase Order Form

1 GENERAL REQUIREMENTS

Program Description Print Purchase Order Form


Status (Required) 100%
Business Priority Normal

2 RELATED DOCUMENT

DevLo Description Transport CHARM


g No Request Number

3 DEVELOPMENT OBJECTS

Object Type Name Description


PROGRAM ZMPUF_PO_FORM_PRINT Purchase Order Form Printing
SMARTFOR ZMPU_PO_FORM Purchase Order Form
M
STRUCTUR ZMPUS_PO_FORM_ITEM PO Form item
E
STRUCTUR ZMPUS_PO_FORM_HEADER PO Form header
E
TABLE TYPE ZMPUS_T_PO_FORM_ITEM PO Form item table

4 ASSUMPTIONS

1. Form printed using transaction ME9F


2. Program only can print 1 document number at a time.
3. Document number entered in ME9F is copied to program via NAST-OBJKY.
4. Document title changes base on document type. If document type is Subcontracting (ZSCN), then the title
is Purchase Order Subcontracting. If it is different, use Purchase Order instead.
5. If the item type is service, do not show amount for the service item instead show the amount of every sub
item.

File Name:AP450 - PO form Page 4 of 15


Status: Draft
Copyright 2013 Ooredoo-Accenture. All Rights Reserved
Ooredoo
Material Management
AP450 Purchase Order Form

5 FORM DESIGN
Form Layout(s):

PO Form
Design-v0.2.doc

Form Size

Orientation : Landscape
Paper Size : A4
Font : Arial
Font Size : 10

Data Mapping

No Description Display Format Logic & Remarks


.
A Form title - See assumptions
B PO Date DD/MM/YYYY
C Incoterm -
D Page <Current page> of
<number of page>
E Version -
F Purchasing officer -
G Contract number - If contract number every
items are different, empty
this field
H Revision date DD/MM/YYYY
I Requisitioner -
J PR number -
K Supplier To <Supplier name>
<Supplier address>
<Supplier city>
<Supplier country>
<Supplier postal code>
L Supplier No -
M Contact Person -
N Ship To <Ship to name> If ship to in every items are
<Ship to address> different, empty this field.
<Ship to city>

File Name:AP450 - PO form Page 5 of 15


Status: Draft
Copyright 2013 Ooredoo-Accenture. All Rights Reserved
Ooredoo
Material Management
AP450 Purchase Order Form

<Ship to country>
O Invoice To <Invoice to address> Use address of the
<Invoice to city> company responsible for
this invoice (table T001)
<Invoice to country>
P Payment Term -
Q Item No N + 1 OR Use N + 1 for item non
N.M + 1 (increment) service and service header
item. Use N.M + 1 for
Example : 1, 2, 3
service sub item
1.1 , 1.2 , 1.3
R Material / service <material number> - <material
description>
Ship to :<storage location
address>
PR number : <PR number>
Contract number : <contract
number>
S Quantity -
T UoM -
U Delivery Date DD/MM/YYYY
V Header text - Free text using text element
W Unit price Use , for thousand separator
and . For decimal separator
X Tax XX %
Y Total price without Use , for thousand separator
tax and . For decimal separator
Z Total price with tax Use , for thousand separator
and . For decimal separator
1 Remarks - Free text using text element
2 Subtotal Use , for thousand separator
and . For decimal separator
3 Discount Use , for thousand separator
and . For decimal separator
4 Net price Use , for thousand separator
and . For decimal separator
5 Grand total Use , for thousand separator
and . For decimal separator
6 Supplier name -
7 Company name - Ooredoo Myanmar, Ltd.
8 Approver name and <Approver name>
position <Approver position>

6 TECHNICAL FLOW / PROGRAM LOGIC

6.1 General Program Hierarchy

File Name:AP450 - PO form Page 6 of 15


Status: Draft
Copyright 2013 Ooredoo-Accenture. All Rights Reserved
Ooredoo
Material Management
AP450 Purchase Order Form

File Name:AP450 - PO form Page 7 of 15


Status: Draft
Copyright 2013 Ooredoo-Accenture. All Rights Reserved
Ooredoo
Material Management
AP450 Purchase Order Form

6.2 Program Subroutine / Component Inventory

Program Subroutine/Component Description


ZMPUF_PO_FORM_PRI F_ENTRY Perform that called when we execute
NT transaction ME9F to print PO form
ZMPUF_PO_FORM_PRI F_GET_PURCH_ORDER Get purchase order data
NT
ZMPUF_PO_FORM_PRI F_GET_SCHEDULE_AGR Get schedule agreement data
NT EE
ZMPUF_PO_FORM_PRI F_GET_SERVICE_PACKA Get service package
NT GE
ZMPUF_PO_FORM_PRI F_GET_TAX Get tax amount
NT
ZMPUF_PO_FORM_PRI F_GET_VENDOR Get vendor data
NT
ZMPUF_PO_FORM_PRI F_GET_VENDOR_RECOR Get vendor master record purchasing
NT D Org. data
ZMPUF_PO_FORM_PRI F_GET_PERSON_DATA Get personal data
NT
ZMPUF_PO_FORM_PRI F_GET_ADDRESS Get address data
NT
ZMPUF_PO_FORM_PRI F_GET_PLANTS Get plants / branches
NT
ZMPUF_PO_FORM_PRI F_GET_MATERIAL_TEXT Get material text description
NT
ZMPUF_PO_FORM_PRI F_POPULATE_DATA Populate data into smartform
NT structures

6.3 Code Reuse


N/A

6.4 Selection-screen Layout


N/A

6.5 Authorization Objects and Checks to be Used


N/A

6.6 Pseudo Codes

1. Get purchasing document data (header and item data)

Retrieve data from table EKKO (purchasing document header)


Comparing: Purchasing document number (EBELN) = NAST_OBJKY.

Retrieve data from table KONV (conditions (transaction data))


Comparing: number of the document condition (KNUMV) = EKKO-KNUMV.

File Name:AP450 - PO form Page 8 of 15


Status: Draft
Copyright 2013 Ooredoo-Accenture. All Rights Reserved
Ooredoo
Material Management
AP450 Purchase Order Form

Retrieve data from table EREV (version in purchasing)


Comparing: object number in purchasing (EDOKN) = EKKO-EBELN.

Retrieve data from table T052U (own explanation for terms of Payment)
Comparing: terms of payment key (ZTERM) = EKKO-EBELN.

Retrieve data from table EKPO (Purchasing Document Item)


Comparing: purchasing document number (EBELN) = EKKO-EBELN
Deletion indicator (LOEKZ) = .

Retrieve data from table T007S (Tax Code Names)


Comparing: procedure (KALSM) = TAXMM
Sales tax code (MWSKZ) = EKPO-MWSKZ.

Retrieve address number from T001


Comparing: company code (BUKRS) = EKPO-BUKRS.

Retrieve data from table ADRC (addresses (Business Address service))


Comparing: address number (ADDRNUMBER) = T001-ADRNR.

2. Get schedule agreement data

Retrieve data from table EKET (Scheduling Agreement Schedule Lines)


Comparing: purchasing document number (EBELN) = EKPO-EBELN
Item number of purchasing document = EKPO-EBELP.

3. Get service package for every service type document in item

Retrieve data from table ESLL (Lines of Service Package)


Comparing: package number (PACKNO) = EKPO-PACKNO
Deletion indicator (DEL) = .

Get sub item for service type item from ESLL table using previous data that retrieved from ESLL table.

Retrieve data from table ESLL (Lines of Service Package)


Comparing: package number (PACKNO) = ESLL-SUB_PACKNO
Deletion indicator (DEL) = .

4. Get tax amount

Retrieve data from table T007A (Tax Keys)


Comparing: Procedure (KALSM) = TAXMM
Sales tax code (MWSKZ) = EKPO-MWSKZ.

Retrieve data from table T007A (Tax Keys)


Comparing: Procedure (KALSM) = TAXMM
Sales tax code (MWSKZ) = ESLL-MWSKZ.

Merge the two data retrieved into 1 internal table.

Retrieve data from table A003 (tax Clarification)


Comparing: departure country (ALAND) = T007A-LSTML
Sales tax code (MWSKZ) = ESLL-MWSKZ.

Retrieve data from table KONP (condition (item))

File Name:AP450 - PO form Page 9 of 15


Status: Draft
Copyright 2013 Ooredoo-Accenture. All Rights Reserved
Ooredoo
Material Management
AP450 Purchase Order Form

Comparing: condition record number (KNUMH) = A003-KNUMH.

5. Get vendor data

Retrieve data from table LFA1 (vendor master)


Comparing: account number of vendor (LIFNR) = EKKO-LIFNR

Retrieve data from table T005T (Country Names)


Comparing: language key (SPRAS) = SY-LANGU
country key (LAND1) = LFA1-LAND1.

6. Get vendor master record for purchasing organization

Retrieve data from table LFM1 (Vendor master record purchasing organization data)
Comparing: account number of vendor (LIFNR) = EKKO-LIFNR

7. Get personal data for document creator

Retrieve data from table USR21 (assign user name address key)
Comparing: user name in master record (BNAME) = EKKO-ERNAM.

Retrieve data from table ADRP (Persons (business Address Service))


Comparing: person number (PERSNUMBER) = USR21-PERSNUMBER.

8. Get address for every item (storage location address)

Retrieve data from table TWLAD (Determination of Address from Plant and Storage Location)
Comparing: plant (WERKS) = EKPO-WERKS
Storage location (LGORT) = EKPO-LGORT.

Retrieve data from table ADRC (Addresses (Business Address Services))


Comparing: address number (ADDRNUMBER) = TWLAD-ADRNR.

If there is no data, get address number from table EKPO and retrieve data from ADRC

Retrieve data from table ADRC (Addresses (Business Address Services))


Comparing: address number (ADDRNUMBER) = EKPO-ADRNR

9. Get plants / branches

Retrieve data from table T001W (Plants / Branches)


Comparing: plant (WERKS) = EKPO-WERKS.

10. Get material text description for material in item

Retrieve data from table MAKT (Material descriptions)


Comparing: material number (MATNR) = EKPO-MATNR

11. Populate all data into header or item level structure of forms.

6.7 Output Detail/Layout

File Name:AP450 - PO form Page 10 of 15


Status: Draft
Copyright 2013 Ooredoo-Accenture. All Rights Reserved
Ooredoo
Material Management
AP450 Purchase Order Form

Header Layout:

Item Structure:
Field Field Description Field Type / Ref Field Field Conversion Comments
Name Field to Data Length reference routines
Dictionary (for
Currency
/Quantity
Field)
No Increment number - - - - If the item
is sub item
use format
X.Y where
X is the
item
number
and Y is
the sub
number.
material Material MAKT-MATNR - - - Contain
description MAKT-MAKTX material
number,
EKPO-BANFN
description,
EKPO-KONNR PR
Concatenate number,
(ADRC-STREET contract
and ADRC- no, and
HOUSE_NUM1 shipment
and ADRC- destination
POST_CODE1 (storage
and ADRC- location
CITY1) address)
Quantity Quantity for every EKPO-MENGE - EKPO- - -
item MEINS
UoM Unit measurement EKPO-MEINS - - - -
of quantity
Delivery Delivery date EKET-EINDT - - - -
date

File Name:AP450 - PO form Page 11 of 15


Status: Draft
Copyright 2013 Ooredoo-Accenture. All Rights Reserved
Ooredoo
Material Management
AP450 Purchase Order Form

Field Field Description Field Type / Ref Field Field Conversion Comments
Name Field to Data Length reference routines
Dictionary (for
Currency
/Quantity
Field)
Unit Price of a material EKPO-NETPR - - EKKO- -
price WAERS
Tax Tax percentage of KONP-KBETR - - - -
the item
Total Total price without EKPO-NETPR * - - EKKO- -
without calculate tax EKPO-MENGE WAERS
tax
Total Total price (EKPO-NETPR * - - EKKO- use KONV-
with tax including tax EKPO-MENGE ) WAERS KBETR *
+ TAX total price
to get tax
amount

Footer Layout:

Breaking:
N/A

Totals:
1. Subtotal : total price without tax for all item listed.
2. Discount : total discount for each item listed.
3. Net price : price after calculated the discount.
4. Grand total : net price + tax for every item.

Sorting:
N/A

6.8 Interactive Capabilities


N/A

7 PERFORMANCE CONSIDERATIONS
N/A

File Name:AP450 - PO form Page 12 of 15


Status: Draft
Copyright 2013 Ooredoo-Accenture. All Rights Reserved
Ooredoo
Material Management
AP450 Purchase Order Form

8 SET-UP PROCEDURE

Procedure to set up ME9F.

1. Open TCODE NACE


2. Choose application code EF Purchase Order and click output types

3. Choose output type ZPO and double click on Processing routines

File Name:AP450 - PO form Page 13 of 15


Status: Draft
Copyright 2013 Ooredoo-Accenture. All Rights Reserved
Ooredoo
Material Management
AP450 Purchase Order Form

4. Configure as shown in below picture

9 RECOVERY PROCEDURE / SPECIAL CONSIDERATIONS


N/A

10 EXCEPTIONS
N/A

11 UNIT TEST

Test Condition Expected Result Test Result


Normal Processing
1.
2.
3.
4.

File Name:AP450 - PO form Page 14 of 15


Status: Draft
Copyright 2013 Ooredoo-Accenture. All Rights Reserved
Ooredoo
Material Management
AP450 Purchase Order Form

Error Processing
1.
2.
3.

12 DESIGN CHANGES / ISSUE DOCUMENTATION

Raised Issue Date Resolution/Answer Date Resolved


by Needed Completed by

File Name:AP450 - PO form Page 15 of 15


Status: Draft
Copyright 2013 Ooredoo-Accenture. All Rights Reserved

You might also like