Hi Thomas,
I am becoming curious what is the issue with your coding and/or BEx Query constellation. The coding part is quite clear now but I did not see any information re. the BEx Query and more specifically the Selection where the variable is used. The problem could also be there.
First the coding. I have only a few recommendations:
- Data declaration: I suggest to use the data element of 0CALMONTH, i.e. /BI0/OICALMONTH for LV_RSCALMONTH_LOW and LV_RSCALMONTH_HIGH to be exactly in line with the definition of your Time Characteristic (although the technical properties do not differ);
- I suggest to use the following statement to compose the low value: CONCATENATE LOC_VAR_RANGE-LOW(4) '01' INTO LV_RSCALMONTH_LOW.;
- After the READ TABLE statement, check if SY_SUBRC = 0.
Anyway, please try these coding changes. If it does not solve the issue, please provide more information on the BEx Query and especially the Selection where the variable is used.
Thanks,
Sander