DTP filter routine example

We will get a requirement to write DTP filter routines.
At that time we need to follow simple steps then, our routine will be ready... :)

Create Routine for selection field in routine.
Now we need to follow below steps:

form compute_

After this statement we need to implement our own customised code and return l_t_range internal table.

        l_t_range-sign = 'I'.
         l_t_range-option = 'EQ'.
        l_t_range-iobjnm = '0CALDAY'.
         l_t_range-fieldname = 'CALDAY'.
         l_t_range-low = '20110101.
         append l_t_range.

That's it.. it will work for CALDAY.

Make your own code and Pass following Parameters.. then, it will work...


- Vamsi.

1 comment:

Unknown said...

Hi,

If I need to select two different values without range. Like I need to select the AC_DOC_TYP starting with K. Example KA, KB etc.Can I know How to implement this

Thanks in adavance