Sapass

 Simplify SAP R/3 development with Excel VBA/VB RFC  
Home> UserExit>QPMK0001



Index

QPMK0001

Customer Exits for Master Insp. Char.
The function module EXIT_SAPLQPMK_001 (customer enhancement "001") listed in this enhancement is called up within the function module QPMK_MSTCHA_VERS_CREATE.

The function module QPMK_MSTCHA_VERS_CREATE creates a version of a master inspection characteristic in the system. It is called up at the following time:

  • When a master inspection characteristic is created using the ALE layer (posting IDOCs). If a master inspection characteristic has several versions, this function module is run per version.

The interface for customer enhancement "001" has the following components:

  • I_MASTER_CHA: The master inspection characteristic (attribute as header line)
  • E_MASTER_CHA: Master inspection characteristic as outbound parameter (header line). With the help of this customer enhancement, modify the data for a master inspection characteristic version, according to your requirements. The data for the master inspection characteristic version itself must be returned to the calling program in parameter E_MASTER_CHA. You can modify the short texts in the table T_SHORTTEXTTAB; the table can be used as an import and export parameter. The same applies for the parameter T_LONGTEXTTAB. In both tables, you can add new entries or delete entries.
  • T_SHORTTEXTTAB: The short texts for the master inspection characterstic (attribute as table). This table contains short texts for the master inspection characteristic to be created. A data record therefore corresponds to a short text for the given master inspection characteristic. These short texts can be changed within a customer enhancement. You must make sure that a version for a master inspection characteristic contains at least one short text - this table must not be empty. In the case of several texts for a master inspection characteristic version, there must not be two short texts in the same language.
  • T_LONGTEXTTAB: The long texts for the master inspection characteristic (attribute as table). This table is optional, and can be empty. This table is empty if there are no long texts for this master inspection characteristic version. A data record in this table corresponds to a long text line, not to a complete long text. Several data records can therefore exist in the same language (as opposed to T_SHORTTEXTTAB).
  • T_SMPL_LTEXTTAB: Physical-sample drawing for the master inspection characteristic (characteristic as table). This table is optional, and can be empty. This table is then empty if there are no physical-sample long texts for this master inspection characteristic version. A data record in this table corresponds to a long text line, not to a complete long text. This means that several data records can exist in the same language (as opposed to T_SHORTTEXTTAB).
  • T_QPMZTAB: The inspection methods for the master inspection characteristic (attribute as table). This table is optional, and can be empty. This table is then empty if no inspection methods were assigned to this master inspection characteristic version. A data record in this table corresponds to an assigned check method.

If program processing is returned to the calling program, the data which may have been changed in the customer enhancement, is checked. In the case of an error, messages can be generated, and the data is not saved to the database. This check prevents data inconsistencies. If there are no errors, the data is saved to the database.

Notes

If this customer enhancement is activated, you must make sure that the parameter E_MASTER_CHA is not blank (empty). If, for example, the data for the master inspection characteristic only needs to be passed on, the values for the parameter I_MASTER_CHA should be transferred to the parameter E_MASTER_CHA (also: MOVE-CORRESPONDING I_MASTER_CHA TO E_MASTER_CHA.)


Function/Program:
  • EXIT_SAPLQPMK_001: Customer Enhancement: Create Master Inspection Characteristic

02-Oct-2005