<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>5 Nov 2014 13:39:28 Z</lastBuildDate><pubDate>31 Oct 2014 10:51:56 Z</pubDate><description>Good Day&#13;
&#13;
We are using SAP Business One and I would like to integrate Windev with SAP. They have certain SDK's to do the job but I cannot seem to add it to Windev. There is one communication file that calls all the API's etc. it is called "SAPbouiCOM.exe". Here is an example of it being used in C# how will I do this in Windev?&#13;
&#13;
[code:wl]&#13;
//  SAP MANAGE UI API 2007 SDK Sample&#13;
//****************************************************************************&#13;
//&#13;
//  File:      HelloWorld.cs&#13;
//&#13;
//  Copyright (c) SAP MANAGE&#13;
//&#13;
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF&#13;
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO&#13;
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A&#13;
// PARTICULAR PURPOSE.&#13;
//&#13;
//****************************************************************************&#13;
&#13;
// BEFORE STARTING:&#13;
// 1. Add reference to the "SAP Business One UI API"&#13;
// 2. Insert the development connection string to the "Command line argument"&#13;
//-----------------------------------------------------------------&#13;
// 1.&#13;
//    a. Project-&gt;Add Reference...&#13;
//    b. select the "SAP Business One UI API 2007" From the COM folder&#13;
//&#13;
// 2.&#13;
//     a. Project-&gt;Properties...&#13;
//     b. choose Configuration Properties folder (place the arrow on Debugging)&#13;
//     c. place the following connection string in the 'Command line arguments' field&#13;
// 0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056&#13;
//&#13;
//**************************************************************************************************&#13;
&#13;
&#13;
using System;&#13;
using System.Windows.Forms;&#13;
class HelloWorld  { &#13;
    &#13;
    //**********************************************************&#13;
    // This parameter will use us to manipulate the&#13;
    // SAP Business One Application&#13;
    //**********************************************************&#13;
    &#13;
    private SAPbouiCOM.Application SBO_Application; &#13;
    &#13;
    private void SetApplication() { &#13;
        &#13;
        // *******************************************************************&#13;
        // Use an SboGuiApi object to establish connection&#13;
        // with the SAP Business One application and return an&#13;
        // initialized appliction object&#13;
        // *******************************************************************&#13;
        &#13;
        SAPbouiCOM.SboGuiApi SboGuiApi = null; &#13;
        string sConnectionString = null; &#13;
        &#13;
        SboGuiApi = new SAPbouiCOM.SboGuiApi(); &#13;
        &#13;
        // by following the steps specified above, the following&#13;
        // statment should be suficient for either development or run mode&#13;
        &#13;
        sConnectionString = System.Convert.ToString( Environment.GetCommandLineArgs().GetValue( 1 ) ); &#13;
        &#13;
        // connect to a running SBO Application&#13;
        &#13;
        SboGuiApi.Connect( sConnectionString ); &#13;
        &#13;
        // get an initialized application object&#13;
        &#13;
        SBO_Application = SboGuiApi.GetApplication( -1 ); &#13;
        &#13;
    } &#13;
    &#13;
    &#13;
    public HelloWorld() { &#13;
        &#13;
        &#13;
        //*************************************************************&#13;
        // set SBO_Application with an initialized application object&#13;
        //*************************************************************&#13;
        &#13;
        SetApplication(); &#13;
        &#13;
        //*************************************************************&#13;
        // send an "hello world" message&#13;
        //*************************************************************&#13;
        &#13;
        SBO_Application.MessageBox( "Hello World", 1, "Ok", "", "" ); &#13;
        &#13;
    } &#13;
} &#13;
[/code]&#13;
&#13;
Thanks</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48729-sap-business-one/read.awp</link><title>SAP Business One</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>Ruan</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48729-sap-business-one-48781/read.awp</comments><pubDate>5 Nov 2014 13:39:28 Z</pubDate><description>Any Ideas on this?</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48729-sap-business-one-48781/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48729-sap-business-one-48781/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48729-sap-business-one/read.awp">SAP Business One</source><title>Re: SAP Business One</title></item></channel></rss>
