Hierarchy

⤷

⤷

IMG Activity
ID | BADI_CCM_QTY_CHECK | BAdI: Perform Quantity Check |
Transaction Code | S_KA5_12001285 | (empty) |
Created on | 20021122 | |
Customizing Attributes | BADI_CCM_QTY_CHECK | BAdI: Perform Quantity Check |
Customizing Activity | BADI_CCM_QTY_CHECK | BAdI: Perform Quantity Check |
Document
Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
Document Name | BADI_CCM_QTY_CHECK |
Use
You use this Business Add-In (BAdI) to execute a quantity check within the overall configuration check in transaction CCM2 (configuration control workbench). You can implement your own logic for the check.
If an implementation of this BAdI is active, the quantity check is executed. SAP provides a default implementation.
If you do not want to execute the quantity check, you can create your own implementation with empty body method CONFIG_CHECK_QUANTITY and activate it.
If the quantity check for any reason is not executed, a customizeable message can be displayed in the application log.
SAP provides the following methods:
- CONFIG_CHECK_QUANTITY
Based on the input IT_ACTUAL_GROUP (objects of the actual configuration grouped by function identifier (FID)), IT_ALLOWED_GROUP (MPL nodes grouped by FID) , IV_FUNCID (FID group), and IV_PART_VALIDITY_ERROR (reports if there is any validity error for this FID group), the ET_QTY_MESSAGES (table of quantity-check related messages) is created.
- GET_OBJECT_ID
Private BAdI method to get the identification (name) of the parent object of the object to be checked. It is used to create a corresponding message in the application log.
Requirements
Standard settings
SAP provides a default implementation.
Activities
- To deactivate the quantity check, the following code has to be implemented in the method CONFIG_CHECK_QUANTITY:
- method if_ex_badi_ccm_qty_check~config_check_quantity.
- endmethod.
- method if_ex_badi_ccm_qty_check~config_check_quantity.
- raise qty_check_not_performed.
- endmethod.
In the second case the message is passed to the application log.
- To display a customizeable message in the application log in case the quantity check is not active (empty implementation), SAP recommends to insert the following code in the method CONFIG_CHECK_QUANTITY:
raise qty_check_not_performed.
Example
Business Attributes
ASAP Roadmap ID | 204 | Establish Functions and Processes |
Mandatory / Optional | 2 | Optional activity |
Critical / Non-Critical | 2 | Non-critical |
Country-Dependency | A | Valid for all countries |
Assigned Application Components
Documentation Object Class | Documentation Object Name | Current line number | Application Component | Application Component Name |
---|---|---|---|---|
SIMG | BADI_CCM_QTY_CHECK | 0 | PLN0000023 | Configuration Control |
Maintenance Objects
Maintenance object type | E | Business Add-In - Definition |
History
Last changed by/on | SAP | 20030625 |
SAP Release Created in | 471 |