Ansicht
Dokumentation

ARC_QM_DEFECT_WRITE - Archiving Object QM_DEFECT: Archiving Run

ARC_QM_DEFECT_WRITE - Archiving Object QM_DEFECT: Archiving Run

RFUMSV00 - Advance Return for Tax on Sales/Purchases   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the Quality Management component. You can use this BAdI to provide interfaces for archiving additional data in the writing program (QM_DEFECT_ARCH_WRI) for archiving defects (QM_DEFECT).

The BAdI contains the following method: WRITE.

  • IS_DEFECT (Defect data)
  • ARCHIVE_HANDLE (Opened archive handle)
  • CV_ERROR (Indicates whether the error occurred when writing additional data to the archive)
  • CS_ERR_MESSAGE (Message with error cause)

First, check if the error indicator (CV_ERROR) is empty. If it is not empty, an error occurred in other BAdI implementations if there are multiple implementations of the BAdI.

After having written the data to the archive, check if an error occurred. If there is an error, set the indicator CV_ERROR to X and provide the message with the error cause (CS_ERR_MESSAGE). This message will be shown for the defect in the archiving log. If an error occurs, the defect will not be written to the archive, it will be skipped, and the program will continue writing other defects to the archive.

The following example implementation is available:

  • CL_QM_DEFECT_WRITE_SAMPLE

As a result, the process of writing additional data to the archive for a defect with code group QM-M will return an error and provide the following error message:

Defect wasn't written to archive. Error in additional data.






SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 1771 Date: 20240607 Time: 195056     sap01-206 ( 37 ms )