Member You
#1 in Business Subscribe Email Print

You are here: Home > Computers and Technology > Software > SAP Business One Integration with Service Management System

Tags

  • select
  • spanish
  • spanish property
  • using systemdiagnostics
  • variablespublic static

  • Links

  • Black Cohosh For Hot Flashes
  • Things To Take Care Of Before Moving
  • The First Signs of Pregnancy
  • Member You - SAP Business One Integration with Service Management System

    Become Successful! Become Multilingual!
    Now in the world we live in these days I am going to tell you one thing! Thanks to the internet, improved transportation etc. now business ventures and networking can be done overseas easily and not only that business building can never be easier as well!! But why stop there? Sure chances are you are satisfied with the business and the number of clients you have attracted over the time but why not reach out internationally and worldwide?But in order to do that you need to learn new langauges such as Spanish and Japanese for instance. Well English is still the lingua franca of the world but still wouldn't you make a better impression in the networking world if you spoke with future clients or partners in their native language? It saying to them "Hi, I am an
    imal(3).Value;

    description=reader.GetSqlString(4).ToString();

    itemnumber=reader.GetSqlString(5).ToString();

    //add fields

    bTime=(double)billableTime;

    uPrice=(double)unitPrice;

    Console.WriteLine(billableTime);

    Console.WriteLine(billableTime.ToString());

    Console.WriteLine(unitPrice.ToString());

    Console.WriteLine(lineTotal.ToString());

    Console.WriteLine(description.ToString());

    Console.WriteLine(itemnumber.ToString ());

    Console.WriteLine();

    //Adding order

    OrderApp.oOrder = ( ( SAPbobsCOM.Documents )( OrderApp.oCompany.GetBusinessObject( SAPbobsCOM.BoObjectTypes.oOrders ) ) );

    // set properties of the Order object

    OrderApp.oOrder.CardCode = accountNumber;

    OrderApp.oOrder.HandWritten = SAPbobsCOM.BoYesNoEnum.tNO;

    SAPbobsCOM.Recordset rs = null;

    // Create the next Order number

    object s

    What the Employee Needs to Know About COBRA to Protect Himself and his Family
    The first question from one just terminated from his job is: What is COBRA and what are my rights and my options. Congress passed the landmark Consolidated Omnibus Budget Reconciliation Act (COBRA) health benefit provisions in 1986. First of all, COBRA can only be offered to employees and or their dependents if the employer has 20 or more employees. An employer can not legally keep an employee on his insurance plan if he or she is not a full time employee unless he or she qualifies for COBRA benefits. The employee and or his dependents can only stay on the past employers plan for up to 18 months unless the employee was released do to a disability. In the case of a disability the employee can stay on the plan for up to 29 months. In the case of employee death,
    In this small article we will give you SAP BO integration example with C# code. Service Management System uses Microsoft CRM Case object to store service hours. 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

    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 – this is especially important for multinational companies, opening manufacturing or distribution facilities in Brazil.

    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";

    OrderApp.oCompany.Connect();

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

    SqlConnection connection = new SqlConnection();

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

    connection.Open();

    SqlCommand command = new SqlCommand();

    command.CommandType = System.Data.CommandType.Text;

    command.CommandText = "SELECT * FROM ALBATIMELOG";

    command.Connection = connection;

    SqlDataReader reader = command.ExecuteReader();

    while(reader.Read())

    {

    decimal billableTime, unitPrice, lineTotal;

    double bTime, uPrice;

    description="";

    itemnumber="";

    accountNumber="";

    Console.WriteLine("Record:");

    //reading from timelog

    accountNumber=reader.GetSqlString(0).ToString();

    billableTime=reader.GetSqlDecimal(1).Value;

    unitPrice=reader.GetSqlDecimal(2).Value;

    lineTotal=reader.GetSqlDecimal(3).Value;

    description=reader.GetSqlString(4).ToString();

    itemnumber=reader.GetSqlString(5).ToString();

    //add fields

    bTime=(double)billableTime;

    uPrice=(double)unitPrice;

    Console.WriteLine(billableTime);

    Console.WriteLine(billableTime.ToString());

    Console.WriteLine(unitPrice.ToString());

    Console.WriteLine(lineTotal.ToString());

    Console.WriteLine(description.ToString());

    Console.WriteLine(itemnumber.ToString ());

    Console.WriteLine();

    //Adding order

    OrderApp.oOrder = ( ( SAPbobsCOM.Documents )( OrderApp.oCompany.GetBusinessObject( SAPbobsCOM.BoObjectTypes.oOrders ) ) );

    // set properties of the Order object

    OrderApp.oOrder.CardCode = accountNumber;

    OrderApp.oOrder.HandWritten = SAPbobsCOM.BoYesNoEnum.tNO;

    SAPbobsCOM.Recordset rs = null;

    // Create the next Order number

    object sS

    How To Load A Self Drive Moving Truck For Your Small Move
    The Preliminaries It all starts with proper packing... and proper packaging. Boxes should be double walled, and if they are all the same size, stacking is facilitated.You should resist the temptation to scrounge old boxes from your local supermarket. These boxes (apart from wine boxes) are flimsy, and designed so that when stacked, the contents support the weight... not the walls of the box. As much as possible should be boxed up, to allow neat and stable stacking on the van. They should be of appropriate size: No larger than a twelve bottle wine case for books and breakables, and up to three times that size for clothes. Boxes should be closed flat and securely taped up, and should be of a comfortable lifting weight.You will need some blanket
    tion 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 – this is especially important for multinational companies, opening manufacturing or distribution facilities in Brazil.

    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";

    OrderApp.oCompany.Connect();

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

    SqlConnection connection = new SqlConnection();

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

    connection.Open();

    SqlCommand command = new SqlCommand();

    command.CommandType = System.Data.CommandType.Text;

    command.CommandText = "SELECT * FROM ALBATIMELOG";

    command.Connection = connection;

    SqlDataReader reader = command.ExecuteReader();

    while(reader.Read())

    {

    decimal billableTime, unitPrice, lineTotal;

    double bTime, uPrice;

    description="";

    itemnumber="";

    accountNumber="";

    Console.WriteLine("Record:");

    //reading from timelog

    accountNumber=reader.GetSqlString(0).ToString();

    billableTime=reader.GetSqlDecimal(1).Value;

    unitPrice=reader.GetSqlDecimal(2).Value;

    lineTotal=reader.GetSqlDecimal(3).Value;

    description=reader.GetSqlString(4).ToString();

    itemnumber=reader.GetSqlString(5).ToString();

    //add fields

    bTime=(double)billableTime;

    uPrice=(double)unitPrice;

    Console.WriteLine(billableTime);

    Console.WriteLine(billableTime.ToString());

    Console.WriteLine(unitPrice.ToString());

    Console.WriteLine(lineTotal.ToString());

    Console.WriteLine(description.ToString());

    Console.WriteLine(itemnumber.ToString ());

    Console.WriteLine();

    //Adding order

    OrderApp.oOrder = ( ( SAPbobsCOM.Documents )( OrderApp.oCompany.GetBusinessObject( SAPbobsCOM.BoObjectTypes.oOrders ) ) );

    // set properties of the Order object

    OrderApp.oOrder.CardCode = accountNumber;

    OrderApp.oOrder.HandWritten = SAPbobsCOM.BoYesNoEnum.tNO;

    SAPbobsCOM.Recordset rs = null;

    // Create the next Order number

    object s

    How to Convince Your Visitors to Return Often
    One visit does not make a sale. Be sure to make your Web site attractive to your visitors so that they want to come back. You don't win their trust right away. It may take 4-7 visits before they buy.Here's Five Ways:1. Check and Correct What's Not WorkingFirst, be sure you don't have long passages of bio or information about yourself on your home page. People don't care about you and they want information short and sweet. They want solutions to their challenges and they want free information.Second, test all of your links often to make sure they work. Nothing discourages buyers more than disorganized copy, links that don't work, and difficulty getting to where they want to go.2. Upload New, Original, and Useful Content Often
    >

    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";

    OrderApp.oCompany.Connect();

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

    SqlConnection connection = new SqlConnection();

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

    connection.Open();

    SqlCommand command = new SqlCommand();

    command.CommandType = System.Data.CommandType.Text;

    command.CommandText = "SELECT * FROM ALBATIMELOG";

    command.Connection = connection;

    SqlDataReader reader = command.ExecuteReader();

    while(reader.Read())

    {

    decimal billableTime, unitPrice, lineTotal;

    double bTime, uPrice;

    description="";

    itemnumber="";

    accountNumber="";

    Console.WriteLine("Record:");

    //reading from timelog

    accountNumber=reader.GetSqlString(0).ToString();

    billableTime=reader.GetSqlDecimal(1).Value;

    unitPrice=reader.GetSqlDecimal(2).Value;

    lineTotal=reader.GetSqlDecimal(3).Value;

    description=reader.GetSqlString(4).ToString();

    itemnumber=reader.GetSqlString(5).ToString();

    //add fields

    bTime=(double)billableTime;

    uPrice=(double)unitPrice;

    Console.WriteLine(billableTime);

    Console.WriteLine(billableTime.ToString());

    Console.WriteLine(unitPrice.ToString());

    Console.WriteLine(lineTotal.ToString());

    Console.WriteLine(description.ToString());

    Console.WriteLine(itemnumber.ToString ());

    Console.WriteLine();

    //Adding order

    OrderApp.oOrder = ( ( SAPbobsCOM.Documents )( OrderApp.oCompany.GetBusinessObject( SAPbobsCOM.BoObjectTypes.oOrders ) ) );

    // set properties of the Order object

    OrderApp.oOrder.CardCode = accountNumber;

    OrderApp.oOrder.HandWritten = SAPbobsCOM.BoYesNoEnum.tNO;

    SAPbobsCOM.Recordset rs = null;

    // Create the next Order number

    object s

    When Buying a Spanish Property - Do You Need An Agent? Find Out Now
    As many have learnt the hard way – there are agents in Spain who will willingly take you for a ride – and it tends to be the bigger and well known foreign agencies that are the worst (the very ones who say you can trust them). So in this jungle is it worth using an agent to buy your Spanish Property or is it worth going on your own?There is no doubt that an agent can be of great assistance if they know their area and should be able to help you narrow down your search to a few specific properties. Ideally they should sit with you a while and endeavour to discover your real requirements for your house. But this boils down to much more than how many bedrooms a house has and if it has a pool or not. For example you may see your dream house in a photo, and the agent
    .oCompany.CompanyName);

    SqlConnection connection = new SqlConnection();

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

    connection.Open();

    SqlCommand command = new SqlCommand();

    command.CommandType = System.Data.CommandType.Text;

    command.CommandText = "SELECT * FROM ALBATIMELOG";

    command.Connection = connection;

    SqlDataReader reader = command.ExecuteReader();

    while(reader.Read())

    {

    decimal billableTime, unitPrice, lineTotal;

    double bTime, uPrice;

    description="";

    itemnumber="";

    accountNumber="";

    Console.WriteLine("Record:");

    //reading from timelog

    accountNumber=reader.GetSqlString(0).ToString();

    billableTime=reader.GetSqlDecimal(1).Value;

    unitPrice=reader.GetSqlDecimal(2).Value;

    lineTotal=reader.GetSqlDecimal(3).Value;

    description=reader.GetSqlString(4).ToString();

    itemnumber=reader.GetSqlString(5).ToString();

    //add fields

    bTime=(double)billableTime;

    uPrice=(double)unitPrice;

    Console.WriteLine(billableTime);

    Console.WriteLine(billableTime.ToString());

    Console.WriteLine(unitPrice.ToString());

    Console.WriteLine(lineTotal.ToString());

    Console.WriteLine(description.ToString());

    Console.WriteLine(itemnumber.ToString ());

    Console.WriteLine();

    //Adding order

    OrderApp.oOrder = ( ( SAPbobsCOM.Documents )( OrderApp.oCompany.GetBusinessObject( SAPbobsCOM.BoObjectTypes.oOrders ) ) );

    // set properties of the Order object

    OrderApp.oOrder.CardCode = accountNumber;

    OrderApp.oOrder.HandWritten = SAPbobsCOM.BoYesNoEnum.tNO;

    SAPbobsCOM.Recordset rs = null;

    // Create the next Order number

    object s

    What is SQL Injection
    SQL Injection is one of the many web attack mechanisms used by hackers to steal data from organisations. It is perhaps one of the most common application layer attack techniques used today.Web applications allow legitimate website visitors to submit and retrieve data to/from a database over the Internet using their preferred web browser.Databases are central to modern websites – they store data needed for websites to deliver specific content to visitors and render information to customers, suppliers, employees and a host of stakeholders. User credentials, financial and payment information, company statistics may all be resident within a database and accessed by legitimate users through off-the-shelf and custom web applications. Web applications and databa
    imal(3).Value;

    description=reader.GetSqlString(4).ToString();

    itemnumber=reader.GetSqlString(5).ToString();

    //add fields

    bTime=(double)billableTime;

    uPrice=(double)unitPrice;

    Console.WriteLine(billableTime);

    Console.WriteLine(billableTime.ToString());

    Console.WriteLine(unitPrice.ToString());

    Console.WriteLine(lineTotal.ToString());

    Console.WriteLine(description.ToString());

    Console.WriteLine(itemnumber.ToString ());

    Console.WriteLine();

    //Adding order

    OrderApp.oOrder = ( ( SAPbobsCOM.Documents )( OrderApp.oCompany.GetBusinessObject( SAPbobsCOM.BoObjectTypes.oOrders ) ) );

    // set properties of the Order object

    OrderApp.oOrder.CardCode = accountNumber;

    OrderApp.oOrder.HandWritten = SAPbobsCOM.BoYesNoEnum.tNO;

    SAPbobsCOM.Recordset rs = null;

    // Create the next Order number

    object sSQL = "SELECT TOP 1 DocNum FROM dbo.ORDR ORDER BY DocNum DESC";

    rs = ( ( SAPbobsCOM.Recordset )( OrderApp.oCompany.GetBusinessObject( SAPbobsCOM.BoObjectTypes.BoRecordset ) ) );

    rs.DoQuery( System.Convert.ToString( sSQL ) );

    while ( !( ( rs.EoF ) ) )

    {

    docNumber=System.Convert.ToInt32( rs.Fields.Item( 0 ).Value ) + 1;

    rs.MoveNext();

    }

    // Default Currency

    string dfcurrency="";

    sSQL = "SELECT MainCurncy FROM dbo.OADM";

    rs = ( ( SAPbobsCOM.Recordset )( OrderApp.oCompany.GetBusinessObject( SAPbobsCOM.BoObjectTypes.BoRecordset ) ) );

    rs.DoQuery( System.Convert.ToString( sSQL ) );

    while ( !( ( rs.EoF ) ) )

    {

    dfcurrency= System.Convert.ToString(rs.Fields.Item( 0 ).Value);

    rs.MoveNext();

    }

    OrderApp.oOrder.DocNum = docNumber;

    OrderApp.oOrder.DocDate = System.DateTime.Today;

    OrderApp.oOrder.DocDueDate = System.DateTime.Today.AddDays(30);

    OrderApp.oOrder.DocCurrency = dfcurrency;

    OrderApp.oOrder.Lines.ItemCode = itemnumber;

    OrderApp.oOrder.Lines.ItemDescription = description;

    OrderApp.oOrder.Lines.Quantity = bTime;

    OrderApp.oOrder.Lines.Price = uPrice;

    OrderApp.oOrder.Lines.TaxCode = "00";

    OrderApp.oOrder.Lines.LineTotal = uPrice*bTime;

    //ATTENTION - you should NOT add last row!!!

    //OrderApp.oOrder.Lines.Add();

    OrderApp.oCompany.GetLastError( out lErrCode, out sErrMsg );

    lRetCode = OrderApp.oOrder.Add(); // Try to add the order to the database

    if ( lRetCode != 0 )

    {

    OrderApp.oCompany.GetLastError( out lErrCode, out sErrMsg );

    }

    }

    }

    } }

    HTTP = HTML link (for blogs, profiles,phorums):
    <a href="http://www.memberyou.net/article/178724/memberyou-SAP-Business-One-Integration-with-Service-Management-System.html">SAP Business One Integration with Service Management System</a>

    BB link (for phorums):
    [url=http://www.memberyou.net/article/178724/memberyou-SAP-Business-One-Integration-with-Service-Management-System.html]SAP Business One Integration with Service Management System[/url]

    Related Articles:

    Automatic Responder Course – How To Write Your Email Sequence For Maximum Effect

    Plagiarism Peddlers?

    Telecommunications and Atomic Clocks

    Bookmark it: del.icio.us digg.com reddit.com netvouz.com google.com yahoo.com technorati.com furl.net bloglines.com socialdust.com ma.gnolia.com newsvine.com slashdot.org simpy.com shadows.com blinklist.com