Fonction SAP CBRC_CALC_SUBS_DET - Determination of Substances Relevant for Average Value Calculation

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_AVG_YEARS_TAB CCRCTT_SELOPT h 93 Relevant Years
I_BUKRS_TAB CCRCTT_SELOPT h 93 Selection Criteria for Company Codes
I_REG ESESLSTID C 10 Regulatory List
I_SCEN CCRCE_SCEN C 10 X Scenario
I_SUBID_TAB CCRCTT_SELOPT h 93 Selection Criteria for Substances
I_YEAR CCRCE_YEAR N 4 Monitoring Year

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
E_SUBID_TAB CCRCTT_REL_SUBS h 16 Table with Substances Found

Functionality
This function module determines the substances that are relevant for theaverage value calculation. It reads the substances that were transferredfrom the property tree to the tables for substance volume tracking withthe program Substance Volume Tracking: Data Transferfrom Property Tree. The system takes into account the followingselection criteria when the tracked substances
are read:

  • Regulatory list (i_reg)

  • Company code (i_bukrs_tab)

  • Scenario (i_scen)

  • If no scenario was transferred, only cross-scenario substances are read.
    • Tracked substances (i_subid_tab)

    • Expiry date of registration

    • Only those data records are read for which the expiry date has not beenexceeded. If you want to calculate the average values for 2010 andpreliminary registration expires on November 30, 2010, for example,(expiry date = 11/30/2010), the average value is still calculated for2010. As of 2011, no average values are then calculated.
      Note that the program Substance Volume Tracking: DataTransfer from Property Tree automatically enters the end date of therespective value assignment instance as the expiry date if no expirydate has been entered for the substance.
      • Registration type; only data records with the
      • following registration type are read:
        Value,,Description
        01,,Registration of preregistered substance
        04,,Intermediate registration of preregistered substance
        06,,Observation project
        Data records with a cross company-code registration status (and datarecords without a company code) are broken down according to companycode so that the table with the substances determined (E_SUBID_TAB)contains only company code-specific entries.