SAP ABAP IMG Activity RMS_RCP_CONS_CHECK (BAdI: Consistency Check for Recipe)
Hierarchy
EA-APPL (Software Component) SAP Enterprise Extension PLM, SCM, Financials
   PLM-RM-REC (Application Component) Recipe
     RMSRCPCST (Package) RMS-RCP: Customizing Recipe
IMG Activity
ID RMS_RCP_CONS_CHECK BAdI: Consistency Check for Recipe  
Transaction Code S_XBK_47000020   (empty) 
Created on 20030805    
Customizing Attributes RMS_RCP_CONS_CHECK   BAdI: Consistency Check for Recipe 
Customizing Activity RMS_RCP_CONS_CHECK   BAdI: Consistency Check for Recipe 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name RCP_CONSISTENT_CHECK    

Use

This Business Add-In (BAdI) is used in the Recipe Management (PLM-RM) component.

You use this BAdI to define your own checks that are run during the consistency check of a recipe and its formulas. You can perform other actions with this BAdI when you deselect the Consistent indicator.

Note the following when you set a recipe as consistent:

  • You can only deselect the Consistent indicator manually, the system does not reset it automatically.
  • In a consistent recipe, you can no longer change all dependent objects of the recipe. In the recipe itself, you can only change the data that do not influence the process description. The following tab pages are therefore no longer ready for input when you set a recipe as consistent:
    • Process
    • Formula
    • Process Parameters
    • Equipment Requirements

      You cannot use this BAdI to influence which recipe data can no longer be changed after you set a recipe as consistent.

Standard settings

The BAdI is not filter-dependent and is not designed for multiple use.

The BAdI implementation CL_DEF_IMP_RCP_CONSISTENT_CHECK is supplied with the standard system. This executes the following checks and actions with the consistency check:

Recipe

  • The system checks whether the reference quantity exists.
  • The system checks whether the lot size exists. This is not obligatory.
  • The system checks whether the recipe has the same primary output as the previous version of the recipe.
  • The system checks whether the formulas are consistent. Here, it distinguishes between the following scenarios:
    • If the recipe has only one recipe formula, the system checks whether the recipe formula is consistent.
    • If the recipe only has stage formulas, the system checks whether all stage formulas are consistent and whether the recipe can be synchronized.
    • If the recipe has a recipe formula and stage formulas, the system checks whether all stage formulas are consistent. The recipe formula must be synchronized or must not contain any items in the Input and Output formula view.
  • If the system finds formulas that are not consistent when checking recipe consistency, it starts the formula consistency check.
  • If you deselect the Consistent indicator for the recipe, the system does not automatically deselect the Consistent indicator for the formulas.

Formula

  • If the Reaction indicator is set in a formula, the system cannot determine the consistency of the formula automatically. You can set the formula as consistent manually. In this case, the system indicates below the pushbutton who set the Consistent indicator and when.
  • The system checks whether at least one input and output item exists and or whether the Input and Output formula view is empty.
  • If you are using the separate I/O Substances and I/O Materials views instead of the Input and Output formula view, the system checks whether the materials were generated from the substances or the substances were generated from the materials.
  • The system checks whether the calculation of the fields in the Input and Output formula view does not produce any errors.
  • The system checks whether the calculation of the consistency-relevant formula views Composition, Ingredients, and Nutrients does not produce any errors.
  • The system saves the data determined for the Input and Output formula view and the consistency-relevant formula views. This means the values determined at the time of the consistency check are available in the database for searches.

Activities

After you call the IMG activity, the system displays a dialog box where you enter a name for the implementation.

If implementations of this Business Add-In have already been created, the system displays them in a dialog box. You then choose one of them by choosing Create, and continue as follows:

  1. In the dialog box, enter a name for the implementation of the Add-In and choose Create.
    The system displays the initial screen for creating Business Add-In implementations.
  2. On this screen, enter a short description for your implementation in the Implementation Short Text field.
  3. If you choose the Interface tab, you will notice that the system has populated the Name of the Implementing Class field automatically, by assigning a class name based on the name of your implementation.
  4. Save your entries and assign the Add-In to a package.
  5. To edit a method, double-click its name.
  6. Enter your implementation code between the method <Interface Name>~<Name of Method>. and endmethod. statements.
  7. Save and activate your code. Navigate back to the Change Implementation screen.
    Note: You can also create an implementation for an Add-In and not activate it until later. If you want to do this, do not perform the following step:
  8. Choose Activate.
    When the application program is executed, the code you created is run through.

See also

Methods:

Check Consistency of Recipe

Deselect Consistent Indicator in Recipe

Check and Set Consistency of Formula

Set Consistency of Formula Without Check

Deselect Consistent Indicator in Formula

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency A   Valid for all countries 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20030805 
SAP Release Created in 220