Professional Documents
Culture Documents
Auto Shopfloor SAP PP
Auto Shopfloor SAP PP
Auto Shopfloor SAP PP
Infosys
INFOSYS LIMITED
Bangalore
COPYRIGHT NOTICE
©2013 Infosys Limited, Bangalore, India. All rights reserved. Infosys believes the
information in this document is accurate as of its publication date; such information is
subject to change without notice. Infosys acknowledges the proprietary rights of other
companies to the trademarks, product names and such other intellectual property rights
mentioned in this document. Except as expressly permitted, neither this document nor any
part of it may be reproduced, stored in a retrieval system, or transmitted in any form or by
any means, electronic, mechanical, printing, photocopying, recording or otherwise, without
the prior permission of Infosys Limited and/or any named intellectual property rights
holders under this document.
Infosys Limited
Hosur Road
Electronic City, 3rd Cross
Bangalore 560 100
India.
Telephone: (91) (80)28520 261-270
Fax: (91) (80) 8520 362
Website: http://www.infosys.com
Author(s):
Functional Consultants
Project Details
H/W Platform:
Application Type:
1 Contents
1. Overview...........................................................................................................5
1.1 Business Scenario.........................................................................................5
1.2 Application...................................................................................................5
1.3 Selection screen of the program......................................................................5
1.4 Flow of the Program......................................................................................5
1.5 Functional Logic of the Program......................................................................6
2. Source Code......................................................................................................7
3. Usage of the Asset..............................................................................................7
3.1 Usage.........................................................................................................7
3.2 Limitations...................................................................................................7
4. Related documents.............................................................................................8
5. Reference(s)......................................................................................................9
1. Overview
This artifact enables us to reuse attached program to successfully automate the shop floor
execution cycle in SAP for discrete & Process manufacturing.
This artifact can be used in scenarios where little manufacturing Process are involved as
compared to sales and purchasing functions however PP shop floor control cycle needs to be
automated and integrated in SAP with SD/ MM.
However this program is not limited to above scenario only, In general this can be used to
run PP cycle automatically.
The program automates the shop floor control cycle from process/ production order
creation to TECO status of the order.
This functionality will apply to both discrete manufacturing and Process
manufacturing.
Program needs to be modified as per business requirement- Movement types/ Stock
type etc.
The selection screen in the below program attached is designed for data selection to be
converted to process order.
Further selection parameters like Order type, MRP group, MRP controller etc. can be added
as per client requirement.
The program uses Standard SAP BAPI and Function modules to complete the PP Cycle. The
input to the program can be the fields mentioned in above screenshot (can be modified)
which will be converted to order.
NOTE: - Below program has been designed to input as plant only. Program can be modified
as per client business requirements for further requirements.
PRE REQUSITE: - All the PP related Configurations and master data should be in place.
The program is to convert the all materials (batch enabled) into process order which have
batch characteristic value as “XX”.
1. Enter the plant for which you need to convert batches to process order.
2. If BOM components are WM managed- Check for the batch details from LQUA table.
a. Select IM quantity using MCHB table. This is the quantity used in the order.
b. The IM and WM qty should be matched.
3. If BOM components are not WM managed, check quantity in MCHB table. This is the
quantity used in the order.
4. Create Process order using BAPI_PROCORD_CREATE.
5. Capacity check, Scheduling & Material availability check have been configured in
configuration (Refer Note)
6. In this program the Order is RELEASED automatically on creation depending on
configuration settings – scheduling parameters for order type and plant. But Order
can be released using BAPI- BAPI_PROCORD_RELEASE
7. 261(GI) goods movement is done using BAPI_GOODSMVT_CREATE.
8. Confirmation of the order is done using BAPI_PROCORDCONF_CREATE_HDR at
order level.
9. 101(Goods Receipt) Goods Movement is done using BAPI_GOODSMVT_CREATE
10. If WM is activated, TR generated for the goods movement 261 and 101 is fetched
from MSEG table based on the material doc. number, movement type, material no.,
Plant, StorageLoc., batch, order no.. and converted to TO using FM
L_TO_CREATE_TR .
11. TO is confirmed using FM L_TO_CONFIRM explicitly if TO is not confirmed while TR
to TO conversion.
12.Check for status DLV and CNF of the order no. in JEST table, if confirmed and
Delivered then TECO is done using BAPI_PROCORD_COMPLETE_TECH
The below additional functions may be included depending upon business scenarios in the
program.
2. Source Code
The source code below can be copied to SE38 and must be activated before it can be used.
3.1 Usage
The Source code written above can be copied & modified as a new Z program and executed
either as a batch job or manually by assigning a transaction for following scenarios:-
3.2 Limitations
This program is not suitable for REM manufacturing process and can only be used in
scenarios of discrete or Process manufacturing for shop floor execution process.
While running the program as batch job, it is recommended to create a variant with
a few selection screen values filled (preferably date, plant) because the tables
referred to in the program contain huge amounts of data.
This program cannot be used for scenarios where QM is activated and where NSAP
interfaces are involved.
This program cannot be used for variant configuration / recursive scenarios.
4. Related documents
5. Reference(s)
1. http://help.sap.com
2. http://www.sdn.sap.com