Sapass

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



Index

QPMK0002

Customer Exits for Master Insp. Char.
The function module EXIT_SAPLQPMK_002 (customer enhancement "002") listed in this enhancement is called up within the function module QPMK_MSTCHA_VERS_CHANGE.

The function module QPMK_MSTCHA_VERS_CHANGE changes a version of a master inspection characteristic in the R/3 System. It is called up at the following time.

  • When a master inspection characteristic is changed using the ALE layer (posting IDOCs).

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

  • I_MASTER_CHA: 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, 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: 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 of a master inspection characteristic has a short text - this table must not be empty. If there are several short texts for a master inspection characteristic version, there must not be two short texts in the same language.
  • T_LONGTEXTTAB: 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 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 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: Inspection methods for the master inspection characteristic (attribute as table). This table is optional, and can be empty. This table is empty if no inspection methods were assigned to this master inspection characteristic version. A data record in this table corresponds to an assigned inspection 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.)

Note also the example coding in the include "LQPMKF04" for the function group "QPMK".


Function/Program:
  • EXIT_SAPLQPMK_002: Customer Enhancement: Change Master Insp. Char.

02-Oct-2005