Integrating SAP MII v12.1 with SAP ERP QM
Applies to: SAP ECC 4.6c and newer | SAP MII v12.1
For more information, visit the Manufacturing homepage.
Summary This article provides some insight on how to integrate your MII v12.1 software with the SAP ERP QM module via JCo. This will allow in-depth SPC material based inspection lot analysis for single and multiple inspections lots. This document provides both an overview of the process steps and screens along with detailed steps on how to build your content within MII and a pre-built example project of all of the content.
Author: Salvatore Castro
Company: SAP Labs, LLC
Created on: 16 June 2009
Author Bio Salvatore Castro of SAP Labs has a Bachelors Degree in Computer Engineering and a Masters Degree in Computer Science both through the Rochester Institute of Technology. He is a member of the MII Product Management group under John Schaefer and came aboard SAP through the Lighthammer acquisition.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 1
Integrating SAP MII v12.1 with SAP ERP QM
Table of Contents Overview .........................................................................................................................................................5 Prerequisites ...................................................................................................................................................5 Process Flow...................................................................................................................................................6 Functional Architecture ...................................................................................................................................7 Notes to the Reader ........................................................................................................................................9 Result ............................................................................................................................................................10
Plant Material List .............................................................................................................................................13 Purpose.........................................................................................................................................................13 Prerequisites .................................................................................................................................................13 Process Flow.................................................................................................................................................13 Result ............................................................................................................................................................13
Open Inspection Lot List ...................................................................................................................................14 Purpose.........................................................................................................................................................14 Prerequisites .................................................................................................................................................14 Process Flow.................................................................................................................................................14 Result ............................................................................................................................................................14
Inspection Lot Result Type Selection ...............................................................................................................15 Purpose.........................................................................................................................................................15 Prerequisites .................................................................................................................................................15 Process Flow.................................................................................................................................................15 Result ............................................................................................................................................................15
Inspection Lot Detail .........................................................................................................................................16 Purpose.........................................................................................................................................................16 Prerequisites .................................................................................................................................................16 Process Flow.................................................................................................................................................16 Result ............................................................................................................................................................16
Shop Floor System Measurement Gauge ........................................................................................................17 Purpose.........................................................................................................................................................17 Prerequisites .................................................................................................................................................17 Process Flow.................................................................................................................................................17 Results ..........................................................................................................................................................17
Quality Data Staging.........................................................................................................................................18 Purpose.........................................................................................................................................................18 Prerequisites .................................................................................................................................................18 Process Flow.................................................................................................................................................18 Results ..........................................................................................................................................................19
Recording Quality Data.....................................................................................................................................20 Purpose.........................................................................................................................................................20 Prerequisites .................................................................................................................................................20 Process Flow.................................................................................................................................................20
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 2
Integrating SAP MII v12.1 with SAP ERP QM
Results ..........................................................................................................................................................20 Inspection Lot Material Analysis .......................................................................................................................21
Purpose.........................................................................................................................................................21 Prerequisites .................................................................................................................................................21 Process Flow.................................................................................................................................................21 Result ............................................................................................................................................................22
Inspection Lot Measurement Analysis..............................................................................................................23 Purpose.........................................................................................................................................................23 Prerequisites .................................................................................................................................................23 Process Flow.................................................................................................................................................23
Results .......................................................................................................................................................................23 Related Content................................................................................................................................................24 Appendix A (QM) ..............................................................................................................................................25
Transactions..................................................................................................................................................25 GetPlantsForMaterial .................................................................................................................................................25 GetInspectionLotListByPlantAndMaterial ...................................................................................................................35 GetCharacteristicsForInspectionLot...........................................................................................................................46 GetInspectionLotDetailsByInspLot .............................................................................................................................56 GetInspectionLotSPCLevelDetailsByInspLot .............................................................................................................71 GetMaterialSPCLevelDetailsByInspLot......................................................................................................................87
Query Templates.........................................................................................................................................104 GetPlantsForMaterialXQuery ...................................................................................................................................104 GetInspectionLotListByPlantAndMaterialXQuery.....................................................................................................105 GetCharacteristicsForInspectionLotXQuery.............................................................................................................106 GetInspectionLotDetailsByInspLotXQuery...............................................................................................................107 GetInspectionLotSPCLevelDetailsByInspLotXQuery ...............................................................................................108 GetMaterialSPCLevelDetailsByInspLotXQuery........................................................................................................109
Display Templates.......................................................................................................................................110 GetPlantsForMaterialBrowser ..................................................................................................................................110 GetInspectionLotListByPlantAndMaterialGrid ..........................................................................................................111 GetCharacteristicsForInspectionLotGrid ..................................................................................................................113 GetInspectionLotCharResultsByInspLotGrid............................................................................................................115 GetInspectionLotSampleResultsByInspLotGrid .......................................................................................................118 GetInspectionLotSingleResultsByInspLotGrid .........................................................................................................122 GetInspectionLotSPCLevelDetailsByInspLotSPCChart ...........................................................................................125
Appendix B (Shop Floor) ................................................................................................................................135 Transactions................................................................................................................................................135
TakeSampleFromControlSystem.............................................................................................................................135 AsynchronouslyRecordResultsForCharacteristic .....................................................................................................137
Query Templates.........................................................................................................................................148 GenericCurrentQuery...............................................................................................................................................148 TakeSampleFromControlSystemXQuery.................................................................................................................149 CreateQualityBufferDatabaseTable .........................................................................................................................150 DropQualityBufferDatabaseTable ............................................................................................................................150 DeleteRecordFromQualityBufferCommand..............................................................................................................150
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 3
Integrating SAP MII v12.1 with SAP ERP QM
InsertRecordIntoQualityBufferCommand .................................................................................................................150 UpdateRecordInQualityBufferCommand..................................................................................................................150
Display Templates.......................................................................................................................................151 TakeSampleFromControlSystemGauge ..................................................................................................................151
Appendix C (Web Content).............................................................................................................................156 Main Page ...................................................................................................................................................156 SPC Results................................................................................................................................................163 Calendar......................................................................................................................................................164 CSS.............................................................................................................................................................166
Copyright.........................................................................................................................................................171
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 4
Integrating SAP MII v12.1 with SAP ERP QM
Overview
You use this business scenario to enable a Quality Operator interacting with ECC processes/data and plant systems process/data in a customized work process through a browser or mobile device. In this business scenario, the quality operator will be able to:
• Analyze Current Results: From a single web page the user can monitor the current quality information for a material in their plant and store additional measured values against an inspection lot.
• Enter Quality Test Results: Avoids the use of entering the information in multiple systems or screens, (e.g. LIMS and ECC). The quality operator can get the quality data from the LIMS system or a device; enter additional/manual information on the form.
• Record Results: This data is reported directly into SAP ECC. This process ensures that the quality data entered is accurate and up to date. It can also be easily monitored and flagged for a follow-up
This direct and seamless integration into the QM module from the plant floor significantly reduces the amount of overhead required to monitor the quality of your plant floor process. One can use this business scenario to improve the data integrity in your quality management module. The purpose of this document is to give the reader insight into how to properly setup a plant floor interface to the Quality Management module. All of the MII content details will be located in Appendix A & B and their respective sections which are named the same as the file name.
Prerequisites
You can implement this business scenario with different releases of the relevant application components. However, only certain combinations are valid. For more information, see:
• mySAP Solution or SAP for Industry Master Guide on SAP Service Marketplace at http://service.sap.com/instguides
• SAP MII 12.1 which runs on the SAP NetWeaver CE (v7.1.1) platform • SAP ECC
The QM Module must be implemented • Scenario & Process Component List on SAP Service Marketplace at http://service.sap.com/scl • JCo configured in MII to point to a valid SAP ECC server. • Database where a table for “Store and Forward“ of recorded QM results can be created and accessed
A valid data server connection to this database must exist in MII • A valid icon to represent a calendar object
Can download an image from http://heritageapostolic.com/images/calendar_icon.jpg or just use your own image.
Save the image in the following location SAP/BusinessScenarios/Common/Images. On the “Main Page” you will have to match the HTML image source reference to the location and name of your calendar image.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 5
Integrating SAP MII v12.1 with SAP ERP QM
Process Flow
The business processes run as follows: T...
1. Plant Material List 2. Open Inspection Lost List 3. Inspection Lot Result Type Selection 4. Inspection Lot Detail 5. Shop Floor System Management Gauge 6. Quality Data Staging 7. Recording Quality Data 8. Inspection Lot Material Analysis 9. Inspection Lot Measurement Analysis
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 6
Integrating SAP MII v12.1 with SAP ERP QM
Functional Architecture
This business scenario requires various systems and they are shown in the image below:
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 7
Integrating SAP MII v12.1 with SAP ERP QM
Image 4: The network configuration and layout of the systems used in the solution
It is important to note that the QM module must be implemented in the ECC system and a local database and shop floor system must be available at the plant. The database is a single table and is used in order to initially record the measured quality data. A scheduled transaction processes the entries in the table to guarantee message delivery order (The database used in this scenario was MS SQL Server but any database will work). The historian system in this scenario is used as the measured system where values are recorded from directly. Note that the SAP MII UDS is not shown in this scenario but is probably required to properly connect to the historian system. Also it is important to note that the JCo connection alias for the JCo Start Session action and the data server name used in the SQL and Tag commands and queries may be different than specified in this document depending on your system configuration. Please be sure to work out these values ahead of time with your MII administrator. The SAP ECC QM implementation can be verified by navigating to the following TCodes in SAP GUI:
TCode Description
QA33 Display Data for an Inspection Lot
QA01 Create an Inspection Lot
QA03 Display an Inspection Lot
QE51N Results Recording Worklist
QA11 Record Usage Decision for an Inspection Lot
QA13 Display Usage Decision for Inspection Lots
QM11 Display a List of Quality Notifications
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 8
Integrating SAP MII v12.1 with SAP ERP QM
These various transactions in the ECC system should allow you to search for valid data and also to verify that your implementation of this scenario is working properly.
Notes to the Reader
When reading this document and implementing the scenario there are a couple of things to keep in mind. This scenario is built as a generic implementation to write measurement values into a live QM system. It has been implemented to use the MII Simulator environment as the historian system of record for measurement values. If you choose to implement this scenario in your organization you will have to modify this solution to fit your shop floor environment and to read the proper measurement data from your historian.
Another point of interest is that in Appedix A & B of this document you will see the following value <<XML>>. This is simply a marker to indicate that the data type is XML and not what you should enter as a default value for the field.
Finally all of the information about the various BAPI fields used by this solution can be found in SAP GUI via the BAPI transaction code. This transaction code contains all of the documentation for the various standard BAPIs.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 9
Integrating SAP MII v12.1 with SAP ERP QM
Result
The result of this scenario is the integration of the Quality Management process on the shop floor, by simplifying the UI for the Quality operator. The operator can lookup current quality data against any material in the plant and record new results back into the ECC system. Follow-on processes for the business process scenario could be a Usage decision on the inspection lot based on the test results or production confirmation for the order. The pages developed upon completion of this scenario should look similar to these shown below:
Image 1: Main Page for the QM and Shop Floor Integration scenario
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 10
Integrating SAP MII v12.1 with SAP ERP QM
Image 2: Single Lot Analysis (SPC) – Quality analysis on an inspection lot
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 11
Integrating SAP MII v12.1 with SAP ERP QM
Image 3: Cross Lot Analysis (SPC) – Quality analysis across various inspection lots
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 12
Integrating SAP MII v12.1 with SAP ERP QM
Plant Material List
Purpose
View all plants where the specified material is defined in order to simplify the process of finding your plant id in the ECC system.
Prerequisites
The operator knows a valid material id where at least one plant is defined.
Process Flow 1. Create get plants for material transaction - Open up the MII Workbench and create a project called
SAP and create the following folder structures BusinessScenarios/IndustryIndependent/QMandShopFloor/QM/Modify and BusinessScenarios/IndustryIndependent/QMandShopFloor/ShopFloor/Modify if they don’t exist already.
Create the transaction outlined in Appendix A of this document under the “GetPlantsForMaterial” section. Save this transaction as GetPlantsForMaterial in the QM folder.
2. Create get plants for material query - Create the XacuteQuery outlined in Appendix A of this document under the “GetPlantsForMaterialXQuery” section. Save this query template as GetPlantsForMaterialXQuery in the QM folder.
3. Create get plants for material display template - Create the iBrowser Display Template outlined in Appendix A of this document under the “GetPlantsForMaterialBrowser” section. Save this display template as GetPlantsForMaterialBrowser in the QM folder.
Result
The results of this section should be a browser that when tested should look similar to this:
It takes in a single parameter from the user; the Material and displays a formatted value which is the combination of the plant description and ECC id.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 13
Integrating SAP MII v12.1 with SAP ERP QM
Open Inspection Lot List
Purpose
View all open inspection lots for the given search criteria (Material, Plant, and Since Date) that are released for results recording but do not yet have a usage decision.
Prerequisites
QM module is implemented and managing inspection data for your material at the plant
Open inspection lot with associated operations, samples and results exists for a material in a plant.
Process Flow 1. Create get inspection lot list transaction - Open up the MII Workbench and create a project called
SAP and create the following folder structures BusinessScenarios/IndustryIndependent/QMandShopFloor/QM and BusinessScenarios/IndustryIndependent/QMandShopFloor/ShopFloor if they don’t exist already.
Create the transaction outlined in Appendix A of this document under the “GetInspectionLotListByPlantAndMaterial” section. Save this transaction as GetInspectionLotListByPlantAndMaterial in the QM folder.
2. Create get inspection lot list query - Create the XacuteQuery outlined in Appendix A of this document under the “GetInspectionLotListByPlantAndMaterialXQuery” section. Save this query template as GetInspectionLotListByPlantAndMaterialXQuery in the QM folder.
3. Create get inspection lot list display template - Create the iGrid Display Template outlined in Appendix A of this document under the “GetInspectionLotListByPlantAndMaterialGrid” section. Save this display template as GetInspectionLotListByPlantAndMaterialGrid in the QM folder.
Result
The results of this section should be a grid that when tested should look similar to this:
It takes in three parameters from the user and they are Material, Plant, and Since Date.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 14
Integrating SAP MII v12.1 with SAP ERP QM
Inspection Lot Result Type Selection
Purpose This step is targeted to allow the user to choose the various result types configured for the inspection lot available for each work center.
Prerequisites
Inspection Lot with associated operations, samples and results exists for a material in a plant.
Process Flow 1. Create get characteristics for inspection lot transaction - Create the transaction outlined in Appendix
A of this document under the “GetCharacteristicsForInspectionLot” section. Save this transaction as GetCharacteristicsForInspectionLot in the QM folder.
2. Create get characteristics for inspection lot query - Create the XacuteQuery outlined in Appendix A of this document under the “GetCharacteristicsForInspectionLotXQuery” section. Save this query template as GetCharacteristicsForInspectionLotXQuery in the QM folder.
3. Create get characteristics for inspection lot display template - Create the iGrid Display Template outlined in Appendix A of this document under the “GetCharacteristicsForInspectionLotGrid” section. Save this display template as GetCharacteristicsForInspectionLotGrid in the QM folder.
Result
The results of this section should be a grid that when tested should look similar to this:
The Xacute Query takes in a single parameter; the Inspection Lot
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 15
Integrating SAP MII v12.1 with SAP ERP QM
Inspection Lot Detail
Purpose This step is targeted to show the user what has already been recorded for the selected inspection lot and result type.
Prerequisites
All of the recorded values for the selected result type (Single, Sample, or Characteristic) along with supporting detailed information about the value.
Process Flow 1. Create get inspection lot details transaction - Create the transaction outlined in Appendix A of this
document under the “GetInspectionLotDetailsByInspLot” section. Save this transaction as GetInspectionLotDetailsByInspLot in the QM folder.
2. Create get inspection lot details query - Create the XacuteQuery outlined in Appendix A of this document under the “GetInspectionLotDetailsByInspLotXQuery” section. Save this query template as GetInspectionLotDetailsByInspLotXQuery in the QM folder.
Test get inspection lot details query - Test the GetInspectionLotDetailsByInspLotXQuery multiple times with the following values for the ResultType parameter: Single, Sample, and Characteristic
3. Create get inspection lot details display template - Create the iGrid Display Template outlined in Appendix A of this document under the “GetInspectionLotCharResultsByInspLotGrid” section. Save this display template as GetInspectionLotCharResultsByInspLotGrid in the QM folder.
4. Create get inspection lot sample results display template - Create the iGrid Display Template outlined in Appendix A of this document under the “GetInspectionLotSampleResultsByInspLotGrid” section. Save this display template as GetInspectionLotSampleResultsByInspLotGrid in the QM folder.
5. Create get inspection lot single results display template - Create the iGrid Display Template outlined in Appendix A of this document under the “GetInspectionLotSingleResultsByInspLotGrid” section. Save this display template as GetInspectionLotSingleResultsByInspLotGrid in the QM folder.
Result
The results of this section should be a set of grids that when tested should look similar to this:
It takes in the following parameters, Inspection Lot, Operation, Characteristic, and Result Type. The display template will changed based on the display template in order to accommodate the different data fields that are returned based on the specified result type.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 16
Integrating SAP MII v12.1 with SAP ERP QM
Shop Floor System Measurement Gauge
Purpose This business process is targeted to allow the operator to view and record values directly from the control system that is recorded them. This reduces the chances of human error for value recording and allows for a quick and easy to use interface for results recording into QM.
Prerequisites
A valid connection to the shop floor system which monitors quality data must be available
Process Flow 1. Create generic current query - Create the Tag Query Template outlined in Appendix B of this
document under the “GenericCurrentQuery” section. Save this query template as GenericCurrentQuery in the ShopFloor folder.
2. Create take sample from control system transaction - Create the Transaction outlined in Appendix B of this document under the “TakeSampleFromControlSystem” section. Save this transaction as TakeSampleFromControlSystem in the ShopFloor folder.
3. Create take sample from control system query - Create the Xacute Query Template outlined in Appendix B of this document under the “TakeSampleFromControlSystemXQuery” section. Save this query template as TakeSampleFromControlSystemXQuery in the ShopFloor folder.
4. Create take sample from control system display template - Create the iChart Display Template outlined in Appendix B of this document under the “TakeSampleFromControlSystemGauge” section. Save this display template as TakeSampleFromControlSystemGauge in the ShopFloor folder.
Results
The results of this section should be a gauge that when all of the various values are selected by the user, displays the current value from a Shop Floor system. The resulting Gauge should look similar to this:
This gauge takes in multiple parameters but is designed to be customizable to accommodate your specific shop floor environment. There’s currently no standard way to identify a tag since tag naming conventions vary from company to company and site to site. This is simply a suggested transaction mechanism to help you to determine how each tag will be referenced. As a result you will have to customize this component for your environment but the pieces you need to do this are provided for you.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 17
Integrating SAP MII v12.1 with SAP ERP QM
Quality Data Staging
Purpose The purpose of this is to stage values in a local plant database in order to stage data before it is sent to ECC to ensure in order processing and guaranteed delivery of data. In order to manage this database various SQL commands need to be developed for Creating and Dropping the table along with Inserting, Deleting, and Updating records. All of the SQL Commands in this section were written for MS SQL Server but can easily be adapted to work for any relational database that supports a writable JDBC connection interface.
Prerequisites
A valid MII SQL Database connection with write permissions must exist in MII.
All SQL Query templates shall be configured to use the data server where the QUALITYBUFFER table is defined and all shall be in Command Mode.
Process Flow 1. Create quality buffer database query - Create the SQL Query Template Command outlined in
Appendix B of this document under the “CreateQualityBufferDatabaseTable” section. Save this query template as CreateQualityBufferDatabaseTable in the ShopFloor/Modify folder.
2. Create drop quality buffer database query - (Optional step) Create the SQL Query Template Command outlined in Appendix B of this document under the “DropQualityBufferDatabaseTable” section. Save this query template as DropQualityBufferDatabaseTable in the ShopFloor/Modify folder.
3. Create delete quality buffer database query - Create the SQL Query Template Command outlined in Appendix B of this document under the “DeleteRecordFromQualityBufferCommand” section. Save this query template as DeleteRecordFromQualityBufferCommand in the ShopFloor/Modify folder.
4. Create insert quality buffer database query - Create the SQL Query Template Command outlined in Appendix B of this document under the “InsertRecordIntoQualityBufferCommand” section. Save this query template as InsertRecordIntoQualityBufferCommand in the ShopFloor/Modify folder.
5. Create update quality buffer database query - Create the SQL Query Template Command outlined in Appendix B of this document under the “UpdateRecordInQualityBufferCommand” section. Save this query template as UpdateRecordInQualityBufferCommand in the ShopFloor/Modify folder.
6. Execute quality buffer database query - Run the CreateQualityBufferDatabaseTable query template in order to create the QUALITYBUFFER database table.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 18
Integrating SAP MII v12.1 with SAP ERP QM
Results
The result of this section is a database table named that will stage quality data sent to ECC. The table has the following columns defined:
Column Name Column Data Type Description
RECORDID INT (NOT NULL) Unique record identifier
INSPECTIONLOT VARCHAR(15) ECC Inspection Lot
INSPECTIONOPER VARCHAR(15) ECC Inspection Operation
INSPECTIONCHAR VARCHAR(15) ECC Inspection Characteristic
MATERIAL VARCHAR(20) ECC Material ID
SAMPLEDATETIME DATETIME Timestamp of when value was recorded
INSPECTOR VARCHAR(50) Username of person recording value
COMMENT VARCHAR(250) Inspector’s comment about the record
MEASVALUE NUMERIC(10, 6) Value measured by the inspector
UOM VARCHAR(10) Unit of measure for the value
RESULTNUM VARCHAR(4) Result number of the Insp. Lot sample
RESTYPE VARCHAR(15) The type of result value recorded
CREATEDATE DATETIME Timestamp of when entry was recorded in the database
RETRYCOUNT INTEGER Number of times value write was attempted to ECC
LASTRETRY DATETIME Timestamp of last write attempt to ECC
LASTERRORMSG VARCHAR(200) Error message from last write attempt failure
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 19
Integrating SAP MII v12.1 with SAP ERP QM
Recording Quality Data
Purpose The purpose of this is to asynchronously record quality data from the local database into the ECC QM module in order with guaranteed delivery. It also maintains the status of each message in the QUALITYBUFFER table for overview on each value recorded.
Prerequisites
The database containing the QUALITYBUFFER table has a valid connection in MII
A valid JCo connection alias exists in MII and a valid credential alias for this connection exists
Access to the MII Scheduler Editor
Process Flow 1. Create record results for characteristics transaction - Create the Transaction outlined in Appendix A
of this document under the “AsynchronouslyRecordResultsForCharacteristic” section. Save this transaction as AsynchronouslyRecordResultsForCharacteristic in the QM/Modify folder.
2. Schedule record results for characteristics transaction - Create a schedule for the AsynchronouslyRecordResultsForCharacteristic transaction which triggers the transaction execution for every 5min. The value of 5 minutes is based on how often data should be written to the ECC system and should be modified according to your business process.
Results
Data stored in the QUALITYBUFFER table to be written into QM at a specified interval along with updating the table based on success or failure of the ECC communication. Additional database interface pages can be custom developed in order to provide a front end to manage this data.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 20
Integrating SAP MII v12.1 with SAP ERP QM
Inspection Lot Material Analysis
Purpose This business process is targeted to allow the operator to view previously stored measurement values against the control limits specified in the ECC QM module. This enables the quality operator to evaluate previously stored values and their associated comments for the selected inspection lot or for the specified material.
Prerequisites
Inspection Lot with associated operations, samples and results exists for a material in a plant.
Process Flow 1. Create get inspection lot SPC detail transaction - Create the Transaction outlined in Appendix A of
this document under the “GetInspectionLotSPCLevelDetailsByInspLot” section. Save this transaction as GetInspectionLotSPCLevelDetailsByInspLot in the QM folder.
2. Create get material SPC detail transaction - Create the Transaction outlined in Appendix A of this document under the “GetMaterialSPCLevelDetailsByInspLot” section. Save this transaction as GetMaterialSPCLevelDetailsByInspLot in the QM folder
3. Create get inspection lot SPC detail query - Create the Xacute Query Template outlined in Appendix A of this document under the “GetInspectionLotSPCLevelDetailsByInspLotXQuery” section. Save this query template as GetInspectionLotSPCLevelDetailsByInspLotXQuery in the QM folder.
4. Create get material SPC detail query - Create the Xacute Query Template outlined in Appendix A of this document under the “GetMaterialSPCLevelDetailsByInspLotXQuery” section. Save this query template as GetMaterialSPCLevelDetailsByInspLotXQuery in the QM folder.
5. Create get inspection lot SPC detail display template - Create the SPC Chart Display Template outlined in Appendix A of this document under the “GetInspectionLotSPCLevelDetailsByInspLotSPCChart” section. Save this display template as GetInspectionLotSPCLevelDetailsByInspLotSPCChart in the QM folder.
6. Create SPC results web page - Create the “SPC Results” web page outlined in Appendix C of this document under the “SPC Results” section. Save this web page in the WEB tab in the following path: SAP/WEB/BusinessScenarios/IndustryIndependent/QMandShopFloor
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 21
Integrating SAP MII v12.1 with SAP ERP QM
Result
The result of this is process based on the user’s selection criteria, which will display the recorded values for SPC analysis. The web page should look similar to the image below. The SPC chart is versatile enough to handle both the single and multi-inspection lot analysis:
Single Inspection Lot
Multiple Inspection Lots
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 22
Integrating SAP MII v12.1 with SAP ERP QM
Inspection Lot Measurement Analysis
Purpose This business process is targeted to allow the operator to view previously stored measurement values against the control limits specified in the ECC QM module. This enables the quality operator to evaluate previously stored values and their associated comments for the selected inspection lot or for the specified material.
Prerequisites
Inspection Lot with associated operations, samples and results exists for a material in a plant.
Process Flow 1. Create inspection lot measurement analysis web page - Create the “Main Page” web page outlined
in Appendix C of this document under the “Main Page” section (Be sure to check to make sure you document is valid HTML if you copy and paste you may have extra line breaks that will have to be removed). Save this web page in the WEB tab in the following path: SAP/WEB/BusinessScenarios/IndustryIndependent/QMandShopFloor
Congratulations you have now integrated your shop floor systems to the ECC QM Module and have a working business scenario.
Results
The resulting main page that is defined for the scenario is shown above as the entry point for the application.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 23
Integrating SAP MII v12.1 with SAP ERP QM
Related Content SAP MIII Wiki: https://wiki.sdn.sap.com/wiki/display/xMII
SAP MII Forum: https://www.sdn.sap.com/irj/sdn/forum?forumID=237
SAP MII v12.1 Help Documentation: http://help.sap.com/content/documentation/sbs/docu_sbs_mii.htm
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 24
Integrating SAP MII v12.1 with SAP ERP QM
Appendix A (QM)
Transactions
It is important to note that connection information and default values may vary between systems.
GetPlantsForMaterial
MaterialNumber is a String Data Type and OutputXML is an XML data type.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 25
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 26
Integrating SAP MII v12.1 with SAP ERP QM
* “Name” has a Data Type of String too.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 27
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 28
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 29
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 30
Integrating SAP MII v12.1 with SAP ERP QM
Set the TerminationMessage property equal to this:
"Type: " & GetPlantDetails.Response{/PLANT_GET_DETAIL/OUTPUT/RETURN/TYPE} & Message: " & GetPlantDetails.Response{/PLANT_GET_DETAIL/OUTPUT/RETURN/MESSAGE}
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 31
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 32
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 33
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 34
Integrating SAP MII v12.1 with SAP ERP QM
GetInspectionLotListByPlantAndMaterial
Transaction
The following is the detailed configuration information for the GetInspectionLotListByPlantAndMaterial transaction required in this scenario.
Material and Plant are Strings, MaxRows is an Integer, OutputXML is XML, and SinceDate is a DateTime data type. For SinceDate the actual value is a XML format timestamp so the value contains a ‘T’ but when you specify this in the editor you will not see the ‘T’.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 35
Integrating SAP MII v12.1 with SAP ERP QM
All of the Local properties are String data types.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 36
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 37
Integrating SAP MII v12.1 with SAP ERP QM
CREATE_DATE is a DateTime and all of the other columns have a Data Type of String
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 38
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 39
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 40
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 41
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 42
Integrating SAP MII v12.1 with SAP ERP QM
Set the TerminationMessage to:
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 43
Integrating SAP MII v12.1 with SAP ERP QM
"InspLot Details TYPE: " & INSPLOT_DETAILS.Response{/BAPI_INSPLOT_GETDETAIL/OUTPUT/RETURN/TYPE} & " MESSAGE: " & INSPLOT_DETAILS.Response{/BAPI_INSPLOT_GETDETAIL/OUTPUT/RETURN/MESSAGE}
Set the TerminationMessage to:
"JCo Connection Error: failed to get inspection lot details."
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 44
Integrating SAP MII v12.1 with SAP ERP QM
Set the TerminationMessage to:
"BAPI_INSPLOT_GETLIST returned the following error message -> " & BAPI_INSPLOT_GETLIST.Response{/BAPI_INSPLOT_GETLIST/OUTPUT/RETURN/MESSAGE}
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 45
Integrating SAP MII v12.1 with SAP ERP QM
GetCharacteristicsForInspectionLot
InspectionLot is a String and OutputXML is a XML data type.
All of the local properties are String data types.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 46
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 47
Integrating SAP MII v12.1 with SAP ERP QM
All Data Types are Strings
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 48
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 49
Integrating SAP MII v12.1 with SAP ERP QM
Set Links to the following:
Input1 = INSPOPER_GETLIST.Response{/BAPI_INSPOPER_GETLIST/OUTPUT/RETURN/TYPE} != "E"
Input2 = INSPOPER_GETLIST.Response{/BAPI_INSPOPER_GETLIST/OUTPUT/RETURN2/TYPE} != "E"
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 50
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 51
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 52
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 53
Integrating SAP MII v12.1 with SAP ERP QM
Set the TerminationMessage to:
"TYPE1: " & INSPOPER_GETLIST.Response{/BAPI_INSPOPER_GETLIST/OUTPUT/RETURN/TYPE} & " MESSAGE1: " & INSPOPER_GETLIST.Response{/BAPI_INSPOPER_GETLIST/OUTPUT/RETURN/MESSAGE} & " TYPE2: " & INSPOPER_GETLIST.Response{/BAPI_INSPOPER_GETLIST/OUTPUT/RETURN2/TYPE} & "
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 54
Integrating SAP MII v12.1 with SAP ERP QM
MESSAGE2: " & INSPOPER_GETLIST.Response{/BAPI_INSPOPER_GETLIST/OUTPUT/RETURN2/MESSAGE}
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 55
Integrating SAP MII v12.1 with SAP ERP QM
GetInspectionLotDetailsByInspLot
OutputXML is an XML data type and all of the other data types are String.
The Local property data types are all Strings
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 56
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 57
Integrating SAP MII v12.1 with SAP ERP QM
For the column Data Types set VALUE to a Double, and set SAMPLETIMESTAMP to a DateTime and set all other column data types to Strings
For the column Data Types set SAMPLETIMESTAMP to a DateTime and DEFECTS, VALSABOVE, and VALSBELOW to an Integer and set MEANVALUE, VARIANCE, MAX, and MIN to a Double and the rest of the columns should be set to String Data Type.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 58
Integrating SAP MII v12.1 with SAP ERP QM
For the column Data Types set SAMPLETIMESTAMP to a DateTime and DEFECTS, VALSABOVE, and VALSBELOW to an Integer and set MEANVALUE, VARIANCE, MAX, and MIN to a Double and the rest of the columns should be set to String Data Type.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 59
Integrating SAP MII v12.1 with SAP ERP QM
Input1 = INSPOPER_GETDETAIL.Response{/BAPI_INSPOPER_GETDETAIL/OUTPUT/RETURN/TYPE} != "E"
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 60
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 61
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 62
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 63
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 64
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 65
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 66
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 67
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 68
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 69
Integrating SAP MII v12.1 with SAP ERP QM
Set TerminationMessage to:
"TYPE: " & INSPOPER_GETDETAIL.Response{/BAPI_INSPOPER_GETDETAIL/OUTPUT/RETURN/TYPE} &
" MESSAGE: “ & INSPOPER_GETDETAIL.Response{/BAPI_INSPOPER_GETDETAIL/OUTPUT/RETURN/MESSAGE}
Set TerminationMessage to:
"BAPI_INSPOPER_GETDETAIL failed to execute due to an invalid JCo session."
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 70
Integrating SAP MII v12.1 with SAP ERP QM
GetInspectionLotSPCLevelDetailsByInspLot
The OutputXML property is of type XML and the rest are all Strings.
The TempXML property is of type XML and the rest are all Strings.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 71
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 72
Integrating SAP MII v12.1 with SAP ERP QM
Set the Data Type for the VALUE, UPPERCONTROLLIMIT, CONTROLLIMIT, LOWERCONTROLLIMIT, UPPERSPECIFICATIONLIMIT, TARGETSPECIFICATIONLIMIT, and LOWERSPECIFICATIONLIMIT columns to Double and set the Data Type for the SAMPLETIMESTAMP column to DateTime and set the rest of the column Data Types to String.
Set the Data Type for the MEANVALUE, VARIANCE, MIN, MAX, UPPERCONTROLLIMIT, CONTROLLIMIT, LOWERCONTROLLIMIT, UPPERSPECIFICATIONLIMIT, TARGETSPECIFICATIONLIMIT, and LOWERSPECIFICATIONLIMIT columns to Double and set the Data Type for the SAMPLETIMESTAMP column to DateTime and set the Data Type for DEFECTS, VALSABOVE, VALSBELOW to Integer and set the rest of the column Data Types to String.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 73
Integrating SAP MII v12.1 with SAP ERP QM
Set the Data Type for the MEANVALUE, VARIANCE, MIN, MAX, UPPERCONTROLLIMIT, CONTROLLIMIT, LOWERCONTROLLIMIT, UPPERSPECIFICATIONLIMIT, TARGETSPECIFICATIONLIMIT, and LOWERSPECIFICATIONLIMIT columns to Double and set the Data Type for the SAMPLETIMESTAMP column to DateTime and set the Data Type for DEFECTS, VALSABOVE, VALSBELOW to Integer and set the rest of the column Data Types to String.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 74
Integrating SAP MII v12.1 with SAP ERP QM
Set Input1 to: INSPOPER_GETDETAIL.Response{/BAPI_INSPOPER_GETDETAIL/OUTPUT/RETURN/TYPE} != "E"
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 75
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 76
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 77
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 78
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 79
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 80
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 81
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 82
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 83
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 84
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 85
Integrating SAP MII v12.1 with SAP ERP QM
Set TerminationMessage to:
"TYPE: " & INSPOPER_GETDETAIL.Response{/BAPI_INSPOPER_GETDETAIL/OUTPUT/RETURN/TYPE} &
" MESSAGE: “ & INSPOPER_GETDETAIL.Response{/BAPI_INSPOPER_GETDETAIL/OUTPUT/RETURN/MESSAGE}
Set TerminationMessage to:
"BAPI_INSPOPER_GETDETAIL failed to execute due to an invalid JCo session."
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 86
Integrating SAP MII v12.1 with SAP ERP QM
GetMaterialSPCLevelDetailsByInspLot
The SinceDate is of type DateTime, MaxRows is an Integer, and the OutputXML property is of type XML and the rest are all Strings. For SinceDate the actual value is a XML format timestamp so the value contains a ‘T’ but when you specify this in the editor you will not see the ‘T’.
The ResultDetailXML property is of type XML and the rest are all Strings.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 87
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 88
Integrating SAP MII v12.1 with SAP ERP QM
Set the Data Type for the VALUE, UPPERCONTROLLIMIT, CONTROLLIMIT, LOWERCONTROLLIMIT, UPPERSPECIFICATIONLIMIT, TARGETSPECIFICATIONLIMIT, and LOWERSPECIFICATIONLIMIT columns to Double and set the Data Type for the SAMPLETIMESTAMP column to DateTime and set the rest of the column Data Types to String.
Set the Data Type for the MEANVALUE, VARIANCE, MIN, MAX, UPPERCONTROLLIMIT, CONTROLLIMIT, LOWERCONTROLLIMIT, UPPERSPECIFICATIONLIMIT, TARGETSPECIFICATIONLIMIT, and LOWERSPECIFICATIONLIMIT columns to Double and set the Data Type for the SAMPLETIMESTAMP column to DateTime and set the Data Type for DEFECTS, VALSABOVE, VALSBELOW to Integer and set the rest of the column Data Types to String.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 89
Integrating SAP MII v12.1 with SAP ERP QM
Set the Data Type for the MEANVALUE, VARIANCE, MIN, MAX, UPPERCONTROLLIMIT, CONTROLLIMIT, LOWERCONTROLLIMIT, UPPERSPECIFICATIONLIMIT, TARGETSPECIFICATIONLIMIT, and LOWERSPECIFICATIONLIMIT columns to Double and set the Data Type for the SAMPLETIMESTAMP column to DateTime and set the Data Type for DEFECTS, VALSABOVE, VALSBELOW to Integer and set the rest of the column Data Types to String.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 90
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 91
Integrating SAP MII v12.1 with SAP ERP QM
Configure the action to call this transaction: SAP/BusinessScenarios/IndustryIndependent/QMandShopFloor/QM/GetInspectionLotSPCLevelDetailsByInspLot
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 92
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 93
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bp x.sap.com | BOC - boc.sap.com © 2009 SAP AG 94
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 95
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 96
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 97
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 98
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | B PX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 99
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 100
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 101
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 102
Integrating SAP MII v12.1 with SAP ERP QM
Set the TerminationMessage to:
"BAPI -> BAPI_INSPLOT_GETLIST returned the following error message -> " & INSPLOT_GETLIST.Response{/BAPI_INSPLOT_GETLIST/OUTPUT/RETURN/MESSAGE}
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 103
Integrating SAP MII v12.1 with SAP ERP QM
Query Templates
GetPlantsForMaterialXQuery
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 104
Integrating SAP MII v12.1 with SAP ERP QM
GetInspectionLotListByPlantAndMaterialXQuery
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 105
Integrating SAP MII v12.1 with SAP ERP QM
GetCharacteristicsForInspectionLotXQuery
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 106
Integrating SAP MII v12.1 with SAP ERP QM
GetInspectionLotDetailsByInspLotXQuery
The order of the parameters in this section is important
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 107
Integrating SAP MII v12.1 with SAP ERP QM
GetInspectionLotSPCLevelDetailsByInspLotXQuery
The order of the parameters in this section is important
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 108
Integrating SAP MII v12.1 with SAP ERP QM
GetMaterialSPCLevelDetailsByInspLotXQuery
The order of the parameters in this section is important and the MaxRows parameter is for the number of inspection lots to return
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 109
Integrating SAP MII v12.1 with SAP ERP QM
Display Templates
GetPlantsForMaterialBrowser
The Query Template is:
SAP/BusinessScenarios/IndustryIndependent/QMandShopFloor/QM/GetPlantsForMaterialXQuery
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 110
Integrating SAP MII v12.1 with SAP ERP QM
GetInspectionLotListByPlantAndMaterialGrid
The Query Template is:
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 111
Integrating SAP MII v12.1 with SAP ERP QM
SAP/BusinessScenarios/IndustryIndependent/QMandShopFloor/QM/GetInspectionLotListByPlantAndMaterialXQuery
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 112
Integrating SAP MII v12.1 with SAP ERP QM
GetCharacteristicsForInspectionLotGrid
The Query Template is:
SAP/BusinessScenarios/IndustryIndependent/QMandShopFloor/QM/GetCharacteristicsForInspectionLotXQuery
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 113
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 114
Integrating SAP MII v12.1 with SAP ERP QM
GetInspectionLotCharResultsByInspLotGrid
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 115
Integrating SAP MII v12.1 with SAP ERP QM
In order to generate the column list properly you have to change the result type in the associated query template to have a value of “Characteristic”.
The Query Template is:
SAP/BusinessScenarios/IndustryIndependent/QMandShopFloor/QM/GetInspectionLotDetailsByInspLotXQuery
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 116
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 117
Integrating SAP MII v12.1 with SAP ERP QM
GetInspectionLotSampleResultsByInspLotGrid
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 118
Integrating SAP MII v12.1 with SAP ERP QM
In order to generate the column list properly you have to change the result type in the associated query template to have a value of “Sample”.
The Query Template is:
SAP/BusinessScenarios/IndustryIndependent/QMandShopFloor/QM/GetInspectionLotDetailsByInspLotXQuery
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 119
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 120
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 121
Integrating SAP MII v12.1 with SAP ERP QM
GetInspectionLotSingleResultsByInspLotGrid
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 122
Integrating SAP MII v12.1 with SAP ERP QM
In order to generate the column list properly you have to change the result type in the associated query template to have a value of “Single”.
The Query Template is:
SAP/BusinessScenarios/IndustryIndependent/QMandShopFloor/QM/GetInspectionLotDetailsByInspLotXQuery
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 123
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 124
Integrating SAP MII v12.1 with SAP ERP QM
GetInspectionLotSPCLevelDetailsByInspLotSPCChart
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 125
Integrating SAP MII v12.1 with SAP ERP QM
The Query Template is:
SAP/BusinessScenarios/IndustryIndependent/QMandShopFloor/QM/GetInspectionLotSPCLevelDetailsByInspLotXQuery
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 126
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 127
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 128
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 129
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 130
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 131
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 132
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 133
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 134
Integrating SAP MII v12.1 with SAP ERP QM
Appendix B (Shop Floor)
Transactions
TakeSampleFromControlSystem
The OutputXML property is of type XML and the rest are all Strings.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 135
Integrating SAP MII v12.1 with SAP ERP QM
Incoming Link:
Outgoing Link:
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 136
Integrating SAP MII v12.1 with SAP ERP QM
AsynchronouslyRecordResultsForCharacteristic
ValuePrecision is an Integer type.
All of the local properties are Strings.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 137
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 138
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 139
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 140
Integrating SAP MII v12.1 with SAP ERP QM
Set Input1 to: INSPOPER_GETDETAIL.Response{/BAPI_INSPOPER_GETDETAIL/OUTPUT/RETURN/TYPE} != "E"
*The RES_NO expression is: stringif(ForEachResult.Output{/Row/RESULTNUM}=="",format(Local.RES_NO+1,"0000"),ForEachResult.Output{/Row/RESULTNUM})
On the Outgoing Tab:
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 141
Integrating SAP MII v12.1 with SAP ERP QM
Set TerminationMessage to: "TYPE: " & INSPOPER_GETDETAIL.Response{/BAPI_INSPOPER_GETDETAIL/OUTPUT/RETURN/TYPE} & " MESSAGE: " & INSPOPER_GETDETAIL.Response{/BAPI_INSPOPER_GETDETAIL/OUTPUT/RETURN/MESSAGE} & " from BAPI_INSPOPER_GETDETAIL"
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 142
Integrating SAP MII v12.1 with SAP ERP QM
On the Outgoing Tab:
On the Outgoing Tab:
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 143
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 144
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 145
Integrating SAP MII v12.1 with SAP ERP QM
Set Param.3 to: "TYPE: " & RECORDRESULTS.Response{/BAPI_INSPOPER_RECORDRESULTS/OUTPUT/RETURN/TYPE} & " MESSAGE: " & RECORDRESULTS.Response{/BAPI_INSPOPER_RECORDRESULTS/OUTPUT/RETURN/MESSAGE} & " RETURN TABLE: " & RECORDRESULTS.Response{/BAPI_INSPOPER_RECORDRESULTS/TABLES/RETURNTABLE/item/MESSAGE}
Set the TerminationMessage to:
"TYPE: " & RECORDRESULTS.Response{/BAPI_INSPOPER_RECORDRESULTS/OUTPUT/RETURN/TYPE} & " MESSAGE: " & RECORDRESULTS.Response{/BAPI_INSPOPER_RECORDRESULTS/OUTPUT/RETURN/MESSAGE} & " RETURN TABLE: " & RECORDRESULTS.Response{/BAPI_INSPOPER_RECORDRESULTS/TABLES/RETURNTABLE/item/MESSAGE}
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 146
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 147
Integrating SAP MII v12.1 with SAP ERP QM
Query Templates
GenericCurrentQuery
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 148
Integrating SAP MII v12.1 with SAP ERP QM
TakeSampleFromControlSystemXQuery
The order of the assignment of these parameters is important.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 149
Integrating SAP MII v12.1 with SAP ERP QM
CreateQualityBufferDatabaseTable CREATE TABLE QUALITYBUFFER ( RECORDID INT IDENTITY NOT NULL, INSPECTIONLOT VARCHAR(15), INSPECTIONOPER VARCHAR(15), INSPECTIONCHAR VARCHAR(15), MATERIAL VARCHAR(20), SAMPLEDATETIME DATETIME, INSPECTOR VARCHAR(50), COMMENT VARCHAR(250), MEASVALUE NUMERIC(10, 6), UOM VARCHAR(10), RESULTNUM VARCHAR(4), RESTYPE VARCHAR(15), CREATEDATE DATETIME, RETRYCOUNT INTEGER, LASTRETRY DATETIME, LASTERRORMSG VARCHAR(200), PRIMARY KEY ( RECORDID ) );
DropQualityBufferDatabaseTable
DROP TABLE QUALITYBUFFER
DeleteRecordFromQualityBufferCommand
DELETE FROM QUALITYBUFFER WHERE QUALITYBUFFER.RECORDID = [Param.1]
InsertRecordIntoQualityBufferCommand
INSERT INTO QUALITYBUFFER( QUALITYBUFFER.INSPECTIONLOT, QUALITYBUFFER.INSPECTIONOPER, QUALITYBUFFER.INSPECTIONCHAR, QUALITYBUFFER.MATERIAL, QUALITYBUFFER.SAMPLEDATETIME, QUALITYBUFFER.INSPECTOR, QUALITYBUFFER.COMMENT, QUALITYBUFFER.MEASVALUE, QUALITYBUFFER.UOM, QUALITYBUFFER.RESTYPE, QUALITYBUFFER.CREATEDATE, QUALITYBUFFER.RETRYCOUNT, QUALITYBUFFER.LASTRETRY, QUALITYBUFFER.RESULTNUM) VALUES ( '[Param.1]', '[Param.2]', '[Param.3]', '[Param.4]', '[Param.5]', '[Param.6]', '[Param.7]', [Param.8], '[Param.9]', '[Param.10]', [ED], 0, '[Param.11]', '[Param.12]')
UpdateRecordInQualityBufferCommand UPDATE QUALITYBUFFER SET QUALITYBUFFER.RETRYCOUNT = [Param.2], QUALITYBUFFER.LASTERRORMSG = '[Param.3]', QUALITYBUFFER.LASTRETRY = [ED] WHERE QUALITYBUFFER.RECORDID = [Param.1]
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 150
Integrating SAP MII v12.1 with SAP ERP QM
Display Templates
TakeSampleFromControlSystemGauge
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 151
Integrating SAP MII v12.1 with SAP ERP QM
The Query Template is:
SAP/BusinessScenarios/IndustryIndependent/QMandShopFloor/ShopFloor/TakeSampleFromControlSystemXQuery
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 152
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 153
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 154
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 155
Integrating SAP MII v12.1 with SAP ERP QM
Appendix C (Web Content)
Main Page
Save as QMandShopFloor.irpt <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252" /> <title>Quality Management and the Shop Floor</title> <link type="text/css" rel="stylesheet" href="/XMII/CM/SAP/BusinessScenarios/Common/Stylesheets/CSS/SAP.css" /> <script language="javascript"> //////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////// // Global Variables //////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////// var strDateFormat = "MM/dd/yyyy"; // The date format defined for the sizing of the caleldar pop-up page var maxRows = "150"; // Maximum number of inspection lots returned var subGroupSize = "1"; // Set the sub group size for the SPC Chart analysis //////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////// /******************************************************************************************************************* Site specific methods, these may require modification or adjustment on a case by case basis *******************************************************************************************************************/ // When the page loads check if property values have been passed, if not set defaults and enable changing function startup() { // Check if a material is set from the users session, otherwise set it to a default material if( document.getElementById('txtMat').value == '{materialID}' ) { document.getElementById('txtMat').value = 'R-3007'; // Probably will not want this to default to this material id document.getElementById('txtMat').readOnly = false; } } // Update the gauge information so that it pulls data from the historian for sampling function updateGaugeInformation(inspLot, inspOper, inspChar, resType) { var material = document.getElementById('txtMat').value; var plant = document.getElementById('PlantList').getBrowserObject().getSelectedDatalinkValue(); var aObj = document.getElementById("CurrentValueGauge"); // Additional parameters may be required specific to your plant configuration var qObj = aObj.getQueryObject(); qObj.setParam(1, inspLot); qObj.setParam(2, inspOper); qObj.setParam(3, inspChar); qObj.setParam(4, resType); qObj.setParam(4, material); qObj.setParam(5, plant); aObj.getChartObject().setAutoRefresh(true); aObj.updateChart(true); }
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 156
Integrating SAP MII v12.1 with SAP ERP QM
/******************************************************************************************************************* Generic methods do not modify these methods they are generic for all implementations *******************************************************************************************************************/ // Date Time Picker Popup function function GetDateFromPicker(formElement) { var myDate = document.frmMain[formElement].value; if(myDate == "") myDate = "%20"; var strSize = ""; var strOptions = ""; if (strDateFormat.indexOf(":") > -1) { strSize = "&Height=188"; strOptions = "height=245,width=220"; } else { strSize = "&Height=140"; strOptions = "height=200,width=220"; } var strURL = "/XMII/CM/SAP/BusinessScenarios/Common/Utilities/GetDateTime.irpt?CurrentDate=" + myDate + "&txtInput=" + formElement + strSize; window.open(strURL, "", strOptions); } //Get the list of plants in ECC where the specified material is defined function updatePlants() { var material = document.getElementById('txtMat').value; document.getElementById("PlantList").getQueryObject().setParam(1, material); document.getElementById("PlantList").updateBrowser(true); } // Get the list of open inspection lots that fit the user specified criteria function updateInspLotList() { var material = document.getElementById('txtMat').value; var plant = document.getElementById('PlantList').getBrowserObject().getSelectedDatalinkValue(); var date = document.getElementById('txtDateTime').value; var qObj = document.getElementById("InspLotListGrid").getQueryObject(); qObj.setParam(1, material); qObj.setParam(2, plant); qObj.setParam(3, maxRows); qObj.setStartDate(date); document.getElementById("InspLotListGrid").updateGrid(true); } // Get the list of characteristics for the selected Inspection Lot function updateInspCharList() { var insplot = document.getElementById("InspLotListGrid").getGridObject().getSelectedCellValueByName("INSPLOT"); var qObj = document.getElementById("InspCharacteristics").getQueryObject().setParam(1, insplot); document.getElementById("InspCharacteristics").updateGrid(true); } // Get the detailed result information for the selected characteristic
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 157
Integrating SAP MII v12.1 with SAP ERP QM
function updateInspLotDetails() { var inspLot = document.getElementById("InspLotListGrid").getGridObject().getSelectedCellValueByName("INSPLOT"); var gObj = document.getElementById("InspCharacteristics").getGridObject(); var inspOper = gObj.getSelectedCellValueByName("INSPOPER"); var inspChar = gObj.getSelectedCellValueByName("INSPCHARACTERISTIC"); var resType = gObj.getSelectedCellValueByName("RESULTSTYPE"); var qObj = document.getElementById("InspLotDetailsGrid").getQueryObject(); qObj.setParam(1, inspLot); qObj.setParam(2, inspOper); qObj.setParam(3, inspChar); qObj.setParam(4, resType); switch(resType) { case "Single": document.getElementById("InspLotDetailsGrid").setDisplayTemplate("SAP/BusinessScenarios/IndustryIndependent/QMandShopFloor/QM/GetInspectionLotSingleResultsByInspLotGrid"); break; case "Sample": document.getElementById("InspLotDetailsGrid").setDisplayTemplate("SAP/BusinessScenarios/IndustryIndependent/QMandShopFloor/QM/GetInspectionLotSampleResultsByInspLotGrid"); break; case "Characteristic": document.getElementById("InspLotDetailsGrid").setDisplayTemplate("SAP/BusinessScenarios/IndustryIndependent/QMandShopFloor/QM/GetInspectionLotCharResultsByInspLotGrid"); break; default: break; } document.getElementById("InspLotDetailsGrid").updateGrid(true); // Set the gauge information for sampling updateGaugeInformation(inspLot, inspOper, inspChar, resType); } // Write the value from the gauge into the QM module based on what's selected function storeToSAP() { var date = document.getElementById("InspLotListGrid").dateNow(); var value = document.getElementById("CurrentValueGauge").getChartObject().getYDataValueAt(1,1); var inspLot = document.getElementById("InspLotListGrid").getGridObject().getSelectedCellValueByName("INSPLOT"); var dgObj = document.getElementById("InspLotDetailsGrid").getGridObject(); var uom = dgObj.getCellValueByName(1, "UOM"); var resNum = dgObj.getSelectedCellValueByName("RESNUM"); var gObj = document.getElementById("InspCharacteristics").getGridObject(); var inspOper = gObj.getSelectedCellValueByName("INSPOPER"); var inspChar = gObj.getSelectedCellValueByName("INSPCHARACTERISTIC"); var resType = gObj.getSelectedCellValueByName("RESULTSTYPE");
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 158
Integrating SAP MII v12.1 with SAP ERP QM
var material = document.getElementById("txtMat").value; var plant = document.getElementById("PlantList").getBrowserObject().getSelectedDatalinkValue(); var comment = document.getElementById("commentArea").value; // Get the inspector based on the logged in name var inspector = document.getElementById("InspLotListGrid").getPropertyValue("IllumLoginName"); //alert("Date: "+date+" value: "+value+" InspLot: "+inspLot+" InspOper: "+inspOper+" InspChar: "+inspChar); var qObj = document.getElementById("StoreMeasuredValueToSAP").getQueryObject(); qObj.setParam(1, inspLot); qObj.setParam(2, inspOper); qObj.setParam(3, inspChar); qObj.setParam(4, material); qObj.setParam(5, date); qObj.setParam(6, inspector); qObj.setParam(7, comment); qObj.setParam(8, value); qObj.setParam(9, uom); qObj.setParam(10, resType); qObj.setParam(11, date); qObj.setParam(12, resNum); // If a result is selected in the details grid then prompt to overwrite that result, otherwise write to the next available Single result in the last Sample if(resNum != "") { if(confirm("Would you like to overwrite the selected result value in the details grid.\nWarning: Since a detail row is selected, this will overwrite the minor number result for the last Sample and necessarily the value you have selected.")) { if(document.getElementById("StoreMeasuredValueToSAP").executeCommand()) { alert("Result written successfully."); } else { alert("Error storing result to QM Buffer: " + document.getElementById("StoreMeasuredValueToSAP").getLastError()); } } else { alert("Please unselect the row in the details grid before continuing."); } } else { if(document.getElementById("StoreMeasuredValueToSAP").executeCommand()) { alert("Result written successfully."); } else { alert("Error storing result to QM Buffer: " + document.getElementById("StoreMeasuredValueToSAP").getLastError()); } } } // Build the SPC Chart URL function buildSPCURL() { var URL = ""; var gObj = document.getElementById("InspCharacteristics").getGridObject(); var inspOper = gObj.getSelectedCellValueByName("INSPOPER"); var inspChar = gObj.getSelectedCellValueByName("INSPCHARACTERISTIC");
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 159
Integrating SAP MII v12.1 with SAP ERP QM
// Get the type of results to display and define the value column for the SPC chart dynamically var resType = gObj.getSelectedCellValueByName("RESULTSTYPE"); var valueColumn = "VALUE"; if(resType != "Single") { valueColumn="MEANVALUE"; } URL = "QMandShopFloorSPC.irpt?Param2="+inspOper+"&Param3="+inspChar+"&Param4="+resType+"&ValueCol="+valueColumn+"&subGrpSze="+subGroupSize; return URL; } // Open up an SPC chart for analysis of the Inspection Lot Characteristic Details function showSPCAnalysis() { var URL = buildSPCURL(); var labelDepth = "1"; var inspLot = document.getElementById("InspLotListGrid").getGridObject().getSelectedCellValueByName("INSPLOT"); URL += "&Param1="+inspLot+"&lblDepth="+labelDepth; URL += "&QueryTempl=SAP/BusinessScenarios/IndustryIndependent/QMandShopFloor/QM/GetInspectionLotSPCLevelDetailsByInspLotXQuery"; window.open(URL, "", "height=560,width=770,status=yes,toolbar=no,menubar=no,location=no"); } // Open up an SPC chart for analysis of multiple Inspection Lot Characteristic Details function showSPCCrossLotAnalysis() { var material = document.getElementById("txtMat").value; var plant = document.getElementById("PlantList").getBrowserObject().getSelectedDatalinkValue(); var date = document.getElementById('txtDateTime').value; var labelDepth = "3"; var URL = buildSPCURL(); URL += "&Param1="+material+"&Param5="+plant+"&Param6="+maxRows+"&SinceDate="+date+"&lblDepth="+labelDepth; URL += "&QueryTempl=SAP/BusinessScenarios/IndustryIndependent/QMandShopFloor/QM/GetMaterialSPCLevelDetailsByInspLotXQuery"; window.open(URL, "", "height=560,width=770,status=yes,toolbar=no,menubar=no,location=no"); } // Export the inspection characteristic details to CSV format function exportDetailsToCSV() { document.getElementById("InspLotDetailsGrid").saveAsCSVFile(); } </script> </head> <body onload="startup()"> <form name="frmMain"> <table cellpadding="1" cellspacing="0" border="1" id="tblMain" class="tblmain" width="770">
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 160
Integrating SAP MII v12.1 with SAP ERP QM
<tr> <td colspan="2" align="center" class="PageSmHeader">Shop Floor Quality Management</td> </tr> <tr> <td class="tdBody" colspan="2"> <table border="0" width="100%" id="table4"> <tr> <td class="tdCellItem">Material:</td> <td class="tdCellItem"><input type="text" value="{materialID}" id="txtMat" name="txtMat" size="15" readonly></td> <td class="tdCellItem"> <input type="button" value="Get Plants" onclick="updatePlants()"></td> <td class="tdCellItem">Plant:</td> <td class="tdCellItem"> <applet name="PlantList" width="120" height="18" code="iBrowser" codebase="/XMII/Classes" archive="illum8.zip" mayscript> <param name="QueryTemplate" value="SAP/BusinessScenarios/IndustryIndependent/QMandShopFloor/QM/GetPlantsForMaterialXQuery" /> <param name="DisplayTemplate" value="SAP/BusinessScenarios/IndustryIndependent/QMandShopFloor/QM/GetPlantsForMaterialBrowser" /> <param name="InitialUpdate" value="false" /> </applet> </td> <td class="tdCellItem">Since Date:</td> <td class="tdCellItem" align="left"> <input type="text" name="txtDateTime" id="txtDateTime" size="18" class="txtField" value="" readonly> <a> <img src="/XMII/CM/SAP/BusinessScenarios/Common/Images/calendar.gif" border="1" style="cursor:hand;" onclick="GetDateFromPicker('txtDateTime')" alt="Show Calendar" width="13" height="13" align="middle"></a></td> <td class="tdCellItem"> <input type="button" value="Get Insp Lots" onclick="updateInspLotList()"></td> </tr> </table> </td> </tr> <tr> <td colspan="2" align="center" class="tdHeader">Open Inspection Lots</td> </tr> <tr> <td colspan="2" align="center" class="tdBody"> <applet name="InspLotListGrid" width="770" height="110" code="iGrid" codebase="/XMII/Classes" archive="illum8.zip" mayscript> <param name="QueryTemplate" value="SAP/BusinessScenarios/IndustryIndependent/QMandShopFloor/QM/GetInspectionLotListByPlantAndMaterialXQuery" /> <param name="DisplayTemplate" value="SAP/BusinessScenarios/IndustryIndependent/QMandShopFloor/QM/GetInspectionLotListByPlantAndMaterialGrid" /> <param name="InitialUpdate" value="false" /> <param name="SelectionEvent" value="updateInspCharList" /> </applet>
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 161
Integrating SAP MII v12.1 with SAP ERP QM
</td> <tr> <tr> <td colspan="2" class="tdHeader">Inspection Lot Result Types</td> </tr> <tr> <td colspan="2" class="tdBody"> <applet name="InspCharacteristics" width="770" height="110" code="iGrid" codebase="/XMII/Classes" archive="illum8.zip" mayscript> <param name="QueryTemplate" value="SAP/BusinessScenarios/IndustryIndependent/QMandShopFloor/QM/GetCharacteristicsForInspectionLotXQuery" /> <param name="DisplayTemplate" value="SAP/BusinessScenarios/IndustryIndependent/QMandShopFloor/QM/GetCharacteristicsForInspectionLotGrid" /> <param name="InitialUpdate" value="false" /> <param name="SelectionEvent" value="updateInspLotDetails" /> </applet> </td> </tr> <tr> <td align="center" id="inspLotDetailsTitle" class="tdHeader">Details for Inspection Lot</td> <td align="center" id="CurrentValueTitle" class="tdHeader">Current Value</td> </tr> <tr> <td align="left" class="tdBody"> <applet name="InspLotDetailsGrid" width="540" height="230" code="iGrid" codebase="/XMII/Classes" archive="illum8.zip" mayscript> <param name="QueryTemplate" value="SAP/BusinessScenarios/IndustryIndependent/QMandShopFloor/QM/GetInspectionLotDetailsByInspLotXQuery" /> <param name="DisplayTemplate" value="SAP/BusinessScenarios/IndustryIndependent/QMandShopFloor/QM/GetInspectionLotSingleResultsByInspLotGrid" /> <param name="InitialUpdate" value="false" /> </applet></td> <td align="center" class="tdBody" rowspan="2"> <table border="0" width="100%" id="table5"> <tr> <td colspan="2" align="center" class="tdBody"> <applet name="CurrentValueGauge" width="215" height="215" code="iChart" codebase="/XMII/Classes" archive="illum8.zip" mayscript> <param name="QueryTemplate" value="SAP/BusinessScenarios/IndustryIndependent/QMandShopFloor/ShopFloor/TakeSampleFromControlSystemXQuery" /> <param name="DisplayTemplate" value="SAP/BusinessScenarios/IndustryIndependent/QMandShopFloor/ShopFloor/TakeSampleFromControlSystemGauge" /> <param name="InitialUpdate" value="false" /> </applet></td> </tr> <tr align="center"> <td class="tdCellItem">Comment:</td> <td class="tdBody"> <input type="text" name="commentArea" id="commentArea" size="23"></td> </tr>
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 162
Integrating SAP MII v12.1 with SAP ERP QM
<tr align="center"> <td colspan="2"> <input type="button" value="Store Value to SAP" onclick="storeToSAP()" /></td> </tr> </table> </td> </tr> <tr> <td class="tdBody"> <table border="0" width="100%"> <tr> <td width="20%"></td> <td width="20%"><input type="button" value="Single Lot Analysis" onclick="showSPCAnalysis()" /></td> <td width="20%"><input type="button" value="Cross Lot Analysis" onclick="showSPCCrossLotAnalysis()" /></td> <td width="20%"><input type="button" value="Export Details to CSV" onclick="exportDetailsToCSV()" /></td> <td width="20%"></td> </tr> </table> </td> </tr> </table> </form> <applet name="StoreMeasuredValueToSAP" width="1" height="1" code="iCommand" codebase="/XMII/Classes" archive="illum8.zip" mayscript> <param name="QueryTemplate" value="SAP/BusinessScenarios/IndustryIndependent/QMandShopFloor/ShopFloor/Modify/InsertRecordIntoQualityBufferCommand"> </applet> </body> </html>
SPC Results
Save as QMandShopFloorSPC.irpt <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>SPC Inspection Lot Analysis</title> <link type="text/css" rel="stylesheet" href="/XMII/CM/SAP/BusinessScenarios/Common/Stylesheets/CSS/SAP.css" /> <script language="javascript"> // Show the user the raw data queried by the SPC chart function showRawData() { document.getElementById("SPCChart").showDetail(); } // Show the user the SPC Results Summary for the SPC chart data function showSPCResultsData() { document.getElementById("SPCChart").showStatistics(); } // Export the raw SPC data to CSV format function exportSPCDataToCSV() { document.getElementById("SPCChart").saveSPCAsCSVFile();
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 163
Integrating SAP MII v12.1 with SAP ERP QM
} </script> </head> <body> <table cellpadding="1" cellspacing="0" border="1" id="tblMain" class="tblmain"> <tr><td align="center" class="PageSmHeader">SPC Lot Analysis</td></tr> <tr> <td class="tdBody"> <APPLET NAME="SPCChart" CODEBASE="/XMII/Classes" CODE="iSPCChart" ARCHIVE="illum8.zip" WIDTH="745" HEIGHT="450" MAYSCRIPT> <PARAM NAME="QueryTemplate" VALUE='{QueryTempl}'> <PARAM NAME="DisplayTemplate" VALUE="SAP/BusinessScenarios/IndustryIndependent/QMandShopFloor/QM/GetInspectionLotSPCLevelDetailsByInspLotSPCChart"> <param name="ValueColumns" value='{ValueCol}'> <param name="Param.1" value='{Param1}'> <param name="Param.2" value='{Param2}'> <param name="Param.3" value='{Param3}'> <param name="Param.4" value='{Param4}'> <param name="Param.5" value='{Param5}'> <param name="Param.6" value='{Param6}'> <param name="QueryStartDate" value='{SinceDate}'> <param name="SubgroupSize" value='{subGrpSze}'> <param name="XAxisLabelDepth" value='{lblDepth}'> </APPLET> </td> </tr> <tr> <td class="tdBody"> <table border="0" width="100%"> <tr> <td align="center" width="20%"></td> <td align="center" width="20%"><input type="button" value="Raw Data Detail" onclick="showRawData()" /></td> <td align="center" width="20%"><input type="button" value="Export SPC Results to CSV" onclick="exportSPCDataToCSV()" /></td> <td align="center" width="20%"><input type="button" value="Close" onclick="javascript:window.close();" /></td> <td align="center" width="20%"></td> </tr> </table> </td> </tr> </table> </body> </html>
Calendar
Save as GetDateTime.irpt, the image associated with this popup, calendar.gif, is something that you will have to create on your own. The location referenced for this icon by the project is: SAP/WEB/BusinessScenarios/Common/Images/calendar.gif <html> <head> <title>Select Date/Time</title> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/> <meta http-equiv="Expires" content="0"/>
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 164
Integrating SAP MII v12.1 with SAP ERP QM
<meta http-equiv="Cache-Control" content="no-cache"/> <meta http-equiv="Pragma" content="no-cache"/> <link rel="stylesheet" type="text/css" href="/XMII/CM/SAP/BusinessScenarios/Common/Stylesheets/CSS/SAP.css"> <script Language="javascript" type="text/javascript"> var strDateFormat = "MM/dd/yyyy"; function InitPage(strDate) { //Set window timeout window.setTimeout('window.close();',30000); window.moveTo(250,250); //Set calendar to associated date //strDateFormat = strFormat; if(strDate.length > 0) { document.Calendar.setDate(strDate,strDateFormat); } } function SetToToday() { document.Calendar.setToCurrentTime(); } function UpdateOpener(formElement) { //Get selected date and time from Calendar var selDate = document.Calendar.getDateAsString(strDateFormat); //Update appropriate calling form element with new date opener.document.getElementById(formElement).value = selDate; window.close(); } </script> </head> <body onLoad="InitPage('{CurrentDate}');" valign="top"> <center> <table border="0"> <tr> <td align="center" width="205px" class="Header"> <APPLET NAME="Calendar" WIDTH="200" HEIGHT="{Height}" CODE="iCalendar" CODEBASE="/XMII/Classes" ARCHIVE="illum8.zip" MAYSCRIPT> </APPLET> </td> </tr> <tr> <td align="center"> <input type="button" style="width:60px" value="OK" name="btnOK" id="btnOK" onClick="UpdateOpener('{txtInput}');"> <input type="button" style="width:60px" value="Today" name="btnToday" id="btnToday" onClick="SetToToday();"> <input type="button" style="width:60px" value="Cancel" name="btnCancel" id="btnCancel" onClick="window.close();"> </td> </tr> </table> </center> </body>
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 165
Integrating SAP MII v12.1 with SAP ERP QM
</html>
CSS
Save as SAP.css .DetailTable{ } .DetailHeader{ } .Detail{ font: 8pt verdana; color: #000000; background-color: #FFFFFF; } .ERROR{ font: 8pt verdana; color: #FFFFFF; background-color: #990000; } .DetailHeaderData{ font: 8pt verdana; color: #000000; background-image: url('/Lighthammer/Images/bluebackground.jpg'); background-repeat: repeat-x; } .DetailData{ font: 8pt verdana; color: #000000; } .DetailHyperLink{ font: 8pt verdana; color: #000099; } .SCROLLAREA{ border: 1px solid; background-color: #FFFFFF; overflow: auto; overflow-x: scroll; overflow-y: scroll; text-align: left; } .buttonText{ font: 8pt verdana; color: #000000; } .Header{ font: bold 9pt verdana; color: #000000; } .Footer{ font: italic 8pt verdana; color: #000000; } A:active{ font: 8pt verdana; color: #000099; } A:visited{ font: 8pt verdana;
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 166
Integrating SAP MII v12.1 with SAP ERP QM
color: #000099; } A{ font: 8pt verdana; color: #000099; } BODY{ font: 8pt verdana; } H1{ font: normal 18pt verdana; } H2{ font: bold 12pt verdana; } H3{ font: bold italic 8pt verdana; } TH{ font: 8pt verdana; } TD{ font: 8pt verdana; } P{ font: 8pt verdana; } I{ font: 8pt verdana; } SELECT{ font: 8pt verdana; } INPUT{ font: 8pt verdana; } .PageSmHeader{ font: 14pt verdana; background-color: #003366; color: #FFFFFF; } .tdSubHeader{ font: bold 11pt verdana; background-color: #999999; } .tdSubSmHeader{ font: 8pt verdana; background-color: #CCCCCC; } .tdAppletHeader{ font: bold 8pt verdana; text-align: center; color: #000000; background-color: #CCCCCC; padding: 2px 0px 2px 0px; } .SAPTable{ border: 1px solid #000000;
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 167
Integrating SAP MII v12.1 with SAP ERP QM
} /* ------------ SAP Style Example ---------------*/ .tdHeader{ text-align: center; background-color: #FF9900; color: #ffffff; font: bold 12px verdana; padding: 4px 0px 4px 0px; border: 1px solid #000000; } /* set the formatting of the main table */ .tblMain{ border: 1px solid #000000; } /* set the formatting of the header and title */ .tdHeader{ text-align: center; background-color: #FF9900; color: #ffffff; font: bold 12px verdana; padding: 4px 0px 4px 0px; border: 1px solid #000000; } .tdHeader2{ text-align: center; background-color: #FF9900; color: #003366; font: bold 12px verdana; padding: 4px 0px 4px 0px; border: 1px solid #000000; } /* set the formatting of middle part of the table (body) where most display and user interactions will occur */ .tdBody{ background-color: #CCCCCC; } /* set the formatting of the footer where button will reside to supplement functionality */ .tdFooter{ background-color: #003366; } /* formatting for individual text cells corresponding to selection boxes, drop downs, etc */ .txtCell{ text-align: right; font: 10px verdana; color: #003366; } /* formatting for individual cells where the selection boxes, drop downs, etc are located */ .tdCellItem{ font: 10px verdana; padding-left: 4px; color: #003366; } /* formatting for individual text boxes where user types */ .txtField{ border: 1px solid #CC6600;
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 168
Integrating SAP MII v12.1 with SAP ERP QM
background-color: #ffffff; color: #003366; font: 10px verdana; } /* formatting for individual selection boxes where user selects drop down items */ .selField{ border: 1px solid #FF9900; background-color: #ffffff; color: #003366; font: 10px verdana; } /* formatting for individual text area where user types */ .txtArea{ border: 1px solid #CC6600; background-color: #ffffff; color: #003366; width: 200px; height: 40px; font: 10px verdana; } /* formatting for buttons */ .buttons{ border: 1px solid #CC6600; background-color: #ffffff; color: #003366; font: 10px verdana; cursor: hand; } .PageTitleBar { BACKGROUND-COLOR: #003366; FONT-SIZE: 14; FONT-WEIGHT: bold; TEXT-ALIGN: center; COLOR: white; } .PageSubTitleBar { BACKGROUND-COLOR: #999999; FONT-SIZE: 14; FONT-WEIGHT: bold; TEXT-ALIGN: center; COLOR: black; } .PageSubText { FONT-SIZE: 12; FONT-WEIGHT: bold; TEXT-ALIGN: center; COLOR: black; } .EditorTitleBar { color:white; background-color:#003366;
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 169
Integrating SAP MII v12.1 with SAP ERP QM
font-size:18; } .EditorInputLabel { font-size:12; font-weight:bold; text-align:right; } .EditorInputBox { font-size:12; font-weight:normal; text-align:left; height:23px; width:250px; } .EditorTextArea { font-size:12; font-weight:normal; } /*------------------------------------------*/
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 170
Integrating SAP MII v12.1 with SAP ERP QM
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 171
Copyright © Copyright 2009 SAP AG. All rights reserved.
No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice.
Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors.
Microsoft, Windows, Excel, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation.
IBM, DB2, DB2 Universal Database, System i, System i5, System p, System p5, System x, System z, System z10, System z9, z10, z9, iSeries, pSeries, xSeries, zSeries, eServer, z/VM, z/OS, i5/OS, S/390, OS/390, OS/400, AS/400, S/390 Parallel Enterprise Server, PowerVM, Power Architecture, POWER6+, POWER6, POWER5+, POWER5, POWER, OpenPower, PowerPC, BatchPipes, BladeCenter, System Storage, GPFS, HACMP, RETAIN, DB2 Connect, RACF, Redbooks, OS/2, Parallel Sysplex, MVS/ESA, AIX, Intelligent Miner, WebSphere, Netfinity, Tivoli and Informix are trademarks or registered trademarks of IBM Corporation.
Linux is the registered trademark of Linus Torvalds in the U.S. and other countries.
Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registered trademarks of Adobe Systems Incorporated in the United States and/or other countries.
Oracle is a registered trademark of Oracle Corporation.
UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group.
Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc.
HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C®, World Wide Web Consortium, Massachusetts Institute of Technology.
Java is a registered trademark of Sun Microsystems, Inc.
JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape.
SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP Business ByDesign, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries.
Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, and other Business Objects products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Business Objects S.A. in the United States and in other countries. Business Objects is an SAP company.
All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.
These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.