Integration pulls Customer Number, Billable Time, Unit Price, Service Description and Item number from various MS CRM 3.0 objects, such as Activity, User Name, Account and sends them into staging table ALBATIMELOG and from there it sends these fields into SAP B1. Integration is implemented as SAP Business One SDK application – please refer to your SAP B1 reseller to help you with your specific integration challenges. In our opinion, if you already invested into eCommerce website and if it is already in production, you should probably consider integrate this legacy e-commerce, rather than redeploy brand new SAP B1 eCommerce solution, this is why such small integrations, as below – are feasible.

This specific case proves you that you can deploy SAP Business One as back end ERP solution for Servicing company: repair and maintenance, contracts, project organization, field service, consulting, auto-repair shops, communication, telephony, utilities maintenance, etc. SAP Business One supports multicurrency, integration to SAP mySAP, SAP all-in-one, R/3, plus we know cases when SAP B1 is integrated with Microsoft ERP systems, such as Microsoft Great Plains Dynamics GP, Oracle eBusiness Suite/Financials.

If you are looking to integrate your legacy MRP application with SAP BO in different module, Manufacturing/production, for example – SAP Business One SDK can help you to develop similar ongoing integration – it allows you to address virtually all SAP B1 objects

Below is application code, you should create is as C# console application project in MS Visual Studio

using Microsoft.VisualBasic;
using System;
using System.Collections;
using System.Data;
using System.Diagnostics;
using System.Data.SqlClient;

namespace ConsoleApplication2


sealed public class OrderApp


public static DataTable TableLines; // the datasource of the datagrid called DataLines.

public static SAPbobsCOM.Documents oOrder; // Order object

public static SAPbobsCOM.Documents oInvoice; // Invoice Object

public static SAPbobsCOM.Recordset oRecordSet; // A recordset object

public static SAPbobsCOM.Company oCompany; // The company object

// Error handling variables

public static string sErrMsg;

public static int lErrCode;

public static int lRetCode;

static string description, itemnumber, accountNumber;

public static void Main()


int docNumber=0;

OrderApp.oCompany = new SAPbobsCOM.Company();

OrderApp.oCompany.Server = “localhost”; // change to your company server

OrderApp.oCompany.language = SAPbobsCOM.BoSuppLangs.ln_English; // change to your language

OrderApp.oCompany.UseTrusted = true;

OrderApp.oCompany.CompanyDB = “TEST_SAPBO_ALBA_US”;

OrderApp.oCompany.UserName = “manager”;

OrderApp.oCompany.Password = “manager”;


Console.WriteLine(“Company is: “+OrderApp.oCompany.CompanyName);

SqlConnection connection = new SqlConnection();

connection.ConnectionString = “Integrated Security = true;Data Source = CRMSERVER; Initial Catalog = CRMCUSTOMIZATION;”;


By Haadi