I would suggest you need to learn about how to connect to SAP databases via
ADO and OLEDB or ODBC.
One thing you’ll need is the proper “Connection String” for SAP for your
particular environment. You may also need to learn about ADO if you haven’t
experienced it already.
Google searches with combinations of terms like SAP, Connection String, ADO,
OLEDB and ODBC should yield the results you’re looking for.
Once you get the proper Connection String, then you’re basically dealing
with straight ADO issues, of which there is a lot of documentation
available.