Not sure if I understood your requirement correctly, but if you need BETWEEN condition for DOC_MATNR, why not put 2 input parameters, RANGE_FROM and RANGE_TO. Then you can apply the condition something like
DOC_MATNR >= RANGE_FROM and DOC_MATNR <= RANGE_TO.
Regards,
Ravi