usingSystem;usingERPConnect;usingERPConnect.Utils;// Set your ERPConnect licenseLIC.SetLic("xxxx");// Open the connection to SAPusingvarconnection=newR3Connection(host:"server.acme.org",systemNumber:00,userName:"user",password:"passwd",language:"EN",client:"001"){Protocol=ClientProtocol.NWRFC,};connection.Open();// create the functionRFCFunctionbarfunc=connection.CreateFunction("BAPI_BARCODE_SENDLIST");// Create and fill the frist rowRFCStructurerow=barfunc.Tables["BARCODETABLE"].AddRow();row["BARCODE"]="4711";row["CONTREP"]="Content Repository";row["DOCID"]="0045935682";row["ARDATE"]="20070701";row["DOCTYPE"]="ZTA";// Create and fill the second rowrow=barfunc.Tables["BARCODETABLE"].AddRow();row["BARCODE"]="4713";row["CONTREP"]="Content Repository";row["DOCID"]="0045935683";row["ARDATE"]="20070702";row["DOCTYPE"]="ZTA";// Execute the functionbarfunc.Execute();// process return structureRFCStructureret=barfunc.Imports["RETURN"].ToStructure();if(ret["TYPE"].ToString().Equals(""))Console.WriteLine("No error reported");elseConsole.WriteLine("Message: "+ret["MESSAGE"]);Console.WriteLine("Press Enter to exit");Console.ReadLine();