Ansicht
Dokumentation
C1CA_SUB_SDS_DIST_CHECK - NOTRANSL: EHS: Bestimmung der SDB-Pflicht eines Stoffes aus EH&S
CPI1466 during Backup ROGBILLS - Synchronize billing plansThis documentation is copyright by SAP AG.
Functionality
The function module C1CA_SUB_SDS_DIST_CHECK determines the MSDS requirement for a substance in the R/3 component Product Safety. The MSDS requirement is maintained in the substance characteristic category SAP_EHS_0101_001 with the characteristic SAP_EHS_0101_MSDS_CHECK.
You assign the following values to the characteristic:
- Material safety data sheet required (internal value 0)
- Material safety data sheet not required (internal value 1)
You must maintain a usage for every value that you assign. Every rating entered has equal status.
Procedure:
- Using the function C1CC_VALID_REGION_DETERM, you determine the validity area that must be checked for MSDS requirement in the usage.
- The validity area is the country or the region maintained for the customer in the R/3 component Sales and Distribution (SD). It is transferred to the R/3 component Product Safety (EHS-SAF) by calling the function C1CA_SD_INTERFACE_TO_EHS.
- Error handling:
- If no validity areas have been assigned to country and region in Product Safety Customizing (table TCG91), an error mail with ERRCODE = SD1 is sent to the person responsible with a corresponding note about the missing data. The export parameter E_SDS_DISTRIBUTION is set to TRUE.
- All permutations are made between country/region and the ratings that are possible in the system
- The substance API is called to read the substance characteristic values for the substance characteristic category SAP_EHS_0101_001. Reference substances are also taken into account.
- Error handling:
- If an error occurs in this function, an error mail with ERRCODE = SD1 is sent to the person responsible with a corresponding note about the error. The export parameter E_SDS_DISTRIBUTION is set to TRUE.
- If no characteristic values could be determined, an error mail with ERRCODE = SD1 is sent to the person responsible with a corresponding note about incomplete data. The export parameter E_SDS_DISTRIBUTION is set to TRUE.
- At this point, the system actually queries whether a material safety data sheet is required. The system takes into account the characteristic values with the highest priority (sort sequence 1). The export parameter E_SDS_DISTRIBUTION is set to TRUE or FALSE according to the characteristic values.
- Error handling:
- If there are no valid characteristic values, an error mail with ERRCODE = SD1 is sent to the person responsible with a corresponding note about incomplete data. The export parameter E_SDS_DISTRIBUTION is set to TRUE.
Example
Here are several examples displayed in a table. The validity area to be checked is always DE.
Legend:
- Val.: sort sequence for assigning characteristic values to a substance
- Char.: characteristic value (0, 1)
- Rat.: rating for the usage
- Valid.: validity area for the usage
- Excl.: exclusion indicator for validity area
- Act: active indicator for characteristic value
- Result: function C1CA_SUB_SDS_DELIVERY_CHECK delivers True or False
- Mail: yes: an error mail was sent
- '?' means that no entry was set
- Individual examples are separated by ----.
- Val. Char Rat. Valid Excl. Act. Result Mail
- ----------------------------------------------------------------------
- ? ? ? ? ? ? True Yes
- ----------------------------------------------------------------------
- 1 0 Public DE X True
- ----------------------------------------------------------------------
- 1 1 Public DE X False
- ----------------------------------------------------------------------
- 1 0 Public REG_Europe X True
- ----------------------------------------------------------------------
- 1 0 Inter. DE X True
- ----------------------------------------------------------------------
- 1 0 Public DE X X TRUE
- Public REG_EG X
- ----------------------------------------------------------------------
- 1 0 Public DE X True Yes
- Public Reg_eg X X
- ----------------------------------------------------------------------
- 1 0 Public DE X True
- 2 1 Public REG_EG X
- ----------------------------------------------------------------------
- 1 1 Public REG_EG X False
- 2 0 Public DE X
Parameters
E_SDS_DISTRIBUTIONI_CUSTOMER
I_INFO_FOR_ERROR_MAIL
I_REASON
I_SUBSTANCE_RECN
I_VALDAT
Exceptions
SUB_SDS_DELIVERY_CHECK_FAILEDFunction Group
C1CABAL Application Log Documentation ROGBILLS - Synchronize billing plans
This documentation is copyright by SAP AG.
Length: 6924 Date: 20240523 Time: 144947 sap01-206 ( 123 ms )