FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 2024
→
SAP Business One
SAP Business One
Débuté par Ruan, 31 oct. 2014 10:51 - 1 réponse
Connectez-vous…
Ruan
#1
Membre enregistré
208 messages
Popularité : +1 (1 vote)
Posté le 31 octobre 2014 - 10:51
Good Day
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?
// SAP MANAGE UI API 2007 SDK Sample
//****************************************************************************
//
// File: HelloWorld.cs
//
// Copyright (c) SAP MANAGE
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
//****************************************************************************
// BEFORE STARTING:
// 1. Add reference to the "SAP Business One UI API"
// 2. Insert the development connection string to the "Command line argument"
//-----------------------------------------------------------------
// 1.
// a. Project->Add Reference...
// b. select the "SAP Business One UI API 2007" From the COM folder
//
// 2.
// a. Project->Properties...
// b. choose Configuration Properties folder (place the arrow on Debugging)
// c. place the following connection string in the 'Command line arguments' field
// 0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056
//
//**************************************************************************************************
using System
;
using System.Windows.Forms
;
class HelloWorld
{
//**********************************************************
// This parameter will use us to manipulate the
// SAP Business One Application
//**********************************************************
PRIVATE
SAPbouiCOM.Application SBO_Application
;
PRIVATE
void SetApplication
(
) {
// *******************************************************************
// Use an SboGuiApi object to establish connection
// with the SAP Business One application and return an
// initialized appliction object
// *******************************************************************
SAPbouiCOM.SboGuiApi SboGuiApi
=
null
;
string
s
ConnectionString
=
null
;
SboGuiApi
=
new
SAPbouiCOM.SboGuiApi
(
)
;
// by following the steps specified above, the following
// statment should be suficient for either development or run mode
s
ConnectionString
=
System.Convert.ToString
(
Environment.GetCommandLineArgs
(
)
.
GetValue
(
1
) )
;
// connect to a running SBO Application
SboGuiApi.Connect
(
s
ConnectionString
)
;
// get an initialized application object
SBO_Application
=
SboGuiApi.GetApplication
( -
1
)
;
}
PUBLIC
HelloWorld
(
) {
//*************************************************************
// set SBO_Application with an initialized application object
//*************************************************************
SetApplication
(
)
;
//*************************************************************
// send an "hello world" message
//*************************************************************
SBO_Application.MessageBox
(
"Hello World"
,
1
,
"Ok"
,
""
,
""
)
;
}
}
Thanks
Signaler
0
0
Ruan
#2
Membre enregistré
208 messages
Popularité : +1 (1 vote)
Posté le 05 novembre 2014 - 13:39
Any Ideas on this?
Signaler
0
0
→ Revenir à WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte