Quantcast
Channel: SCN: Message List - Data Warehousing
Viewing all articles
Browse latest Browse all 3366

Dynamic filter in DTP BW 7.4 ( change year for months from April to Dec)

$
0
0

Hi All

 

Can you please help me writing a piece of ABAP code, which I will have to use in DTP filter?

 

In my filter I have few restrictions, but one of them will have to be dynamic.

 

I need to take only values from April (04) to December (12) for current year. So for example in this year values which should be moved from one cube to another are only those, for which version is equal or grater to 04.2016. Of course the highest and equal values will be 12.2016

Next year values to be taken are from 04.2017 up to 12.2017 ( including 04 and 12)  and so far.

 

 

I started by writing that:

 

data: v_month_min type /BI0/OICALMONTH.

data: v_month_max type /BI0/OICALMONTH.

 

 

l_t_range-sign = 'I'.                        * is integer
l_t_range
-option = 'BT'.                 * take only values in between as defined below

l_t_range-low = v_month_min.      * assign low value

v_month_min = ‘04’.                       * lowest value is month 04 (April)

l_t_range-high = v_month_max.    * assign the highest value

v_month_max = ‘12’.                      * highest value is month 12 (December)


but I do not know what should be next.

Probably something like:

....


l_t_range-low = sy-datum+2(4).

......


Can you please help me finish it, probably there is a smarter way to have that code.


Thank you in advance for help.



BR

Michal


Viewing all articles
Browse latest Browse all 3366

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>