interface qm

Upload: akil-perwez

Post on 02-Jun-2018

288 views

Category:

Documents


11 download

TRANSCRIPT

  • 8/10/2019 Interface Qm

    1/20

    SDN Contr ibuti on

    2006 SAP AG 1

    SAP QM-IDI Interface

    Appl ies to :

    SAP QM Interfaces

    Summary

    A description of the steps needed to activate a communication between Quality management and anexternal system using the QM-IDI protocol.

    This document contains only the mandatory actions and definition to have the system working. For complexproblem this is only the start point.

    The major effort should be spent on the external system creating the application program needed to interfacethe functionality of the external system (usually a LIMS system).

    This document shows how to configure the QM-IDI interface in release 4.6C.

    Author(s): Aveek Ghose

    Company: IBM India

    Created on: 23 May 2006

    Author Bio Aveek Ghose has 12 years of IT experience and has worked across the globe in SAP Implementations. Aveek has an MS in Information Systems from George Mason University in USA and a MS in Economicsfrom Virginia Tech in USA and is currently working for IBM India.

  • 8/10/2019 Interface Qm

    2/20

    Table of Contents

    Define QM-IDI Subsystem............................................................................................................... 2

    Define a Work Center ...................................................................................................................... 3

    Create an Inspection Plan ............................................................................................................... 5

    Create the Inspection Lot................................................................................................................. 8

    Ready to transfer data? ................................................................................................................. 11

    Sample Communication Program.................................................................................................. 14

    Run the interface ........................................................................................................................... 19

    Disclaimer and Liability Notice....................................................................................................... 20

    Define QM-IDI Subsystem

    In customizing of the SAP QM module the subsystem connection must be identified.

    2006 SAP AG 2

  • 8/10/2019 Interface Qm

    3/20

    Make the described choice

    Select Define Subsystem Connection for QM-IDI Interface.

    If this is the first subsystem in the environment, the following screen appear.

    Fill in the required information.

    And save your entry.

    Define a Work CenterIn SAP QM-IDI interface the communication is activated at work center level and its at this level that theQDR system is defined.

    In the same inspection plan or routing it is possible to define more than a single subsystem.

    In this way you can identify as many external systems as you need.

    2006 SAP AG 3

  • 8/10/2019 Interface Qm

    4/20

    In the following example a simple work center, without confirmation or cost accounting is defined. The onlypurpose is to identify the subsystem itself for the operation.

    2006 SAP AG 4

  • 8/10/2019 Interface Qm

    5/20

    The work center category has been defined in order to have a work center without additional data.

    In the QDR system enter the subsystem ID previously defined.

    Create an Inspection Plan

    2006 SAP AG 5

  • 8/10/2019 Interface Qm

    6/20

    In our example a simple Inspection plan is needed. Only an header, an operation and a characteristic aredescribed in the example that follow

    Press enter without entering any data.

    2006 SAP AG 6

  • 8/10/2019 Interface Qm

    7/20

  • 8/10/2019 Interface Qm

    8/20

    At Characteristic level (under the operation) a simple inspection characteristic is defined as follow:

    Before leaving, a material has to be assigned to the inspection plan.

    Create the Inspection Lot

    The QM-IDI interface allows external system to write in SAP inspection results collected by the externalsystem itself.

    2006 SAP AG 8

  • 8/10/2019 Interface Qm

    9/20

    The inspection results take place in the inspection lot.

    For the material test roh the standard inspection type 01 is active so the Inspection lot with origin 01 can be

    created.

    2006 SAP AG 9

  • 8/10/2019 Interface Qm

    10/20

    Complete the required information.

    And check for the assignment of the Inspection plan.

    2006 SAP AG 10

  • 8/10/2019 Interface Qm

    11/20

    Ready to transfer data?

    Now the environment should be ready to transfer data. In the first step data should be transferred from SAPto sub-system and than the relevant results should be transferred back.

    2006 SAP AG 11

    First it is possible to check if the inspection lot has been correctly created:

    Enter the inspection lot number and press enter.

  • 8/10/2019 Interface Qm

    12/20

    The inspection lot is ready to receive the result. The inspection lot has been correctly created.

    2006 SAP AG 12

  • 8/10/2019 Interface Qm

    13/20

    A second check should be carried out.

    The QM-IDI interface use a log file to register the operation un uploading and downloading data betweenSAP and subsystems.

    The name of the log-file is QIWL .

    Its possible to check this situation using SE16 transaction.

    Press F8 (Execute) to see the entire content.

    2006 SAP AG 13

  • 8/10/2019 Interface Qm

    14/20

    The table contains the control record for the operation defined for the subsystem for the Inspection lot just

    created.

    Sample Communication Program

    The QM-IDI protocol is a set of function modules that can be used by the subsystem to communicate withSAP.

    The subsystem can use two types of function modules: a set for downloading data and a set for uploadingdata through RFC technique.

    Its possible to create a sample communication program using SAP utilities. The sample program is

    downloaded from SAP in source format in C or VisualBasic language.

    2006 SAP AG 14

  • 8/10/2019 Interface Qm

    15/20

    For this reason a C or VisalBasic compiler is needed on the client system. The file needed to compile thesample program and the necessary Dynamic Link Library are in the SAPGUI CD-Rom and have to beinstalled on the subsystem running the sample program.

    To create the sample source file proceed as follow:

    Select the Function builder function.

    2006 SAP AG 15

  • 8/10/2019 Interface Qm

    16/20

    Choose a QM-IDI function module. These function modules can be easily identified because of the prefix

    QIRF_.

    2006 SAP AG 16

  • 8/10/2019 Interface Qm

    17/20

    Display the function module and select Utilities RFC Interface Generate

    Repeat this operation for all the function module you need in the sample source file.

    2006 SAP AG 17

  • 8/10/2019 Interface Qm

    18/20

    Select the language of the example source file you need. In the example below the ANSI C client version hasbeen selected.

    When you decide to download the source code the destination directory must be defined:

    2006 SAP AG 18

  • 8/10/2019 Interface Qm

    19/20

    The source and the include files are downloaded to the defined directories.

    In the above example, the download source code.

    Run the Interface

    The program must be compiled with the relevant DLL files from the SDK section of the SAPGUI CD-ROM.

    2006 SAP AG 19

  • 8/10/2019 Interface Qm

    20/20

    If the PC is connected to a LAN and the SAP application server is available it is possible to start immediatelythe communication.

    The user interface is of char type (line command) and run in a DOS window. A valid logon is required tostart the communication.

    All the detail about the interface can be found in the documentation; both the on-line and the Print files.

    All the function modules and the communication structures are described in detail.

    Disclaimer and Liabili ty Notice

    This document may discuss sample coding or other information that does not include SAP official interfacesand therefore is not supported by SAP. Changes made based on this information are not supported and canbe overwritten during an upgrade.

    SAP will not be held liable for any damages caused by using or misusing the information, code or methodssuggested in this document, and anyone using these methods does so at his/her own risk.

    SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content ofthis technical article or code sample, including any liability resulting from incompatibility between the contentwithin this document and the materials and services offered by SAP. You agree that you will not hold, orseek to hold, SAP responsible or liable with respect to the content of this document.

    2006 SAP AG 20