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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

chaauCommented:
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
0
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?
0
Scott McDaniel (Microsoft Access MVP - EE MVE )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:

http://www.experts-exchange.com/Microsoft/Development/MS_Access/Q_28093260.html

http://www.experts-exchange.com/Microsoft/Development/MS_Access/Q_28040888.html
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Derek BrownMDAuthor Commented:
Thank you both
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.