Hi Michal,
Your DTP filter routine for 0CALMONTH could look as follows:
* Local data declaration
DATA:
l_calmonth_low TYPE /bi0/oicalmonth,
l_calmonth_high TYPE /bi0/oicalmonth,
l_s_range TYPE rssdlrange.
* Initialization
CLEAR:
l_calmonth_low,
l_calmonth_high,
l_s_range.
* Prepare calendar month range
concatenate sy-datum+0(4) '04' into l_calmonth_low.
concatenate sy-datum+0(4) '12' into l_calmonth_high.
* Fill calendar month range
l_s_range-fieldname = i_fieldnm.
l_s_range-sign = rs_c_range_sign-including.
l_s_range-option = rs_c_range_opt-between.
l_s_range-low = l_calmonth_low.
l_s_range-high = l_calmonth_high.
APPEND l_s_range TO l_t_range.
* Set return code to OK
p_subrc = 0.
Best regards,
Sander