Fonction SAP CBRC_CALC_SUBS_FILTER - Filtering of Substances Relevant for Average Value Calculation

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_READ_INTERVAL CCRCS_INTERVAL u 16 Structure for Read Interval (Valid From - To)
I_REG ESESLSTID C 10 Regulatory List
I_SCEN CCRCE_SCEN C 10 X Scenario
I_VALDAT ESEDIAGVD D 8 SY-DATUM X Key Date

Paramètre Reférence Type Long. Description
E_ERROR_TAB CCRCTT_MSG h 642 Message Table for Application Log
E_FLG_ERROR ESEBOOLE C 1 Error Indicator

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
X_SUBID_TAB CCRCTT_REL_SUBS h 16 Table with the Substances Relevant for Average Value Calculation

Functionality
This function module is an example implementation and is provided merelyas a template. The function module is not called when the 3-year averagevalue is calculated (see also the documentation for the programSubstance Volume Tracking: Average Calculation).
This function module filters out substances that are not relevant forthe average value calculation. It is called in the EH<(>&<)>S system.
It first filters out the substances that, according to the selectioncriteria (Customizing activity
Specify Selection Criteria for Volume Tracking, selection criteriafor table RCG_ESTRH), are not relevant for substance volume tracking.The characteristics for the value assignment type Registration(Company-Specific) (SAP_EHS_1023_057) are then read for thesubstances that are still relevant, using the substance APIs. Only thosevalue assignment types that are actively used are read and only therating and validity area defined in the Customizing activitySpecify Scenarios are taken intoaccount.
Finally, those substances are filtered out that do not have a value inthe Expiry Date of Registration (SAP_EHS_1023_057_EXP_DATE)characteristic or which do not contain one of the following values inthe Registration Type (SAP_EHS_1023_057_REGTYPE) characteristic:
Value,,Description
,,No registration type entered
01,,Registration of preregistered substance
04,,Intermediate registration of preregistered substance
06,,Observation project

Notes
If the SVT_CLASS_PRAEFIX parameterhas been entered in the Customizing activity
Specify Environment Parameters, the corresponding customer-specificclasses and characteristics are used for filtering.