SDNContribution©2006SAPAG1SAPQM-IDIInterfaceAppliesto:SAPQMInterfacesSummaryAdescriptionofthestepsneededtoactivateacommunicationbetweenQualitymanagementandanexternalsystemusingtheQM-IDIprotocol.Thisdocumentcontainsonlythemandatoryactionsanddefinitiontohavethesystemworking.Forcomplexproblemthisisonlythestartpoint.Themajoreffortshouldbespentontheexternalsystemcreatingtheapplicationprogramneededtointerfacethefunctionalityoftheexternalsystem(usuallyaLIMSsystem).ThisdocumentshowshowtoconfiguretheQM-IDIinterfaceinrelease4.6C.Author(s):AveekGhoseCompany:IBMIndiaCreatedon:23May2006AuthorBioAveekGhosehas12yearsofITexperienceandhasworkedacrosstheglobeinSAPImplementations.AveekhasanMSinInformationSystemsfromGeorgeMasonUniversityinUSAandaMSinEconomicsfromVirginiaTechinUSAandiscurrentlyworkingforIBMIndia.TableofContentsDefineQM-IDISubsystem...............................................................................................................2DefineaWorkCenter......................................................................................................................3CreateanInspectionPlan...............................................................................................................5CreatetheInspectionLot.................................................................................................................8Readytotransferdata?.................................................................................................................11SampleCommunicationProgram..................................................................................................14Runtheinterface...........................................................................................................................19DisclaimerandLiabilityNotice.......................................................................................................20DefineQM-IDISubsystemIncustomizingoftheSAPQMmodulethesubsystemconnectionmustbeidentified.©2006SAPAG2MakethedescribedchoiceSelectDefineSubsystemConnectionforQM-IDIInterface.Ifthisisthefirstsubsystemintheenvironment,thefollowingscreenappear.Fillintherequiredinformation.Andsaveyourentry.DefineaWorkCenterInSAPQM-IDIinterfacethecommunicationisactivatedatworkcenterlevelandit’satthislevelthattheQDRsystemisdefined.Inthesameinspectionplanorroutingitispossibletodefinemorethanasinglesubsystem.Inthiswayyoucanidentifyasmanyexternalsystemsasyouneed.©2006SAPAG3Inthefollowingexampleasimpleworkcenter,withoutconfirmationorcostaccountingisdefined.Theonlypurposeistoidentifythesubsystemitselffortheoperation.©2006SAPAG4Theworkcentercategoryhasbeendefinedinordertohaveaworkcenterwithoutadditionaldata.IntheQDRsystementerthesubsystemIDpreviouslydefined.CreateanInspectionPlan©2006SAPAG5InourexampleasimpleInspectionplanisneeded.Onlyanheader,anoperationandacharacteristicaredescribedintheexamplethatfollowPressenterwithoutenteringanydata.©2006SAPAG6Intheheaderenterthemandatoryinfo:Inspectionplandescription,usage,statusandUnitofMeasure.AddanOperationusingtheWorkCenterpreviouslydefinedandQM01controlkey.©2006SAPAG7AtCharacteristiclevel(undertheoperation)asimpleinspectioncharacteristicisdefinedasfollow:Beforeleaving,amaterialhastobeassignedtotheinspectionplan.CreatetheInspectionLotTheQM-IDIinterfaceallowsexternalsystemtowriteinSAPinspectionresultscollectedbytheexternalsystemitself.©2006SAPAG8Theinspectionresultstakeplaceintheinspectionlot.Forthematerialtestrohthestandardinspectiontype01isactivesotheInspectionlotwithorigin01canbecreated.©2006SAPAG9Completetherequiredinformation.AndcheckfortheassignmentoftheInspectionplan.©2006SAPAG10Readytotransferdata?Nowtheenvironmentshouldbereadytotransferdata.InthefirststepdatashouldbetransferredfromSAPtosub-systemandthantherelevantresultsshouldbetransferredback.©2006SAPAG11Firstitispossibletocheckiftheinspectionlothasbeencorrectlycreated:Entertheinspectionlotnumberandpressenter.Theinspectionlotisreadytoreceivetheresult.Theinspectionlothasbeencorrectlycreated.©2006SAPAG12Asecondcheckshouldbecarriedout.TheQM-IDIinterfaceusealogfiletoregistertheoperationunuploadinganddownloadingdatabetweenSAPandsubsystems.Thenameofthelog-fileisQIWL.It’spossibletocheckthissituationusingSE16transaction.PressF8(Execute)toseetheentirecontent.©2006SAPAG13ThetablecontainsthecontrolrecordfortheoperationdefinedforthesubsystemfortheInspectionlotjustcreated.SampleCommunicationProgramTheQM-IDIprotocolisasetoffunctionmodulesthatcanbeusedbythesubsystemtocommunicatewithSAP.Thesubsystemcanusetwotypesoffunctionmodules:asetfordownloadingdataandasetforuploadingdatathroughRFCtechnique.It’spossibletocreateasamplecommunicationprogramusingSAPutilities.ThesampleprogramisdownloadedfromSAPinsourceformatinCorVisualBasiclanguage.©2006SAPAG14ForthisreasonaCorVisalBasiccompilerisneededontheclientsystem.ThefileneededtocompilethesampleprogramandthenecessaryDynamicLinkLibraryareintheSAPGUICD-Romandhavetobeinstalledonthesubsystemrunningthesampleprogram.Tocreatethesamplesourcefileproceedasfollow:Selectt