Ansicht
Dokumentation

CRMS4_REPA_CHECK_BEF - BAdI: Check In House-Repair and Item before Saving

CRMS4_REPA_CHECK_BEF - BAdI: Check In House-Repair and Item before Saving

CL_GUI_FRONTEND_SERVICES - Frontend Services   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the In-House Repair (CRM-S4-IHR) component.

You use this BAdI to call the method CHECK_BEFORE_SAVE. This BAdI method checks any value changes in the customer-specific fields (extension fields) for in-house repairs and repair objects before they are saved automatically or actively by the user. The result of this check needs to be documented in messages that have been assigned to a message table.

BAdI Implementations

The interface IF_CRMS4_REPA_CHCK_BEFORE_SAVE for this BAdI defines the following parameters for the BAdI method CHECK_BEFORE_SAVE:

Import parameters:

  • INHOUSEREPAIR: Contains the header data for the in-house repair.
  • INHOUSEREPAIR_EXTENSION: Contains the values of the customer-specific fields (extension fields) that have been defined for in-house repairs.
  • INHOUSEREPAIRITEMS: Contains the data for the repair objects (in-house repair items) that belong to the in-house repair.
  • INHOUSEREPAIRITEMS_EXTENSION: Contains the values of the customer-specific fields (extension fields) that have been defined for repair objects (in-house repair items).

Changing parameter:

  • MESSAGES: Contains the messages with the check results. A message needs to be assigned to one of the following message types:
  • I: Information

  • W: Warning

  • E: Error

  • A: Abort

In this case, the in-house repair is not saved. This is the equivalent of the exception DO_NOT_SAVE in the BAdI ORDER_SAVE.
Any messages that have been added to this changing parameter are added to the message log for In-House Repair.






PERFORM Short Reference   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 2643 Date: 20240523 Time: 175305     sap01-206 ( 43 ms )