/FRE/FU_HIST_CALC_AVERAGE - Artificial history: Calculate historical data for one reference module

BAL Application Log Documentation   TXBHW - Original Tax Base Amount in Local Currency  
This 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 bythe weighting factor and the products of that result are then totaled. The total amount is then dividedby 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 notincluded in the calculation of the artificial history; that is, it is not included in the sum of theproducts 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_EXCEPT
CT_HIST_TIME_SERIES
IS_REF_MODULE
IT_INT_TIME_SERIES
IT_INT_TIME_SERIES_ORIG
IT_REF_ITEMS

Exceptions

CX_STATIC_CHECK

Function Group

/SAPLFU_HISTORY

RFUMSV00 - Advance Return for Tax on Sales/Purchases   CPI1466 during Backup  
This documentation is copyright by SAP AG.


Length: 1762 Date: 20120524 Time: 133519     triton ( 112 ms )