调用SAP事务,使用给定的参数执行,并使用C#或VB.net下载报告 [英] Call a SAP transaction, execute with given parameters and download a report with C# or VB.net

查看:114
本文介绍了调用SAP事务,使用给定的参数执行,并使用C#或VB.net下载报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对ABAP一点都不熟悉,我正在尝试为我的工作自动化SAP报告(从SAP R/3中已执行事务的结果下载).

I'm not familiar with ABAP at all and I'm trying to automate a SAP report for my job (downloaded from the result of an executed transaction in SAP R/3).

此刻,我必须打开SAP(当然是手动),登录,调用事务,向其中添加一些参数,执行它并下载第一个报告.之后,我必须变通解决(我已经自动化了,所以这不是问题),但是随后我必须从中获取其他一些参数,并调用另一个事务以使用我从第一个报告中获得的新参数来执行. ..再等等2次.

At the moment I have to open SAP (manually of course), login, call the transaction, add some parameters to it, execute it and download the first report. After that I have to work it around (thing that I already automate, so it's not a problem) but then I have to get some other parameters from it and call another transaction to execute with the new parameters that I got from the first report... And so on 2 more times.

我的问题是,在使所有与excel相关的东西自动化之后,我找不到与SAP R/3交互的方法来登录,调用事务,使用参数执行并使用C#或VB获取报告.网

My problem is that, after automating all the excel related stuff, I can't find a way to interact with SAP R/3 to login, call the transaction, execute with the parameters and get the report with C# or VB.net

有人可以给我提示吗?

我在Google上搜索了几个小时,发现我可能必须使用RFC和BAPI,但是我仍然不知道该怎么做,也不知道如何正确使用它们(如果我没错的话)我必须).

I googled for a couple of hours and all I found out is that I may have to work with RFC's and BAPI's but I still can't figure out how to do it nor how to use these properly (if I'm right that I have to).

推荐答案

我发现SAP具有脚本选项,通过它我可以像录制宏一样记录"步骤(甚至可以它在第二架飞机上!),所以我正在研究 VB.NET和VBScript 来完成此任务,这也是完全可能且简单的.

I discovered that SAP has a scripting option, with which I can 'record' steps somewhat like a macro (and it even does it in second plane!) so I'm working on VB.NET and VBScript to get this done, it's perfectly possible and simple aswell.

简介SAP Gui Scripting 是我用来实现此目标的指南.

Introduction to SAP Gui Scripting is what I used as a guide to implement this.

这篇关于调用SAP事务,使用给定的参数执行,并使用C#或VB.net下载报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆