cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hello,

This is my first raised question to the community.

I've just very recently found out that it is possible to record steps in SAP and save them to a vb file.

At the same time I also found out that, you can use an adapted code e.g. inside a VBA excel file and run it to create the same behavior as if you were pressing the run command in SAP for such a stored script.

This was a big thing to me because working in SAP and to have any possible interaction to it from the "outside" would be a mind changer.

I've since searched and searched for a way to create my interaction outside the VBA IDE and to use Visual Studio to run my code. So far, it was impossible to me to have it working. Errors after errors.

My question at this point, without having to keep spending time is simple: Can I assume this is even possible? Use a VS application to run C# or VB.NET to do the simplest thing like run a transaction in SAP from the outside?

I use Windows 10 - 64 bit and the SAP GUI for Windows release 7600.1.9.1160.

If anyone could provide me the feedback, I could then build up my knowledge and start asking step by step questions.

I have absolutely no knowledge about this topic. I'm familiar with C# and just a small bit on VB.NET, so, any gain from this point is a benefit. To be honest, there should be a lot of other people in the same conditions.

Please let me have your precious feedback.

Many thanks in advance.

Regards

View Entire Topic
ptuga
Explorer
0 Likes

Hi Stefan,

Sorry for the delay. And sorry if I don't understand your explanation.

When I said to leave the connection open, it means just that. Open the connection and leave it open for me to use as I please (using another app not within the same app). I can run a scrip once or twice but not within an automated process. When I need it.

The idea is if I need to run a scrip called from my external app, to make sure a connection is open for me to do that.

Creating the object but not deleting it after?

I'm not sure if this changes your perception on the question?

Also, I was able to get the connector files to start my new app. But where do I start?

Is there any basic/simple examples on how to run a transaction? Something as basic as if running code as if I'm running a script to get the same data?

Please let me know. I'm very keen to understand what's left for me to use.

Thanks.

Kind regards,

Pedro