Fonction SAP CBRC_CALC_TRACKING_DATA_GET - Determination of the Substance Quantities Relevant for Average Calculation

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_AVG_YEARS_TAB CCRCTT_SELOPT h 93 Relevant Years
I_FLG_CONFIRMED ESEBOOLE C 1 TRUE X Read Confirmed Quantities
I_FLG_PLANNED ESEBOOLE C 1 TRUE X Read Planned Quantities
I_REG ESESLSTID C 10 Regulatory List
I_SCEN_TAB CCRCTT_SCEN h 10 X Relevant Scenarios
I_SUBID_TAB CCRCTT_REL_SUBS h 16 Relevant Substances

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

Functionality
This function module determines the substance quantities that arerelevant for calculating the average value. The following steps arecarried out:

  • All of the planned and confirmed substance quantities are read for all
  • scenarios, taking into account the following selection criteria:
    Regulatory list (i_reg)
    Relevant years (i_avg_years_tab)
    Tracked substances (i_subid_tab)
    Company code (i_bukrs)
    The substance quantities read do not include historical data.
    • The authorization check (authorization object C_EHSRC_SV) is carried out
    • for the substance quantities read.
      • If necessary, the unit of measure of the substance quantities is
      • converted to the cross-scenario unit of measure. The units of measureare defined for each regulatory list in the Customizing activitySpecify Scenarios.