Rollover of residual amount from DRIP

Hi, wondering if it’s possible to build in a feature to rollover residual cash from a DRIP for future DRIP allocations?
TIA