Ansicht
Dokumentation

QQM_NOTIF_EVENT_SAVE - Check/Change Notification When Saving

QQM_NOTIF_EVENT_SAVE - Check/Change Notification When Saving

BAL Application Log Documentation   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the Quality Notifications (QM-QN) component. You can use this BAdI to retrieve and change notification data when the notification is saved. The changes are dependent on the notification type.

Depending on the saved data, you can perform actions such as:

  • Triggering messages
  • Changing notification data when the notification is saved

Note
You can only use this BAdI for notification category 02 (Quality Notification).

This BAdI is called in function module IQS1_BADI_AT_SAVE.

You can call the BAdI QQM_NOTIF_EVENT_SAVE_CLD directly after the BAdI NOTIF_EVENT_SAVE or independently of it.

Filter = notification type

The BAdI is only triggered if QMTYP = 02 (quality notification)

Importing parameters:

  • IV_CREATION_FLAG (X – create mode, empty – change mode)
  • IS_NOTIFICATION_TYPE TYPE INOTIFTYPE - Notification Type
  • IS_QNOTIF_HEADER TYPE IQLTYNOTIF - Quality Notification Header
  • IT_QNOTIF_ITEM TYPE IQLTYNTFITM - Quality Notification Items
  • IT_QNOTIF_TASKS TYPE IQNOTIFTSK - Quality Notification Tasks
  • IT_QNOTIF_ACTIVITY TYPE IQNOTIFACT - Quality Notification Activities
  • IT_QNOTIF_CAUSES TYPE IQLTYNTFCAU - Quality Notification Causes

Changing parameters

  • CS_QNOTIF_HEADER TYPE IQLTYNOTIF - Quality Notification Header
  • CT_QNOTIF_ITEM TYPE IQLTYNTFITM - Quality Notification Items
  • CT_QNOTIF_TASKS TYPE IQNOTIFTSK - Quality Notification Tasks
  • CT_QNOTIF_ACTIVITY TYPE IQNOTIFACT - Quality Notification Activities
  • CT_QNOTIF_CAUSES TYPE IQLTYNTFCAU – Quality Notification Causes
  • CS_RETURNMESSAGE TYPE BAPIRET2 – Table for return messages

The following sample implementation is available:

CL_QQM_EX_NOTIF_EVENT_SAVE_CLD

If the creation date is older than 3 days and the priority is initial, a message is raised that a priority is required.






ABAP Short Reference   General Data in Customer Master  
This documentation is copyright by SAP AG.

Length: 2669 Date: 20240523 Time: 194006     sap01-206 ( 42 ms )