Ansicht
Dokumentation

CRM_CMG_CLOSE_CASE - BAdI: Define Additional Tasks for Case Closing Profile

CRM_CMG_CLOSE_CASE - BAdI: Define Additional Tasks for Case Closing Profile

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

This Business Add-In (BAdI) can be used for Case Management with the case closing profile to perform additional tasks on the case or its dependent actions, either at the check level or when the automatic closing function is executed.

Additional tasks could be, for example, processing dependent cases or other dependent objects that are not business transactions, or making sure that the transaction to be closed is not used in another case.

This BAdI definition contains the following methods:

  • CHECK: Checks other non-business transaction objects before a case is closed. It receives the case as the input parameter and returns a list of error messages.
  • AUTOCLOSE: Closes other objects related to the case that are not business transactions. It receives the case as the input parameter. It returns:
  • A list of messages to be included in the PPF log

  • A list of messages to be included in an email sent to the user who closed the case

  • The report processing status

This BAdI method is called from the PPF action CRM_CMG_CASE_CLOSE
  • CHECK_BEFORE_AUTOCLOSE_TX: Checks if the transaction to be closed is being used in another open case. If this is the case, this transaction is not closed and an error message is returned. The input parameters here are the case and the open transaction to be closed. It returns:
  • a table of messages to be included in the PPF log and

  • a table of messages to be included in an e-mail sent to the user who closed the case

  • the report processing status and a message indicating whether this transaction will be closed.

This BAdI method is called from the PPF action CRM_CMG_CASE_CLOSE.

An implementation is provided with coding only for the method CHECK_BEFORE_AUTOCLOSE_TX. It checks if the transaction that is about to be closed is being used in another open case. If yes, this transaction is not closed and an error message is added.

For information about the implementation of BAdIs in the context of the Enhancement Concept, see SAP Library for SAP NetWeaver under BAdIs - Embedding in the Enhancement Framework.






rdisp/max_wprun_time - Maximum work process run time   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 3665 Date: 20240523 Time: 162820     sap01-206 ( 104 ms )