There is no such function to my knowledge.
Are you aware that there is a difference in SAP between writing the files to the application and presentation server (there is a section "working with files" in ABAP Help)? Which one are you trying to achieve?