Skip to Content
0
Former Member
Jul 19, 2010 at 10:01 AM

changin the code of this form to include current month + the next 8 months

77 Views

Hi All,

please i need to change the code of this BW ABAP routine to filter the data between the current month + the next 8 months

example:

if i execute my BW DTP (data transfer process) with this 0calmonth date 201007 i want to extract data between 201007 and 201103

actually the code is:

form compute_

tables l_t_range structure rssdlrange

changing p_subrc like sy-subrc.

  • Insert source code to current selection field

$$ begin of routine - insert your code only below this line -

data: l_idx like sy-tabix.

read table l_t_range with key

fieldname = ' '.

l_idx = sy-tabix.

*....

if l_idx 0.

modify l_t_range index l_idx.

else.

append l_t_range.

endif.

p_subrc = 0.

$$ end of routine - insert your code only before this line

can you help me please on how should be the ABAP code.

thanks

Bilal