Similarly to selecting parameters dynamically in the infopackage, as
discussed in the previous post, we may need to select parameters
dynamically in a DTP. In the post below I will review an example of how
to make selections dynamically in the DTP. A practical application of
this approach can be selection of records from a DSO by date range, say
we want to select all records with Date From lower than [Today + 30
days] and Date To greater than [Today - 30 days].
In the Filter selections for the DTP we have to click on the “Routine create” button for the infoobject we want to use:
As DTP selections are stored as a range we have to populate fields of the table l_t_range with appropriate selection parameters.