What is the best way to get purchase order data into SAP from Access

Hi All

I have a customer with a SAP ERP system. They want my poor Access ap to interact. Specifically with purchasing requirement for the materials that my Ap lists.  

They say that they can "Suck" most data formats, especially Excel into their system
Derek BrownMDAsked:
Who is Participating?
Scott McDaniel (Microsoft Access MVP - EE MVE )Connect With a Mentor Infotrakker SoftwareCommented:
You'd need to determine the format of the Excel sheet (i.e. the columns/rows needed) and then create a routine to produce that. It may be as simple as creating a query that shows this data, and then using the Export comment from the ribbon to do that. Or you may need to develop an automated Excel export that creates the exact format you need.

Generally products like SAP will require a specific format, so be sure to get full details of that spec before you begin work.

Once you've done that, if you'd like to email the results to someone else you'd have to build code to do that as well.

Can this be done to work with any email program?
That's a wide range of programs, and the answer to that would have to be 'no' - you can't automate some of them, so there's no way to do so from Access. That said, if you can determine the program(s) they'll be using, you could perhaps automate those programs to send the email.

Or you could use something CDO or vbSendMail:


chaauConnect With a Mentor Commented:
if your app in the same network as the SAP system they can create an ODBC or Jet OLEDB connection to pull data directly from your database. If your database is not directly accessible you can create a simple vbs script that will run on a schedule. The vbs script will just create a csv file that can be stored on a shared drive (or sent via ftp)
If you provide more details we will be able to advise further
Derek BrownMDAuthor Commented:
Thank you for that.

Had a meeting with the client today they seem happiest with an excel file. Probably because the client wants to send data to their head office in Portugal. There is a shared file between the systems of both countries but I think they like the simplicity for now with excel.

What I would like is code for a button on the main form that opens the query and export the data as an excel document opens the email client and attaches the data file. Can this be done to work with any email program?
Derek BrownMDAuthor Commented:
Thank you both
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.