I am facing the same exact issues. I did find SAP note 1874786 that sounds encouraging. It is explaining how to resolve the problem in an SAP program that uses SUBST_GET_FILE_LIST. It is basically a coping the FM code into a method.
I plan to give it a try.
Regards,
Steve