Extract file from on prem SAP server

I have a requirement to extract data from a file present on premise SAP server. Can anyone please suggest me the steps required.