Ansicht
Dokumentation

EHFND_REGL_FILL - BAdI: Transfer of OEL Data

EHFND_REGL_FILL - BAdI: Transfer of OEL Data

ABAP Short Reference   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in Environment, Health, and Safety component. You can use this BAdI to specify data sources for transferring substance data from SAP EHS Managementas part of SAP ERP or from Product Safety as part of SAP S/4HANA to Environment, Health, and Safetyas part of SAP S/4HANA.

This BAdI is called when report Transfer of OEL Data (R_EHFND_FILL_REGL_BY_EHS_SUBST) is executed.
The BAdI methods GET_EHS_CLASSES and GET_EHS_SUBST_IDENT_LISTING are also called when the report Transfer of Chemicals (R_EHFND_FILL_CHM_BY_EHS_SUBST) is executed.

  • You have ensured that the Customizing entries and phrases of the specification database also exist in the Environment, Health, and Safety system.
    For more information, see prerequisites in the documentation of report report Transfer of OEL Data.

The BAdI definition is active in the standard system. It contains the following methods:

  • GET_HITLIST_ID:
    This method determines the Set of Hits - Group and the Set of Hits - Group Entry that is used for transferring substance data. Note that only substances from the selected hit list are transferred.
  • GET_EHS_CLASSES:
    This method specifies the sources for the OELs, the regulatory list, the value type and the class itself. Note that you have to use the parameter of the interface IF_EHFND_REGL_FILL.
  • GET_EHS_SUBST_IDENT_LISTING:
    This method determines the identification listing for transferring data like the CAS number or substance name. Note that the CAS number and the substance name have to be included in the identification listing.
  • MAP_VALUE_TYPE:
    This method specifies the mapping between the value type in the SAP EHS Managementas part of SAP ERP application or the Product Safety as part of SAP S/4HANA application and in the Environment, Health, and Safety application.
  • MAP_REGLIST_ID:
    This method specifies the mapping between the Regulatory List ID in the SAP EHS Managementas part of SAP ERP application or the Product Safety as part of SAP S/4HANA application and in the Environment, Health, and Safety application.

The BAdI implementation BADI_EHFND_REG_LIST_TRANSFER is delivered with the standard system. It determines data for transferring as follows:

  • It uses the method GET_HITLIST_ID to set the Set of Hits - Group as HITLIST and the Set of Hits - Group Entry as LISU.
  • The method GET_EHS_CLASSES determines the class as data sources.
    For more information about the standard delivery, see the list of Classes and Characteristics used as data sources for OEL data transfer.
  • The method GET_EHS_SUBST_IDENT_LISTING used the identification listing D_DEFAULT for transferring data for listed substances.
    Note:The CAS number and the substance name have to be included the identification listing D_DEFAULT. Otherwise, the data cannot be transferred.
  • The method MAP_VALUE_TYPE determines the value types in the SAP EHS Managementas part of SAP ERP application or the Product Safety as part of SAP S/4HANA application.
    Note: In the standard implementation, the determined value type must be the same as in the Environment, Health, and Safety application. Otherwise, the data cannot be transferred.
  • The method MAP_REGLIST_ID maps the regulatory list ID in the SAP EHS Managementas part of SAP ERP application or the Product Safety as part of SAP S/4HANA application to an ID in the Environment, Health, and Safety application.
    Note: In the standard implementation, the IDs in the SAP EHS Managementas part of SAP ERP application or the Product Safety as part of SAP S/4HANA application must be the same as in the Environment, Health, and Safety application. Otherwise, the data cannot be transferred.

When you implement this BAdI, add new implementations to the business add-in BADI_EHFND_REGL_FILL.

We recommend you derive from CL_EHFND_REG_LIST_TRANSFER and overwrite the methods according to your needs.

You can find example implementations in the BAdI Builder in class CL_EHFND_REG_LIST_TRANSFER.






ABAP Short Reference   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 7122 Date: 20240523 Time: 154343     sap01-206 ( 113 ms )