简体   繁体   中英

VBA: import joined SAP data to Excel

I'm currently working on a project and I'm trying to import production data from SAP using VBA to automate the process. However the database that I want to import is made up of multiple SAP-Databases like MARA and MARC. I have gotten to the point where I can import a single table but how can I join multiple tables together without importing them one by one and then doing the calculations afterwards?

Regards and thanks in advance

Sadly RFC Read Table can only pull from one table at a time. ( assuming this is the method you are currently using in VB A)

SQ01 Queries would let you Join Multiple Tables At once. But you would then Have to Manually Export the data, If you Cant do all your Calculations Within the Query.

SAP Has a reporting system with BEx Analyzer that may be able to Make the Joins if you have this software at your disposial

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM