SAP ABAP IMG Activity RMS_COMPL_CHECK (Set Up EH&S Compliance Check for Recipe Management)
Hierarchy
EA-APPL (Software Component) SAP Enterprise Extension PLM, SCM, Financials
   EHS-BD-CCK (Application Component) Compliance Check
     CBBA_REGCOMPL (Package) Compliance Check
IMG Activity
ID RMS_COMPL_CHECK Set Up EH&S Compliance Check for Recipe Management  
Transaction Code S_PRN_53000701   (empty) 
Created on 20070313    
Customizing Attributes RMS_COMPL_CHECK   Set Up EH&S Compliance Check for Recipe Management 
Customizing Activity    
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name RMS_COMPL_CHCK    

Use

If you want to use the Compliance Check component (EHS-BC-CCK) from Environment, Health and Safety (EH&S) in Recipe Management, you have to make the settings specified here.

Note

You can use the Business Configuration Set (BC set) RMSC_BCSET. To do this, edit the activity Set Up Compliance Check Using BC Set.

Requirements

You have transferred the required standard classes to the production client. For more information, see SAP Note 1295360.

Activities

Customizing Settings

Perform the activities in Customizing for Environment, Health and Safety under Basic Data and Tools -> Compliance Check. Note the following information:

  • In the Set Up Compliance Check activity, you can use the following standard classes to define the constraints (value assignment types):
    • SAP_RMS_CC_C_PROH (Constraint that excludes substance)
    • SAP_RMS_CC_C_RST_L (Restrictive constraint for listed substances)
    • SAP_RMS_CC_C_RST_N (Restrictive constraint for nutrients)
    • SAP_RMS_CC_C_CMP_L (Mandatory constraint for listed substances)
    • SAP_RMS_CC_C_CMP_N (Mandatory constraint for nutrients)
    • SAP_RMS_CC_C_QPOS (Constraint: Must contain diet)
    • SAP_RMS_CC_C_QPOS (Diet required)
    • SAP_RMS_CC_C_QNEG (Constraint: Must not contain diet)
  • Make the following settings in the Set Up Technical Parameters activity:
    • Enter the set of rules CCK_RM.
    • Use the standard class SAP_RMS_CC_RESULT to define the value assignment type of the result of the check.
    • Assign the following standard characteristics:
      - SAP_RMS_CC_RSLT_COMPTYPE (Characteristic for composition type)
      - SAP_RMS_CC_RSLT_STATUS (Characteristic for status of check)
      - SAP_RMS_CC_RSLT_STATEMENT (Characteristic for compliance statement)
  • In the Set Up Parameters for Determining Composition activity, define the following parameters:
    • DATA_ORIGIN
    • Enter the characteristic SAP_RMS_CC_DATA_ORIGIN as the result key. Make sure that the class used to save the result of the check contains this characteristic.
      Select the Entry Required indicator.
    • DATA_SOURCE
    • Enter the characteristic SAP_RMS_CC_DATA_SOURCE as the result key. Make sure that the class used to save the result of the check contains this characteristic.
      Select the Entry Required indicator.
  • In the Specify Composition Types activity, define the following composition types for the standard application:
    • Composition type for ingredients
    • Composition type for nutrients
    • Composition type for diets

Business Add-Ins (BAdIs)

When you implement the BAdIs, note the following information for the standard application:

  • For the BAdI BADI_EHSB_RC_ADDPARAM, use the following classes as implementations for the relevant parameters for determining the composition:

Parameters for Determining Comp.    Class

DATA_ORIGIN    CL_RMSC_ADDPARAM_DATA_ORIGIN

DATA_SOURCE    CL_RMSC_ADDPARAM_DATA_SOURCE

  • For the BAdI BADI_EHSB_RC_COMP_EXPL, use the following classes as implementations for the relevant composition type:

Composition Type    Class

Ingredients    CL_RMSC_COMP_EXPL

Nutrients    CL_RMSC_NUTR_COMP_EXPL

Diets    CL_RMSC_DIE_COMP_EXPL

  • Use the class CL_RMSC_RESULT_ADD_INFO for the implementation of the BAdI BADI_EHSB_RC_RESULT_ADD_INFO.

Other Classes and Characteristics

For the standard application, make sure that the class used to save the result of the check also contains the following characteristics:

  • SAP_RMS_CC_EXPL_DATE (Characteristic for date of explosion)
  • SAP_RMS_CC_FRML_ID (Characteristic for formula ID)

Integrate Substance Hit List as Starting Point

In Customizing for Environment, Health and Safety, choose Basic Data and Tools -> Specification Management -> Menu Exits for Specification Management. Select a menu exit for specification management and implement the following call:

CALL FUNCTION 'EHSB_RC24_MENU_CALL_CHECK'

EXPORTING

I_ACTYPE = I_ACTYPE

I_TRTYPE = I_TRTYPE

I_ADDINF = I_ADDINF

I_CALL = I_CALL

IMPORTING

E_FLG_CHANGED = E_FLG_CHANGED

TABLES

I_SUB_TAB = I_SUB_TAB

Set Up Dialog for Entering Substance Group

You set up the dialog for entering the substance group with constraints, as follows:

  1. In the Set Up Technical Parameters activity, enter the value assignment type of the substance group with constraints.
  2. In Customizing for Environment, Health and Safety, choose Basic Data and Tools -> Specification Management -> Specification Database Structure -> Settings for Value Assignment -> Specify Tab Pages. Define the tab page for the entry dialog and assign the program SAPLEHSB_RC25 to it.
  3. In Customizing for Environment, Health and Safety, choose Basic Data and Tools -> Specification Management -> Specification Database Structure -> Settings for Value Assignment -> Specify Value Assignment Types.
  4. Select the value assignment type for substance group with constraints and assign the dialog function EHSB_RC25_REGSUB_ENTRY to it.
  5. Choose Sequence of Tab Pages and assign the tab page you created beforehand to this value assignment type.

Business Attributes
ASAP Roadmap ID 255   Create Interfaces 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency A   Valid for all countries 
Maintenance Objects
Maintenance object type    
History
Last changed by/on SAP  20070723 
SAP Release Created in 700