Skip to Content
author's profile photo Former Member
Former Member

Accessing the BAPI Control in C#

Can someone provide some code snippets or otherwise direction on how to access the BAPI Control in C#? I've done this in VBA many times. However am struggling with the syntax in C#.

Do I need the .NET Connector? Isn't that product at end-of-life? It doesnt work with VS 2008 does it?

Basically what I need to know is how to:

1) Instantiate the control

2) Make a connection and Login to SAP

3) Call a BAPI


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Sep 09, 2009 at 10:05 AM

    Hi Wardell,

    Yes, it is end-of-life in the sense that SAP will not continue it. However, the technology still works, so if it's sufficient for your situation, and in case it's not a problem for you that it will not be extended, it might do a satisfactory job.

    SAP has only delivered a version which depends on .NET 1.1, and integrates within VS2003. But there is a by SAP documented approach to use it from later .NET frameworks versions: [Using SAP Connector for MS .NET (NCO) in Microsoft Visual Studio 2005|]

    For a code example in C# of the NCo usage: [A Complete Sample : Connection to SAP from Visual Studio .NET 2003 via RFC|]

    Also the following blog may be helpfull: [Connecting .Net Application to SAP server using SAP.Net Connector 2.0|]

    Best regards, William.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.