Ansicht
Dokumentation
/FRE/FU_HIST_CALC_AVERAGE - Artificial history: Calculate historical data for one reference module
ABAP Short Reference BAL Application Log DocumentationThis documentation is copyright by SAP AG.
Functionality
In this function module, an artificial history is calculated for a reference module from the references that are (still) assigned.
For each day in the recalculation period, the time series value for each reference is multiplied by the weighting factor and the products of that result are then totaled. The total amount is then divided by the total of the weighting factors, which produces the artificial history for the reference modules. If a value cannot be calculated for given a day, the artificial history is set to the value 'undefined'. The value of the artificial history is stored as a time series value in the table CT_HIST_TIME_SERIES with product ID = reference module number .
If the time series value for the reference has the value 'undefined', this time series value is not included in the calculation of the artificial history; that is, it is not included in the sum of the products from time series values and weighting factors, and its weighting factor is not included in the sum of the weighting factors.
Depending on the setting for the historical basis filter, the artificial history is calculated per time series type or is merged in a time series type.
Finally, the time series for the equivalent reference module with product ID = reference module number is transferred to table CT_HIST_TIME_SERIES. This completes the artificial history.
Example
Notes
Further information
Parameters
CS_EXCEPTCT_HIST_TIME_SERIES
IS_REF_MODULE
IT_INT_TIME_SERIES
IT_INT_TIME_SERIES_ORIG
IT_REF_ITEMS
Exceptions
CX_STATIC_CHECKFunction Group
/SAPLFU_HISTORYCPI1466 during Backup TXBHW - Original Tax Base Amount in Local Currency
This documentation is copyright by SAP AG.
Length: 1856 Date: 20240417 Time: 223248 sap01-206 ( 55 ms )