Ansicht
Dokumentation

EHFND_CHM_TRANS - BAdI: Transfer of Chemicals

EHFND_CHM_TRANS - BAdI: Transfer of Chemicals

General Data in Customer Master   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

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

This BAdI is called when reportTransfer 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 Transfer of Phrases (R_EHFND_PHRASE_TRANSFER).

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

  • GET_CHARACTERISTICS:
    This method returns the properties and characteristics of the substances that are transferred. For each characteristic, the method also returns a usage that is used to read data for that characteristic. Thus, it is possible to read, for instance, the components with workplace control parameters with a different validity area than other transferred data.
    For each characteristic, the method also returns the node and the field of the chemical to which the data are transferred. Note that the only nodes supported are those that are provided by the default implementation.
  • GET_SDS_DOCUMENT_PARAMETERS:
    This method returns the parameters used to identify documents to transfer. It returns a list of triples where each triple contains values for report category, validity area, and language. Report Transfer of Chemicals uses report category and validity area to determine generation variants. For each determined generation variant and language, released and historic reports are transferred to the chemical.
  • GET_HITLIST_ID:
    This method determines the Set of Hits - Groupand the Set of Hits - Group Entry that is used for transferring substance data. Note that only substances of the selected hit list are transferred.
  • GET_IDENT_LISTING_CHM:
    This method determines the identification listing for transferring data like the name of the chemical or the CAS number. Each position in the identification listing is transferred to corresponding field of the chemical BO. The field assignment of the listing positions must be as follows:
    1. Name of the chemical
    2. Internal names
    3. IUPAC name
    4. EINECS number
    5. Molecular formula
    6. CAS number
    7. Synonyms
    This means that the identifier configured at position 1 of the identification listing is being transferred into the name of the chemical field in the chemical BO, the identifier configured at position 2 is being transferred into the internal name, and so on.
  • MAP_TO_CHEMICAL_TYPE:
    This method maps phrase IDs of the specification database to the chemical type (fix values of domain EHFND_CHM_NATURE) of chemical BOs.
  • MAP_TO_HAZARD_CLASSIFICATION:
    Chemicals have only one field for hazard class/hazard category. In the specification database, this information is spread over multiple fields. This method maps the phrase IDs from up to 4 characteristics to one value for the hazard class/hazard category.
  • MAP_TO_ACCURACY:
    This method maps phrase IDs of accuracy characteristics, as well as accuracy operators of compositions and numerical characteristics to values for the numerical accuracy fields in the chemical.
  • MAP_TO_COUNTRY:
    Documents that are attached to chemicals have a country/region code and no validity area. This method maps the validity area of a generation variant to a country/region code.
  • ADJUST_NAMES_OF_CHEMICAL:
    This method allows you to adjust the identifiers that are supposed to be transferred as name of the chemical. Chemical names are language dependent and require a language code. In SAP EHS Managementas part of SAP ERP and Product Safety as part of SAP S/4HANA, it is possible to enter identifiers without any language code. In this method, you can, for example, assign a default language for those identifiers that do not have a language code or replicate it with different languages codes.
  • GENERATE_DOCUMENT_REFERENCE:
    In the specification database, generated reports are usually report bodies; they are not completely finished. It is still necessary to generate a final report. When reports are transferred from a specification to a chemical, this generation step is also necessary. This method generates the final report when a user wants to display a report body that has been attached to a chemical via the transfer report for chemicals. This method also specifies the file format in which the final report is generated.
  • GET_DEF_HAZING_VALIDITY_AREA:
    This method allows you to define the validity area for hazardous ingredients which shall be transferred to the "global" hazardous ingredients of a chemical.
  • GET_DEF_GHS_VALIDITY_AREA:
    This method allows you to define the validity area for GHS hazards classes and categories which shall be transferred to the "global" classification according to the GHS of a chemical.

The BAdI implementationBADI_EHFND_CHM_TRANSFER is delivered with the standard system.






Fill RESBD Structure from EBP Component Structure   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 7402 Date: 20240523 Time: 155956     sap01-206 ( 134 ms )