cancel
Showing results for 
Search instead for 
Did you mean: 

Execute program from SAP R/3 using SAP.NET Connector

Former Member
0 Kudos

Hi experts,

I need to call a program (>>> ABAP: Execute program >>> like with TA SA38)

with the SAP .NET Connector remotely. I have one input parameter (the userid)

How does this work within a VS. NET 2005 C# Application? I can only find how to

Read Tables from SAP R/3 using SAP.NET Connector like it is described below:

[http://www.codeproject.com/KB/database/SapDBReader.aspx|http://www.codeproject.com/KB/database/SapDBReader.aspx]

may you please help me with this problem?

Thanks and kind regards,

Peter

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

great support! Thanks a lot! problem was solved with BAPI inplementation

christof_kohler
Explorer
0 Kudos

Hey,

you need to write a BAPI (remote enabled function module ) in ABAP that executes the program you want to execute.

Kind Regards

Christof

Former Member
0 Kudos

Hi Peter,

Be aware of the limitation of the SAP Connector for .NET (NCo) that there is only a version integrated in VS2003, dependent upon .NET 1.1. In fact, the technology is outdated and will not be continued; a better future-proof direction is to apply the webservices approach.

Given that, in your particular situation it can be that NCo is a perfectly viable enough tool, or even the only option (dependent upon your SAP version). There is a documented workaround on [SDN |https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/92333e6b-0b01-0010-9cbf-fecd62d6c895?overridelayout=true]for getting the NCo operational within a VS2005/VS2008 and .NET 2.0-3.5 environment.

There are also more resources on how to use the NCo; for instance [Using the SAP.NET Connector to Connect your .NET Applications to SAP|http://www.codeproject.com/KB/dotnet/SAP_NET_Connector.aspx]. Another good resource is the book Microsoft.NET and SAP by Juergen Daiberl et al.

Regards, William.