cancel
Showing results for 
Search instead for 
Did you mean: 

Using Batch Input with SAP .net Connector

Former Member
0 Kudos

Hi,

We have an application written in c# and need to interoperate with SAP in various ways. For example RFC and also Batch Input.

I know the .net Connector can handle BAPI etc. but I've nothing read about Batch Input in the manual. It is mantadory as we need to start the SAP GUI from our application and fill up some Dynpro with data (well I'm reall no SAP expert, but I was told it's the only way we can use). I tend to believe that I have to use a third party product for this (eg. from softwise or erpconnect.net). Does anybody know for sure?

Thanks, Patric

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Patric,

I think you should make a Batch Input and put it in a Function Module that is marked as Remote Enabled. That way you can provide the data from .NET. If you don't have the tool to connect your VS with SAP, I would suggest you to use Softwise's SAPExplorer. It's very easy to use.

I hope it helps.

Answers (1)

Answers (1)

Former Member
0 Kudos

We are now using ERPConnect.NET to access SAP from Visual Studio / C#

Former Member
0 Kudos

Hi,

you are using ERPConnect?

Then you should know this sample here:

// Reset the batch steps

transaction1.BatchSteps.Clear();

// fill new steps

transaction1.ExecutionMode = ERPConnect.Utils.TransactionDialogMode.ShowOnlyErrors;

transaction1.TCode = "MMBE";

transaction1.AddStepSetNewDynpro("RMMMBEST","1000");

transaction1.AddStepSetOKCode("ONLI");

transaction1.AddStepSetCursor("MS_WERKS-LOW");

transaction1.AddStepSetField("MS_MATNR-LOW",textBox1.Text);

transaction1.AddStepSetField("MS_WERKS-LOW",textBox2.Text);

// connect to SAP

r3Connection1.UseGui = true;

if (r3Connection1.AskUserAndOpen(true))

// Run

transaction1.Execute();

Regards,

Bülent