Automatic Running of Time Ticket Confirmations

Scenario

Time ticket confirmations are to be run automatically as soon as the values for the quantity produced, the scrap, and the rework change. These values are assigned to tags that have been subscribed to previously.

Conversion

A new class for processing notifications is required. This class inherits from the class CL_PCO_NOTIF_HANDLER and redefines the instance method EXECUTE. For a redefinition, an instance method can be implemented in a subclass without the interface being changed. Additionally, the BAdI BADI_S_PCO_HANDLE_NOTIF must be implemented for the filter value APPLICATION = PRODORDCON. The application handle contains the unique number of the confirmation as a component of the handle. The confirmation number is used to supplement the remaining confirmation data such as order number and operation number when the confirmation is processed.

Simplifications

  • No evaluation of error messages that could be part of the notification

  • Use of hard-coded names for tags (evaluation of notification expressions)

  • Reading the order number and operation data from the database (using SELECT)

  • No reworking of confirmations for which the associated goods movement could not be performed