Ansicht
Dokumentation

DM_BADI_VLDT_BFR_STR - BAdI: Customer-Specific Validation before Saving

DM_BADI_VLDT_BFR_STR - BAdI: Customer-Specific Validation before Saving

Vendor Master (General Section)   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the component Case Management (BC-SRV-CM).

Before the data of the case is saved in the database, the VALIDATE method of the Business Add-In is called. Time-consuming checks that you do not want to be performed immediately for each change can be implemented in this method.

Within the VALIDATE method, the parameter EX_IS_VALID must be set.

If the case is valid, the parameter must be set to if_srm=>true.

If the value of an attribute is invalid, the parameter must be set to if_srm=>false. In addition, an entry with a corresponding error message must be created in the EX_MESSAGES table. The organizer automatically navigates to the attribute that corresponds to EX_MESSAGES-ATTR_VALUE.

Caution: The case is not allowed to be changed within this Business Add-In.

Remote Function Calls (RFCs) and database commits are permitted within this method since no updates have taken place yet. For this reason, no updates or inserts to database tables must take place in this method.

To access the attributes of the case, the method contains the following parameter:

IM_CASE
The parameter IM_CASE is a reference to the interface IF_SCMG_CASE.
By using the methods of this interface, you can read the attributes of a clarification case. The most important methods are:

  • GET_SINGLE_ATTRIBUTE_VALUE: Read the current value of an attribute
  • GET_SINGLE_ATTRIBUTE: Read the attribute value object

You can see other methods in transaction SE24 if you display the interface IF_SCMG_CASE.






ROGBILLS - Synchronize billing plans   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 1953 Date: 20240606 Time: 052537     sap01-206 ( 51 ms )