connect ewm to use ecc qm

3
8/10/2019 Connect EWM to Use ECC QM http://slidepdf.com/reader/full/connect-ewm-to-use-ecc-qm 1/3 Number 1278425 Version 4 Processor Processing Status new Implement. Status Cannot be implemented Language EN Short Text Connecting ERP QM to EWM Component SCM-EWM-QM Quality Management ________________________________________________________________________ Long Text Symptom You are working with quality management in Extended Warehouse Management (EWM) and you want to use the ERP QM function for inspection processing. This note describes how to configure your EWM system so that ERP receives inspection documents. Reason and Prerequisites Solution EWM-QM gives you the option to carry out product checks using ERP-QM and links this using a queued remote function call (qRFC) as with the other interfaces. You must make the following settings in EWM Customizing for this scenario to work: Cross-Application Components => Quality Inspection Engine => Central Settings => Communication with an External QM System => Define Ex ternal QM Systems Select the QM system provided by SAP: SAP_ERP_QM and choose "Installations". Define an installation by entering the business key of the ERP system in the "Installation" field. Extended Warehouse Management => Cross-Process Settings => Quality Management => Basics => Warehouse-Dependent Activation of Inspectio n Object Type Maintain the fields "External QM System" (SAP_ERP_QM) and "Installation". You must implement the Business Add-In (BAdI) QPLEXT_COMM_TEC in the ERP system so that ERP returns the check results accordingly usin g qRFC. Sample code for the implementation can be found below: Technical background: EWM uses the Quality Inspection Engine (QIE) to manage inspection documents. By default, this has an XI interface for connections to e xternal systems. This can be changed to qRFC using the BAdI QIE_EX_COMMUNICATION, and the RFC destination must be determined here also . SAP Note No. 1278425 27.11.2014 Page 1 ________________________________________________________________________

Upload: sheriffscribd

Post on 02-Jun-2018

382 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Connect EWM to Use ECC QM

8/10/2019 Connect EWM to Use ECC QM

http://slidepdf.com/reader/full/connect-ewm-to-use-ecc-qm 1/3

Number 1278425Version 4

ProcessorProcessing Status newImplement. Status Cannot be implemented

Language ENShort Text Connecting ERP QM to EWM

Component SCM-EWM-QM Quality Management ________________________________________________________________________

Long Text

Symptom

You are working with quality management in Extended Warehouse Management(EWM) and you want to use the ERP QM function for inspection processing.This note describes how to configure your EWM system so that ERPreceives inspection documents.

Reason and Prerequisites

Solution

EWM-QM gives you the option to carry out product checks using ERP-QM and links this using a queued remote function call (qRFC) as with

the other interfaces. You must make the following settings in EWM Customizing for this scenario to work:Cross-Application Components => Quality Inspection Engine => CentralSettings => Communication with an External QM System => Define External QM SystemsSelect the QM system provided by SAP: SAP_ERP_QM and choose"Installations".Define an installation by entering the business key of the ERP system inthe "Installation" field.Extended Warehouse Management => Cross-Process Settings => Quality

Management => Basics => Warehouse-Dependent Activation of Inspection Object Type

Maintain the fields "External QM System" (SAP_ERP_QM) and "Installation".

You must implement the Business Add-In (BAdI) QPLEXT_COMM_TEC in the ERPsystem so that ERP returns the check results accordingly using qRFC.Sample code for the implementation can be found below:

Technical background:EWM uses the Quality Inspection Engine (QIE) to manage inspectiondocuments. By default, this has an XI interface for connections to external systems. This can be changed to qRFC using the BAdIQIE_EX_COMMUNICATION, and the RFC destination must be determined here

also.

SAP Note No. 1278425 27.11.2014 Page 1 ________________________________________________________________________

Page 2: Connect EWM to Use ECC QM

8/10/2019 Connect EWM to Use ECC QM

http://slidepdf.com/reader/full/connect-ewm-to-use-ecc-qm 2/3

In principle, EWM communicates with ERP via qRFC. Therefore, EWM alsohas a default implementation of this BAdI that converts the connection of the ERP system to qRFC.If you do not want to convert to qRFC, then you must implement the BAdIwith an empty method in order to deactivate the standard imple

mentation provided by EWM.To connect a different external system or to determine the RFCdestination differently, you must also implement the BAdI QIE_EX_COMMUNICATION.

Example for ERP BAdI implementation in the method QPLEXT_COMM_TEC_IF~DETERMINE_TECHNOLOGY

*Sets communication technology to qRFC in case of EWM *Sample Implementation takes field LGNUM into account*Further interesting fields e.g. LOG_SYSTEM TYPE-POOLS ustyp. DATA lt_user_parameters TYPE ustyp_t_parameters. DATA ls_user_parameter TYPE ustyp_parameters.

DATA: lv_decsy TYPE /spe/decsy, lv_cust_typ TYPE /spe/cust_typ, l_client_role TYPE t000-cccategory, l_set_get TYPE c, lv_lgnum TYPE lgnum.

CONSTANTS: lc_ewm TYPE /spe/decsy VALUE 'E', lc_qrfc TYPE qplext_comm_technology VALUE 'Q'.

* Get Set/Get Parameter GET PARAMETER ID '/SPE/CTRL_CUST_TYP' FIELD lv_cust_typ.

IF sy-subrc = 0.* Get the client role for the current system CALL FUNCTION 'TR_SYS_PARAMS' IMPORTING system_client_role = l_client_role EXCEPTIONS no_systemname = 1 no_systemtype = 2 OTHERS = 3. IF sy-subrc = 0 AND l_client_role NE 'P'.* exclude productive systems from Set/Get AUTHORITY-CHECK OBJECT 'S_DEVELOP' "#EC * ID 'OBJTYPE' FIELD 'DEBUG' ID 'ACTVT' FIELD '03'. IF sy-subrc EQ 0. l_set_get = 'X'. ENDIF. ENDIF. ENDIF.

IF l_set_get IS INITIAL.*CHeck SPM is active SELECT SINGLE cust_typ FROM /spe/ctrl_sw INTO lv_cust_typ. ENDIF.

IF lv_cust_typ NA '13'.

SAP Note No. 1278425 27.11.2014 Page 2 ________________________________________________________________________

Page 3: Connect EWM to Use ECC QM

8/10/2019 Connect EWM to Use ECC QM

http://slidepdf.com/reader/full/connect-ewm-to-use-ecc-qm 3/3

EXIT. ENDIF.

*Check import parameter IF ip_qals IS INITIAL. RAISE missing_import_parameter. ENDIF.

IF ip_qals-lgnum IS INITIAL. SELECT SINGLE lgnum FROM t320 INTO lv_lgnum WHERE werks = ip_qals-werk AND lgort = ip_qals-lagortvorg. ELSE. lv_lgnum = ip_qals-lgnum. ENDIF.

*CHECK warehouse number SELECT SINGLE decsy FROM t340d INTO lv_decsy WHERE lgnum = lv_lgnum. IF sy-subrc <> 0. RAISE invalid_import_parameter. ENDIF.

*Check warehouse is EWM, set technology to qRFC in this case IF lv_decsy EQ lc_ewm. ep_comm_technology = lc_qrfc. ENDIF.

Other terms

/SCWM/QINSP 095

________________________________________________________________________

Valid Releases

________________________________________________________________________

Links to Support Packages

Software Component Release Package Name ________________________________________________________________________ ________________________________________________________________________

SAP Note No. 1278425 27.11.2014 Page 3 ________________________________________________________________________