简体   繁体   English

VBA:将联接的SAP数据导入Excel

[英]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. 我目前正在研究一个项目,并且正在尝试使用VBA从SAP导入生产数据以使过程自动化。 However the database that I want to import is made up of multiple SAP-Databases like MARA and MARC. 但是,我要导入的数据库由多个SAP数据库(例如MARA和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. 遗憾的是,RFC读表一次只能从一个表中提取。 ( assuming this is the method you are currently using in VB A) 假设这是您目前在VBA中使用的方法

SQ01 Queries would let you Join Multiple Tables At once. SQ01查询可让您一次连接多个表。 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 SAP拥有一个带有BEx Analyzer的报告系统,如果您在处置中拥有此软件,该系统可能可以进行加入

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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