Professional Documents
Culture Documents
Draft
Author:
Peter Pope
CR20110431
Document Control
Business Area GAP ID FS Definition Form ID SAP R/3 Version Global / Market ECC 6.0
DTS MM/PP
Document History
Version 1.0 1.1 1.2 1.3 Reason for change New Date 7/11/11
CR20110431
Table of Contents
1. 2. 3. 4. 5. 6. 7. GENERAL INFORMATION .......................................................................................................... 4 BUSINESS NEEDS & REQUIREMENTS ........................................................................................ 5 ISSUES ................................................................................................................................... 5 SELECTION SCREEN DETAILS .................................................................................................. 5 CURRENT FUNCTIONALITY ....................................................................................................... 6 DESIRED FUNCTIONALITY ........................................................................................................ 7 TECHNICAL DETAILS ................................................................................................................ 7 7.1.EXTRACT DATA RELATIONSHIP DIAGRAM ....................... ERROR! BOOKMARK NOT DEFINED. 8. STARTING CONDITIONS ......................................................................................................... 14 9. SECURITY REQUIREMENTS/ AUTHORIZATION DETAILS ............................................................. 14 10. DATA MAPPING TABLES......................................................................................................... 14 10.1. DESIRED REPORT DESIGN/LAYOUT: .............................................................................. 15 10.2. REPORT EXAMPLE: ....................................................... ERROR! BOOKMARK NOT DEFINED. 11. CUSTOM TABLES/STRUCTURE IN SAP .................................................................................... 18 12. RECOVERY AND RESTART ..................................................................................................... 18 13. LANGUAGE OF TEXTS ............................................................................................................ 19 14. CURRENCY AND UNITS OF MEASURE ...................................................................................... 19 15. ASSUMPTIONS ...................................................................................................................... 19 16. ERROR HANDLING ................................................................................................................. 19 17. TESTING SCENARIOS............................................................................................................. 19
CR20110431
General Information
Area (SAP System components): Short description: Requested by: Author: Program Transaction code: Task ID/Demand Number: Project Name: Priority: Complexity: Volume of data: Mode: Frequency: Technical information: Report created using: High/mandatory Medium/recommended Low/optional High Medium various DATE AVAILABLE FROM: Online Background Daily Weekly Monthly Others (Specify) : as needed Report Painter ABAP program R/3 Report Writer Info system BW MM ZCM26 Report Mike McClure Peter Pope ZCM26 Date: Tel no: Tel no: 7/11/11 630-203-4095 708-799-2013
Low
Biweekly
Characteristics required:
Drilldown Buttons Sort ALV Grid ALV List Entry file Others: Call Transaction Legal requirements not fulfilled Lack of essential business information Lack of functions compared to legacy system Others (Specify): TBD Yes No
(IN MAN-DAYS):
Is there an alternative in the standard system? Description of alternative: Reasons why alternative is not acceptable:
Complexity
CR20110431
Issues
none Issue # Issue owner Date Raised Issue Description Issue Resolution Resolved By & Date
MATERIAL MARA-MATNR
PLANT T001W-WERKS MRP CONTROLLER MARC-DISPO MATERIAL GROUPS MARA-MATKL
VENDOR LFA1-LIFNR
DATE RANGE
CR20110431
Name
PRODUCTION ORDER STATUS: PRODUCTION ORDER PROD ORD LINK TO SALES ORD O PLANNED ORDER STATUS: PLANNED ORDER PLANNED ORD LINKED TO SALES ORD O DISPLAY QTY IN: DEFAULT UOM BASE BOX O SHORT TONS O RADIO BUTTON P
Comments (Range, Single/Multiple selection, Patterns, Mandatory etc.) Choose between all production orders (Default), or only those linked to sales order
Default Value
RADIO BUTTON
Choose between all planned orders (Default), or only linked to sales order
DATE RANGE DETAIL, WEEKLY ROLL UP, MONTHLY ROLL UP SELECTION CRITERIA OPTION FOR BASE BOX OR SHORT TONS
Current Functionality
CR20110431
Buyers currently see the demand generated in SAP MRP with the Sales Forecast, which causes considerable concern that additional slow & obsolete inventory could be generated. MD04 allows view of only a single material at a time, which causes delays when the need is for multiple materials at a time.
Desired Functionality
Buyers need to be able to see the demand generated in SAP MRP separated from the Sales Forecast. Without this option there is considerable concern additional slow & obsolete inventory could be generated. In addition, the current MD04 view only shows one material at a time, which is an extremely slow process when reviewing MRP. The Buyer would have to drill down to gather all data for each individual item. A report ZCM25 was created for DTS already for the same reasons. PTP needs the same report copied (ZCM26), but having the report include MRP Controllers and create Purch Reqs vs. Planned Orders.
Technical Details
Need to provide Material, Plant and Date as mandatory fields. Fields required are similar to those displayed in standard SAP transaction MD04, which displays data for a single material at a time and without a Date limitation. The desired functionality of ZCM26 is to display multiple materials at a time for a selected date range. Call function module MD_STOCK_REQUIREMENTS_LIST_API to gather requirement data Call function module MD_PEGGING_NODIALOG to gather the source of the requirements.
BAPI_REQUIREMENTS_GETDETAIL BAPI_MATERIAL_STOCK_REQ_LIST
OVERVIEW
1. First, get the requirements using:
MD_STOCK_REQUIREMENTS_LIST_API
*" *" *" *" *" *" *" *" IMPORTING VALUE(PLSCN) VALUE(MATNR) VALUE(WERKS) VALUE(BERID) VALUE(ERGBZ) VALUE(AFIBZ) VALUE(INPER) LIKE LIKE LIKE LIKE LIKE LIKE LIKE PLSC-PLSCN MARC-MATNR MARC-WERKS MDLV-BERID T462-ERGBZ T463-AFIBZ MDST-INPER OPTIONAL
CR20110431
*" *" *" *" *" *" *" *" *" *" *" *" *" *" *" *" *" *"
VALUE(DISPLAY_LIST_MDPSX) TYPE CHAR1 OPTIONAL VALUE(DISPLAY_LIST_MDEZX) TYPE CHAR1 OPTIONAL VALUE(DISPLAY_LIST_MDSUX) TYPE CHAR1 OPTIONAL VALUE(NOBUF) TYPE CHAR1 OPTIONAL VALUE(PLAUF) TYPE CM61X-PLAUF OPTIONAL EXPORTING VALUE(E_MT61D) TYPE MT61D VALUE(E_MDKP) TYPE MDKP VALUE(E_CM61M) TYPE CM61M VALUE(E_MDSTA) TYPE MDSTA VALUE(E_ERGBZ) TYPE SFILT-ERGBZ TABLES MDPSX STRUCTURE MDPS OPTIONAL MDEZX STRUCTURE MDEZ OPTIONAL MDSUX STRUCTURE MDSU OPTIONAL EXCEPTIONS MATERIAL_PLANT_NOT_FOUND PLANT_NOT_FOUND
Returns table data: MDPS Item in MRP Document MDEZ Individual Lines of MRP Elements MDSU Total Lines for MRP Elements
MRP Element Code List (MDEZ-DELKZ)
CR20110431
p_aufnr. ********************************************************************* * PROD_ORDER ********************************************************************* form prod_order using matnr werks aufnr.
* edelkz = 'FE' -- Production Order * edelkz = 'PA' -- Planned Order call function 'MD_PEGGING_NODIALOG' exporting edelet = 0000 edelkz = 'FE' edelnr = aufnr edelps = 000001 ematnr = matnr ewerks = werks tables imdrqx = mdrqx exceptions error =1 no_requirements_found = 2 order_not_found =3 others = 4. loop at mdrqx where DELKZ = 'VC'. " VC is sales order write:/ mdrqx-DELKZ, mdrqx-matnr, mdrqx-planr+0(10), mdrqx-planr+10(6) . endloop.
LOGIC FLOW
Step 1
Validate selection screen MATNR and WERKS If MRP Controller selected, then search MARC to limit by DISPO for the MATNR and WERK.
Step 2
LOOP on selected MATNR and WERKS
CR20110431
Call MD_STOCK_REQUIREMENTS_LIST_API
Returning: Structure MDPSX DAT02 DELKZ MNG01 DELNR DEL12 BAAR DELPS DELET Date (Delivery/Finish) MRP Element Code Qty Order # MRP data MRP data Order Item Schedulingnumber
CR20110431
Material Group Source Order Source Order Item Sales Order Sales Order Item PO Doc PO Doc Item Material # Purchasing Group
Structure MDEZX SORT0 DAT01 DELKZ DELB0 EXTRA MNG01 PLUMI MPNMT WRK02 LIFNR Date (sort) Date (print) MRP Elem Code MRP Elem MRP Elem data Qty Sign (if + add, if subtract) Material Plant Vendor
CR20110431
Structure MDSUX DELKZ MNG01 MNG02 MNG03 MDBES MRP Elem Code PIR Qty Requirements Qty Receipts Qty Minimum Stock Qty
Step 3
First, SAVE Stock-on-hand where MDEZX-DELKZ = WB, and Safety-Stock where MDEZX-DELKZ = SH
Step 5
CR20110431
Sending: EDELKZ EDELNR EMATNR EWERKS From: MDEZX-DELKZ, MRP Element Code MDEZX-EXTRA, Order Number Selection screen Material Number Selection screen Plant
Returning: EMDPSX IMDRQX DELNR DELPS DELET DELKZ MATNR WERKS DAT00 MNG01 MNG02
CR20110431
Starting Conditions
Report is run per user request with transaction ZCM26. Probably should be run in background to prevent timeouts. .
CR20110431
CR20110431
REPORT EXAMPLE
Output DETAIL REQMT SOURCE MRP Element Ind. Desc. IMDRQXDELKZ, then V457TDELB1 REQMT SOURCE MRP Element Data Desc Orders to be Placed / Firmed Orders Due Date / Required Date Demand Due Date / Required Date Deliver y/ Receivi ng Plant
Plant
Item number
Item Descript
On Hand Inventory
Demand QTY
STO and PO #
Custom
MDEZ
T001WWERKS Memphis
IMDRQXEXTRA
MDPSXMNG01 5000
MARCEISBE 8000
MDPSXMNG01
PLAFAUFFX = BLANK
Pl Ord
Production Order Safety Stock Production Order Sales Order Production Order Sales Order Forecast Forecast
0000708162/ 000040/0001 Safety Stock 0000708162/ 000040/0001 0000707484/ 000040/0001 0000708162/ 000040/0001 0000706885/ 000020/0001 Forecast Forecast
3000
6/7/2011
Pl Ord Pl Ord
6/8/2011
Con Rel
2000
6/11/2011
3140
NORTH
Pl Ord
1000
6/14/2011
Pch Ord
1000
6/15/2011
3000 3000
7/5/2011 7/6/2011
23450 3140
IND. CA
CR20110431
Output
<Document #>
<Project Logo>
Key Field
Foreign Key
Description
Comments
<Document #>
<Project Logo>
Language of texts
English
Assumptions
<Document #>
<Project Logo>