SAP business one application messaging service

Tried to get mailer working but I am not sure if it s because of SAP business one messaging service is stuck in a starting mode.

Hi,
Yes. Messaging service should started automatically.
I think you need add your object name under Messaging service-->Right click-->Choose properties---Log on tab.. then this service starts automatically.
Thanks & Regards,
Nagarajan

Similar Messages

  • No SAP Business One Application was found

    Hi,
    I have created the add-on. When i try to start the add-on it is displaying  following message.
    "No SAP Business One Application was found". and i am not able to start the add-on.
    I have used the connection as given below. I have also declared the connection in the command line.
    In the development enveiroment it is working fine. So i have generated the ard file. When i try to start the ard file it is displaying the following message  "No SAP Business One Application was found".
    Please let me know how can solve this problem.
    Private Sub SetApplication()
            Dim SboGuiApi As SAPbouiCOM.SboGuiApi
            Dim sConnectionString As String
            SboGuiApi = New SAPbouiCOM.SboGuiApi
                  Try
                sConnectionString = System.Convert.ToString(Environment.GetCommandLineArgs().GetValue(1))
            Catch ex As Exception
                System.Windows.Forms.MessageBox.Show("AddOn must start in SAP Business One")
                System.Environment.Exit(0)
                Throw ex
            End Try
            Try
                SboGuiApi.Connect(sConnectionString)
            Catch ex As Exception
                System.Windows.Forms.MessageBox.Show("No SAP Business One Application was found")
                System.Environment.Exit(0)
            End Try
            SboGuiApi.AddonIdentifier = "5645523035446576656C6F706D656E743A453038373933323333343581F0D8D8C45495472FC628EF425AD5AC2AEDC411"
            SBO_Application = SboGuiApi.GetApplication(-1)
        End Sub

    Dear Suresh,
    You set Project->Properties->Debug->Configuration->in the drop down list selected all configurations. And in the Start option ->Command line "0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056".
    and
    Your coding as below:
      Dim SboGuiApi As SAPbouiCOM.SboGuiApi
      Dim sConnectionString As String
      Dim StrConn
      Try
        SboGuiApi = New SAPbouiCOM.SboGuiApi
        sConnectionString =System.Convert.ToString(Environment.GetCommandLineArgs().GetValue(1))       
        SboGuiApi.Connect(System.Convert.ToString(sConnectionString))
        SBO_Application = SboGuiApi.GetApplication()
      Catch
        System.Windows.Forms.MessageBox.Show("No SAP Business One application not found")                  
        System.Environment.Exit(0)
      End Try
    OR...................................................................................................................................................
    You set Project->Properties->Debug->Configuration->in the drop down list selected all configurations. And in the Start option ->Command line "".
    AND----
    Your coding as below:
      Dim SboGuiApi As SAPbouiCOM.SboGuiApi
      Dim sConnectionString As String
      Dim StrConn
      Try
        SboGuiApi = New SAPbouiCOM.SboGuiApi
        sConnectionString ="0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056"      
        SboGuiApi.Connect(System.Convert.ToString(sConnectionString))
        SBO_Application = SboGuiApi.GetApplication()
      Catch
        System.Windows.Forms.MessageBox.Show("No SAP Business One application not found")                  
        System.Environment.Exit(0)
      End Try

  • Error: No SAP Business one application is running

    Hi
    I got error "No SAP Business one application is running" when try to start our Add-on from SBO Client using remote desktop.
    Problem Description: Add-on has been installed on server successfully. I want to access remote desktop of the client machine, and when login remotly to the client machine and open SBO client and start our addon from addon manager then it gives the above error.
    If we dont access the client machine remotely and login to the client machine directly then addon connected well.
    suggest me what to do to resolve this error.
    Thanks...

    Hi
    I was just approached by someone else with such an issue...
    We use Windows Terminal Services Client to access training systems - without issues.
    Do you use sth like Citrix with load balancing?
    There such issues might happen, but I don't have a real good idea what the issue might be in your case.
    Maybe someone else has experienced the same problem - and resolved it?
    regards,
    Frank

  • SAP Business One DI Proxy service terminated unexpectedly

    Hi All,
    DI Proxy service doesn't work correctly and it generate an entry in event viewer: SAP Business One DI Proxy service terminated unexpectedly. Does anyone know what can be the reason?
    I checked diproxyserver.properties file and everything is ok. I tried to change di proxy server from name to IP and it didn't help.
    DI Proxy is on the same server as SAP.
    Kind Regards,
    Szymon

    Thank you all for your replies.
    @Frank - your link doesn't work.
    @Radosław - yes, I used netstat , that's how I checked if anything uses port 2099.
    Fortunately I solved the problem. Though DI Proxy still terminate unexpectedly but not so often. The most important thing is the B1 DI connection test is successful.
    I want to add that DB server is HANA. The solution was to change JCOPATH in diproxyserver.properties. I replace '\\' into '/'.
    I wait a little and see if it really solved the issue, and let you know.
    Kind Regards,
    Szymon
    FYI: Link fixed.
    Message was edited by: Frank Moebius

  • Cannot start widget - Ensure that SAP Business One Integration Service and SAP Business One Event Sender Service have been started

    Dear Experts .
    I'm trying to enable widget for my company db but getting the following error :
    Ensure that SAP Business One Integration Service and SAP Business One Event Sender Service have been started; then wait 1 minute and try again
    I can connect to the B1iF locally and remotely .
    I have the db configured in the SLD and connects successfully .
    I have the event sender service and proxy started and configured for the company db.
    I can access the Dashboard web portal and login with database sap credentials (but I see nothing there)
    I've checked that there are no duplicate entries in the SSLD table for SBO common (note : 1619422)
    I've also tried to re-activate the xelcious from the B1iF->control.
    My Setup :
    I'm runing SBO server, B1iF installed locally and B1iSN installed on a 3rd party server.
    I'm using B1iF as even forwarder for B1iSN.
    I know this has been discussed many times through out the forum and I've tried most of the stuff other than clean install.
    I would appreciate any input before removing B1iF completely and re-installing.
    Thanks in advance ,
    Nadav.

    Hi,
    The problem is SAP 8.81 PL04, with PL05 or PL06, it is solutioned.
    Thanks,

  • Error when starting SAP Business One Integration Server Service

    Hi all,
    I have a very urgent problem when installing B1iSN:
    I'm installing B1iSN2007 for a customer (Windows server2008R2, SBO 8.8.1),
    and at the beginning of the installation, after instaling the technology, I have an error,
    The Tomcat server can't start.
    I get the following error:
    Windows could not start the SAP Business One Integartion service on Local Computer. For more Information, review the system
    event Log.If this is a non-Microsoft service, contact the service vendor, and refer to service-specific error code 0.
    In the event viewer I didn't find any more details.
    In the tomcat logs (Under SAP Business One Integration\B1iServer\tomcat\logs) I find this:
    [2012-01-05 15:12:26] [info] Procrun (2.0.4.0) started
    [2012-01-05 15:12:26] [info] Service Tomcat5 name SAP Business One Integration Service
    [2012-01-05 15:12:26] [info] Service Tomcat5 installed
    [2012-01-05 15:12:26] [info] Procrun finished.
    [2012-01-05 15:12:26] [174  javajni.c] [error] The specified module could not be found.
    [2012-01-05 15:12:26] [994  prunsrv.c] [error] Failed creating java ..\..\..\jdk1.5.0_xx_sap\jre\bin\server\jvm.dll
    [2012-01-05 15:12:26] [1269 prunsrv.c] [error] ServiceStart returned 1
    [2012-01-05 15:13:13] [174  javajni.c] [error] The specified module could not be found.
    [2012-01-05 15:13:13] [994  prunsrv.c] [error] Failed creating java ..\..\..\jdk1.5.0_xx_sap\jre\bin\server\jvm.dll
    [2012-01-05 15:13:13] [1269 prunsrv.c] [error] ServiceStart returned 1
    [2012-01-05 15:15:27] [174  javajni.c] [error] The specified module could not be found.
    [2012-01-05 15:15:27] [994  prunsrv.c] [error] Failed creating java ..\..\..\jdk1.5.0_xx_sap\jre\bin\server\jvm.dll
    [2012-01-05 15:15:27] [1269 prunsrv.c] [error] ServiceStart returned 1
    What is the problem? How can I fix it?
    Thanks a lot
    Chana

    Hi Trinidad,
    Thanks for your help!!!
    1.
    I didn't install EventSender and DIProxy yet, I tried first to upload and deploy the zip files, but I couldn't open the Itegration Application Explorer.
    2.
    The jvm.dll file is in in the folder pointed by the logs: C:\Program Files (x86)\SAP\SAP Business One Integration\jdk1.5.0_xx_sap\jre\bin\server
    and it is also in C:\Program Files (x86)\SAP\SAP Business One Integration\jdk1.5.0_xx_sap_64\jre\bin\server
    I tried running the file  java5w.exe, but I got an error message:
    Access is denied
    Unable to open the service tomcat5
    Thne I managed to open it by "rua as administrator".
    the Java Virtual Machine path is points to the java 1.5 version folder.
    Is it possible that the reason that the service can't start is related to administrator rigts??
    In the properties in the Integration Service (services.msc):
    It is set to be run with the local system account.
    all other properties looks fine.
    in the properties of the tomcat5.exe (and tomcat5w.exe  , I tried both)
    In the Compatibility tab I tried setting the flag "Run this program in compatibility mode for" to Vista, windows 7, and server 2008
    I didn't have the option of Windows XP.
    I have also set the Privilege level of: "Run this program as administrator" to true.
    But still the service won't start.
    What can be the problem?
    What else can I check?
    Thanks a lot,
    Chana

  • Adding Invoices into SAP Business One via web service.

    Hello!
    I am partially done with my project. However, I am down to a couple of problems which hinders the progress of my project.
    When I create an invoice with 2 items it will be inserted perfectly into the SAP Business One. However, when a second invoice with another 2 items is created the newly inserted invoice will reflect 4 items. 2 from the first invoice and the remaining 2 from the current invoice.
    May I know what is the problem? I have been debugging for the past 2 nights and i couldn't find any headways.
    Your help will be greatly appreciated.
    Thank you!
    Here are the codes:
                    oCompany = Session("g_CompanyConnection")
                    oDocument = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
                    oDocument.DocType = SAPbobsCOM.BoDocumentTypes.dDocument_Items
                    oRecSet = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                    oPay = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oIncomingPayments)
                    drOrdHeader = dtOrdHeader.Rows(0)
                    'Set values to the fields
                    oDocument.CardCode = drOrdHeader("CardCode")
                    oDocument.HandWritten = SAPbobsCOM.BoYesNoEnum.tNO
                    Dim j As Integer = 0
                    Dim count As Integer = 0
                    While dtOrdLines.Rows.Count > j
                        drOrdLines = dtOrdLines.Rows(j)
                        If count > 0 Then
                            oDocument.Lines.Add()
                        End If
                        'item lines - set value to the first line
                        oDocument.Lines.ItemCode = drOrdLines("ItemCode").ToString()
                        oDocument.Lines.Price = drOrdLines("Price").ToString()
                        oDocument.Lines.Quantity = drOrdLines("Quantity").ToString()
                        count = count + 1
                        j = j + 1
                    End While
                    lngRetVal = oDocument.Add

    Thanks for your reply Li!
    dtOrdLines was all along set as a local variable. Perhaps i should show the whole chuck of codes here.
    Public Function CreateItemOrder(ByVal OrderDataSet As DataSet) As String
            Dim lngRetVal As Long
            Dim retVal As Long
            Dim strReturn As String = ""
            Dim strReturn1 As String = ""
            Dim oDocument As SAPbobsCOM.Documents = Nothing
            'Dim oUDF As SAPbobsCOM.UserFields
            Dim dtOrdHeader As DataTable = Nothing
            Dim dtOrdLines As DataTable = Nothing
            Dim dtPayment As DataTable = Nothing
            Dim drOrdHeader As DataRow
            Dim drOrdLines As DataRow
            Dim drPayment As DataRow
            Dim oCompany As SAPbobsCOM.Company
            Dim oRecSet As SAPbobsCOM.Recordset
            Dim oPay As SAPbobsCOM.Payments
            Dim IngRow As Long = 0
            Try
                SetConnectionParam("S10033973", "SBO_Innova", "manager", "manager", "sa", "P@ssw0rd")
                dtOrdHeader = OrderDataSet.Tables("OnlySalesInvoice")
                dtOrdLines = OrderDataSet.Tables("OnlyInvoiceItem")
                dtPayment = OrderDataSet.Tables("PaymentTerm")
                If ConnectToDatabase() Then
                    oCompany = Session("g_CompanyConnection")
                    oDocument = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
                    oDocument.DocType = SAPbobsCOM.BoDocumentTypes.dDocument_Items
                    oRecSet = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                    oPay = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oIncomingPayments)
                    drOrdHeader = dtOrdHeader.Rows(0)
                    'Set values to the fields
                    oDocument.CardCode = drOrdHeader("CardCode")
                    'oDocument.DocDueDate = Today
                    'oDocument.Address2 = drOrdHeader("ShipTo")
                    'oDocument.Address = drOrdHeader("BillTo")
                    'oDocument.DocDate = Today
                    'oDocument.CardName = drOrdHeader("CardName").ToString()
                    oDocument.HandWritten = SAPbobsCOM.BoYesNoEnum.tNO
                    Dim j As Integer = 0
                    Dim count As Integer = 0
                    While dtOrdLines.Rows.Count > j
                        drOrdLines = dtOrdLines.Rows(j)
                        If count > 0 Then
                            oDocument.Lines.Add()
                        End If
                        'item lines - set value to the first line
                        oDocument.Lines.ItemCode = drOrdLines("ItemCode").ToString()
                        'oDocument.Lines.LineTotal = drOrdLines("LineTotal").ToString()
                        'oDocument.Lines.ItemDescription = drOrdLines("Desc").ToString()
                        oDocument.Lines.Price = drOrdLines("Price").ToString()
                        oDocument.Lines.Quantity = drOrdLines("Quantity").ToString()
                        count = count + 1
                        j = j + 1
                    End While
                    Dim k As Integer = 0
                    Dim count1 As Integer = 0
                    While dtPayment.Rows.Count > k
                        drPayment = dtPayment.Rows(k)
                        oPay.CardCode = drOrdHeader("CardCode")
                        oPay.CashSum = 0
                        oPay.TransferAccount = "161016"
                        oPay.TransferSum = 0
                        oPay.Checks.CheckSum = drPayment("Price") - drPayment("Change")
                        oPay.Checks.BankCode = drPayment("BankCode")
                        k = k + 1
                    End While
                    retVal = oPay.Add()
                    If retVal = 0 Then
                        Session("g_LastErrorMsg") = " "
                        oCompany.GetNewObjectCode(strReturn1) 'get last doc
                    Else
                        Session("g_LastErrorMsg") = oCompany.GetLastErrorDescription
                    End If
                    lngRetVal = oDocument.Add '<----- the same document is added here, here is where the document should actually be added
                    'Check the result
                    If lngRetVal = 0 Then
                        Session("g_LastErrorMsg") = " "
                        oCompany.GetNewObjectCode(strReturn) 'get last doc
                    Else
                        Session("g_LastErrorMsg") = oCompany.GetLastErrorDescription
                    End If
                    oRecSet.DoQuery("UPDATE OINV Set ReceiptNum = " & strReturn1 & " Where DocEntry=" & strReturn)
                    'oRecSet.DoQuery("UPDATE OINV SET PaidToDate = ")
                    oRecSet.DoQuery("UPDATE OINV SET IsICT = 'Y' WHERE IsICT =" & strReturn)
                End If
            Catch ex As Exception
                Session("g_LastErrorMsg") = ex.Message
                strReturn = ex.Message.ToString()
            Finally
                oDocument = Nothing
            End Try
            Return strReturn
        End Function

  • Unable to connect to SAP business one through web service

    Hi
    I'm facing some problem with my web service. I tried to connect to SAP but it gave me an "System.Exception"
    Public Function ConnectedToDatabase() As Boolean
    Try
    Dim oCompany as SAPbobsCOM.Company
    oCompany = New SAPbobsCOM.Company
    Dim lRetCode, lErrCode As Long
    Dim sErrMsg As String
    sErrMsg = ""
    Session("g_server") = System.Configuration.ConfigurationManager.AppSettings("Server")
    Session("g_companyDB") = System.Configuration.ConfigurationManager.AppSettings("CompanyDB")
    Session("g_DBUserName") = System.Configuration.ConfigurationManager.AppSettings("DbUsername")
    Session("g_DBPassword") = System.Configuration.ConfigurationManager.AppSettings("DbPassword")
    Session("g_Username") = System.Configuration.ConfigurationManager.AppSettings("Username")
    Session("g_Password") = System.Configuration.ConfigurationManager.AppSettings("Password")
    oCompany.Server = Session("g_server")
    oCompany.CompanyDB = Session("g_companyDB")
    oCompany.DbUserName = Session("g_DBUSerName")
    oCompany.DbPassword = Session("g_DBPassword")
    oCompany.UserName = Session("g_Username")
    oCompany.Password = Session("g_Password")
    oCompany.language = SAPbobsCOM.BoSuppLangs.ln_English
    lRetCode = oCompany.Connect()
    When the codes runs to the line IRetCode = oCompany.Connect(), it will return an error code -8006. Those session got the correct information from the web.config. Then exception is throw in.
    I try restarting my com and restarting my suite manager. Usually this will solve the problem. However, it won't for this time. I hope will receive some solutions for my problem. Thanks for your time.

    Hi,
    Try To Set the db server type to MS SQL 2005 (value 4)
    oCompany.DbServerType = BoDataServerTypes.dst_MSSQL2005
    or
    oCompany.DbServerType = 4
    and
    oCompany.UseTrusted = False
    Regards,
    János

  • Windows 2008 Server R2 & SAP Business One

    Does anyone have any experience, good or bad, with SAP Business One and Terminal Service on Windows 2008 Server R2?  We are finding a number of issues with this configuration and we are looking for any feedback that is out there.
    Here is the situation - our customer is running SAP Business One v2007 SP01 PL09 Hotfix4 on a Windows 2008 Server R2 machine.  All users (15 max) access SBO via Terminal Service to this machine, which also holds the databases (SQL Server 2005).  The machine currently has 20GB of RAM.
    What we are finding is:
    1) When any process related to SBO (SBO core or add-ons) consumes some portion of memory, none of that memory is ever released back to the O/S until SBO is completely closed.  So over the course of a day each user ends up simply consuming more and more memory as forms are opened for transactions.  While we do see this in Windows 2003 Server to some extent, at least some memory is released when a given form is closed.
    2) Once the system hits a point where around 75% of RAM is consumed the users start seeing application "hangs" and are forced to manually terminate SBO (via Task Manager) and restart.  There doesn't seem to be any paging or use of virtual memory (if my terms are right) in use.
    3) If the system is busy and a new window/form is opened the new window immediately (within one or two seconds) presents the "Not Responding" message on the new window.  Depending on the circumstances the application is simply waiting for resources and will continue opening normally.
    I would appreciate feedback from anyone who has experience with Windows 2008 Server R2; and especially using it for Terminal Services.  My personal feeling is that it is a platform that should be avoided but we would certainly like to hear what other folks have to say.
    Regards,
    Ross Unger
    Third Wave Business Systems

    I believe the supporting of this OS is still on Planned basis.  You may check with SAP support to give them a good user case to fight with any non-compatible issues.
    Thanks,
    Gordon

  • SAP Business One - Java Connector

    Hi All,
    <br/><br/>
    We have a SAP Business One Application installed on a laptop. The requirement is to be able to use the SAP Java API to update tables in the system. We are not allowed to connect directly to the database and was advised to use the API instead.
    <br/><br/>
    The downloaded API that we are using is "sapjco30P_6-10005324 32 bit.zip". I have included the dll file contained in this package in the WINDOWS/system32 folder. I am using Eclipse as IDE and already included the "sapjco3.jar" in the classpath.
    <br/><br/>
    First question: Am I using the right Java Connector for SAP Business One?
    <br/><br/>
    I got sample code on how to connect using JCO:
    <br/><br/>
    package sample;<br/><br/>
    import java.io.File;<br/>
    import java.io.FileOutputStream;<br/>
    import java.util.Properties;<br/>
    import java.util.concurrent.CountDownLatch;<br/><br/>
    import com.sap.conn.jco.AbapException;<br/>
    import com.sap.conn.jco.JCoContext;<br/>
    import com.sap.conn.jco.JCoDestination;<br/>
    import com.sap.conn.jco.JCoDestinationManager;<br/>
    import com.sap.conn.jco.JCoException;<br/>
    import com.sap.conn.jco.JCoField;<br/>
    import com.sap.conn.jco.JCoFunction;<br/>
    import com.sap.conn.jco.JCoFunctionTemplate;<br/>
    import com.sap.conn.jco.JCoStructure;<br/>
    import com.sap.conn.jco.JCoTable;<br/>
    import com.sap.conn.jco.ext.DestinationDataProvider;<br/><br/>
    public class StepByStepClient<br/>
    {<br/>
        static String ABAP_AS = "ABAP_AS_WITHOUT_POOL";<br/>
        static String ABAP_AS_POOLED = "ABAP_AS_WITH_POOL";<br/>
        static String ABAP_MS = "ABAP_MS_WITHOUT_POOL";<br/>
        static<br/>
        {<br/>
            Properties connectProperties = new Properties();<br/>
            connectProperties.setProperty(DestinationDataProvider.JCO_ASHOST, "localhost");<br/>
            connectProperties.setProperty(DestinationDataProvider.JCO_SYSNR,  "06");<br/>
            connectProperties.setProperty(DestinationDataProvider.JCO_CLIENT, "000");<br/>
            connectProperties.setProperty(DestinationDataProvider.JCO_USER,   "manager"); //sapuser<br/>
            connectProperties.setProperty(DestinationDataProvider.JCO_PASSWD, "manager"); //sap1234<br/>
            connectProperties.setProperty(DestinationDataProvider.JCO_LANG,   "en");<br/>
            createDataFile(ABAP_AS, "jcoDestination", connectProperties);<br/><br/>
            connectProperties.setProperty(DestinationDataProvider.JCO_POOL_CAPACITY, "3");<br/>
            connectProperties.setProperty(DestinationDataProvider.JCO_PEAK_LIMIT,    "10");<br/>
            createDataFile(ABAP_AS_POOLED, "jcoDestination", connectProperties);<br/><br/>
            connectProperties.clear();<br/>
            connectProperties.setProperty(DestinationDataProvider.JCO_MSHOST, "localhost");<br/>
            connectProperties.setProperty(DestinationDataProvider.JCO_R3NAME,  "SID");<br/>
            connectProperties.setProperty(DestinationDataProvider.JCO_CLIENT, "000");<br/>
            connectProperties.setProperty(DestinationDataProvider.JCO_USER,   "manager"); //sapuser<br/>
            connectProperties.setProperty(DestinationDataProvider.JCO_PASSWD, "manager"); //sap1234<br/>
            connectProperties.setProperty(DestinationDataProvider.JCO_GROUP, "GROUP");<br/>
            connectProperties.setProperty(DestinationDataProvider.JCO_LANG,   "en");<br/>
            createDataFile(ABAP_MS, "jcoDestination", connectProperties);<br/>
        }<br/><br/>
        static void createDataFile(String name, String suffix, Properties properties)<br/>
        {<br/>
            File cfg = new File(name"."suffix);<br/>
            if(!cfg.exists())<br/>
            {<br/>
                try<br/>
                {<br/>
                    FileOutputStream fos = new FileOutputStream(cfg, false);<br/>
                    properties.store(fos, "for tests only !");<br/>
                    fos.close();<br/>
                }<br/>
                catch (Exception e)<br/>
                {<br/>
                    throw new RuntimeException("Unable to create the destination file " + cfg.getName(), e);<br/>
                }<br/>
            }<br/>
        }<br/><br/>
        public static void step1Connect() throws JCoException<br/>
        {<br/>
            JCoDestination destination = JCoDestinationManager.getDestination(ABAP_AS);<br/>
            System.out.println("Attributes:");<br/>
            System.out.println(destination.getAttributes());<br/>
            System.out.println();<br/><br/>
            destination = JCoDestinationManager.getDestination(ABAP_MS);<br/>
            System.out.println("Attributes:");<br/>
            System.out.println(destination.getAttributes());<br/>
            System.out.println();<br/>
        }<br/><br/>
        public static void main(String[] args) throws JCoException<br/>
        {<br/>
            step1Connect();<br/>
        }<br/>
    }<br/>
    <br/><br/>
    Each time I run the application I run into an error:
    <br/><br/>
    Attributes:<br/>
    Exception in thread "main" com.sap.conn.jco.JCoException: (102) JCO_ERROR_COMMUNICATION: Connect to SAP gateway failed<br/>
    Connection parameters: TYPE=A DEST=ABAP_AS_WITHOUT_POOL ASHOST=localhost SYSNR=06 PCS=1<br/><br/>
    LOCATION    CPIC (TCP/IP) on local host with Unicode<br/>
    ERROR       connection to partner '127.0.0.1:3306' broken<br/>
    TIME        Mon May 09 10:46:46 2011<br/>
    RELEASE     720<br/>
    COMPONENT   NI (network interface)<br/>
    VERSION     40<br/>
    RC          -6<br/>
    MODULE      gwxx.c<br/>
    LINE        646<br/>
    DETAIL      NiIRead: P=127.0.0.1:3306; L=0.0.0.0:50496<br/>
    SYSTEM CALL GwRead<br/>
    ERRNO       10054<br/>
    ERRNO TEXT  WSAECONNRESET: Connection reset by peer<br/>
    COUNTER     2<br/><br/>
         at com.sap.conn.jco.rt.MiddlewareJavaRfc.generateJCoException(MiddlewareJavaRfc.java:662)<br/>
         at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.connect(MiddlewareJavaRfc.java:1362)<br/>
         at com.sap.conn.jco.rt.ClientConnection.connect(ClientConnection.java:721)<br/>
         at com.sap.conn.jco.rt.PoolingFactory.init(PoolingFactory.java:103)<br/>
         at com.sap.conn.jco.rt.ConnectionManager.createFactory(ConnectionManager.java:293)<br/>
         at com.sap.conn.jco.rt.DefaultConnectionManager.createFactory(DefaultConnectionManager.java:46)<br/>
         at com.sap.conn.jco.rt.ConnectionManager.getFactory(ConnectionManager.java:262)<br/>
         at com.sap.conn.jco.rt.RfcDestination.initialize(RfcDestination.java:509)<br/>
         at com.sap.conn.jco.rt.RfcDestination.getAttributes(RfcDestination.java:347)<br/>
         at com.sap.conn.jco.rt.RfcDestination.getAttributes(RfcDestination.java:27)<br/>
         at sample.StepByStepClient.step1Connect(StepByStepClient.java:74)<br/>
         at sample.StepByStepClient.main(StepByStepClient.java:304)<br/>
    Caused by: RfcException: [null]<br/>
        message: Connect to SAP gateway failed<br/>
    Connection parameters: TYPE=A DEST=ABAP_AS_WITHOUT_POOL ASHOST=localhost SYSNR=06 PCS=1<br/>
    <br/><br/>
    Second question: What seems to be the problem with my sample application? Do I need to use a different Java Connector for SAP Business One or SAP Business One does not support Java Connector?
    <br/><br/>
    Please help.
    <br/><br/>
    Thank you all.
    Edited by: kevinroy on May 9, 2011 4:51 AM

    Hi,<br/>
    Thank you very much for the reply. I am now able to move forward with what I am doing.<br/>
    I used the following code in connecting but am encountering an error:<br/>
    public class ConnectSAP {
         // company interface
         public ICompany company;
         private SBOErrorMessage errMsg = null;
         public static void main(String[] args) {
              ConnectSAP company = new ConnectSAP();
              company.conn();
         //method make connection andinitialize company instance
         public int conn() {
              int rc = 0;
              try {
                   company = SBOCOMUtil.newCompany();
                   company.setServer("192.168.0.216"); //192.168.0.216
                   company.setCompanyDB("SBODemoUS");
                   company.setUserName("manager");
                   company.setPassword("manager");
                   company.setDbServerType(SBOCOMConstants.BoDataServerTypes_dst_MSSQL2005);
                   company.setUseTrusted(new Boolean(false));
                   company.setLanguage(SBOCOMConstants.BoSuppLangs_ln_English);
                   company.setDbUserName("username"); 
                   company.setDbPassword("password");
                   //company.setAddonIdentifier("...");     
                   //company.setLicenseServer("...");
                   rc = company.connect();
                   if (rc == 0) {
                        System.out.println("Connected!");
                   } else {
                        errMsg = company.getLastError();
                        System.out.println(
                             "I cannot connect to database server: "
                                  + errMsg.getErrorMessage()
                                  + " "
                                  + errMsg.getErrorCode());
              } catch (Exception e) {
                   e.printStackTrace();
                   return -1;
              return rc;
         public void freeConnection(){
              company.disconnect();
    }<br/>
    I am getting the error "Failed to Connect to SBOCommon -111".<br/>
    Error is still the same even if I set UseTrusted to true and comment the DbUserName and DbPassword.<br/>
    Do I need to specify the license? Or login to SAP before connecting?<br/>
    Thank you.

  • POS systems and SAP Business One

    Does anyone know of any Point-of-sale (POS) systems that can work together with our SAP Business one application in retail stores.
    Please can you advise us on our available POS options with SAP Business One for retail stores.
    Also would there be a need to buy additional SAP licences for users with this solution or can there be a savings there?

    hi usman,
    hi Dennis,
    try to check the ff, if it does fit your need.
    http://www.citixsys.com/
    http://www.alenu-it.com/index.php/solutions-a-services/sap/industries/b1-for-retail-pos
    rergards,
    Fidel

  • SAP Business One and Moving Database Issue

    We are in the process of moving our PROD system to a new server. The server runs MS SQL 2005. We installed SAP Business One and by default the demo databases went to the C Drive (C:/Program Files/MS SQL Server/..../Data). The SQL Server that exists has data on D partition and logs on E partition. We therefore dettach the database, copy the files to the correct locations, and reattach.
    Now, however, the SAP Business One application no longer finds the Company or Demo databases. Is there any way to fix this?
    Cheers John

    you should post your question in the Business One section at SAP Business One Application

  • Sap business one sdk

    in sap business one sdk how DI API is connect.

    hi
    threre  r two method for  connection
    1. single sign one connection
    2 seprate connection
    In the single sign one  connection we connect to  UI api  nd DI api ,
        In the seprate connection we r connect  seprate  DI api nd UI api ,
      This is single sign one code. connect to di api
      private SAPbobsCOM.Company oCompany;
            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 sConnectionString = null;
                SboGuiApi = new SAPbouiCOM.SboGuiApi();
                // // by following the steps specified above, the following
                // // statment should be suficient for either development or run mode
                sConnectionString = System.Convert.ToString( Environment.GetCommandLineArgs().GetValue( 1 ) );
                // // connect to a running SBO Application
                SboGuiApi.Connect( sConnectionString );
                // // get an initialized application object
                SBO_Application = SboGuiApi.GetApplication( -1 );
            private int SetConnectionContext() {
                int setConnectionContextReturn = 0;
                string sCookie = null;
                string sConnectionContext = null;
                int lRetCode = 0;
                // // First initialize the Company object
                oCompany = new SAPbobsCOM.Company();
                // // Acquire the connection context cookie from the DI API.
                sCookie = oCompany.GetContextCookie();
                // // Retrieve the connection context string from the UI API using the
                // // acquired cookie.
                sConnectionContext = SBO_Application.Company.GetConnectionContext( sCookie );
                // // before setting the SBO Login Context make sure the company is not
                // // connected
                if ( oCompany.Connected == true ) {
                    oCompany.Disconnect();
                // // Set the connection context information to the DI API.
                setConnectionContextReturn = oCompany.SetSboLoginContext( sConnectionContext );
                return setConnectionContextReturn;
            private int ConnectToCompany() {
                int connectToCompanyReturn = 0;
                // // Establish the connection to the company database.
                connectToCompanyReturn = oCompany.Connect();
                return connectToCompanyReturn;
    .................this is code for cneect ui api nd di api..............
    ...........................................////////........................................this is code for connect for di api seprate.....................................................
    Dim oCompany As SAPBobsCOM.Company
    Dim lRetCode, lErrCode As Long
    Dim sErrMsg as String
    'Instanciate a Company object
    oCompany = New SAPBobsCOM.Company
    oCompany.Server      = "(local)"     
    oCompany.CompanyDB      = "SBODemo_US"
    oCompany.UserName      = "manager"
    oCompany.Password      = "manager"
    oCompany.Language      = ln_English
    ‘Sample: Use Windows Auth. to SQL Server
    oCompany.UseTrusted     = True
    ‘Set AddOn identifier (new in 2004)
    oCompany.AddOnIdentifier     = “Your Add-On Identifier”
    lRetCode = oCompany.connect
    'Check Return Code
    If lRetCode <> 0 Then
      oCompany.GetLastError lErrCode, sErrMsg
    End If
    .applay  any one code  for coonection tp di api....
    if u have any problem replay me ,
      nd if   u r satisfied than give me rewards point.

  • BACKUP desde SAP BUSINESS ONE

    Hola amigos:
    Alguien sabe como usar la herramienta de backups en el mismo SBO??
    Sé que existe la posibilidad de hacer un copiado de mis base de datos al igual que el SQL, pero quisiera saber como?
    Gracias x su ayuda
    Christian

    Hola...
    Dentro de lo que es el Service Manager, existe una opción de Backup. A través de esta opción puedes fijar la periodicidad con la que quieres que se realice el respaldo. Su configuración es simple e instintiva, debes indicar lo siguiente:
    Connection: Indicas los parametros de base de datos, nombre del servidor y usuario y contraseña.
    Database: Indicas cual o cuales son las bases de datos a restaurar.
    Settings: Indica las rutas en las cuales quedarán tus respaldos.
    Shedule: Especifica cuando quieres que se ejecute el respaldo.
    El Service Manager está ubicado en Programas > SAP Business One> Server Tools --> Service Manager.
    Puedes probar realizando un primer respaldo y notarás que el proceso y la configuración son simples.
    Espero te sea de ayuda.
    Saludos Cordiales,

  • Iphone App for SAP Business One

    Now that the Iphone APP is up on Itunes and it is foc to any client with 8.8 and a Professional User - does anybody have any information on how to get this working other than tick a box called Mobility... Then call your partner? We are the partner and we are looking at each other - all 22 of us! With customers calling now... HELP!

    Dayal,
    You can find all the answers and process here -
    [SAP Business One Innovations|https://service.sap.com/~form/sapnet?_SHORTKEY=01100035870000700291&_SCENARIO=01100035870000000183&_ADDINC=&_OBJECT=011000358700000659192010E]
    Richard Duffy

Maybe you are looking for

  • I was told I had to upgrade Firefox to 4.0, downloaded the dmg, launched it and now Firefox will not open at all.

    I was told I had to upgrade Firefox to 4.0, downloaded the dmg, launched it and now Firefox will not open at all. It tells me "The operation can't be completed because you don't have permission to access some of the items." Also, that "Firefox cannot

  • BW - HR Topics

    Hi, i am bw consultant and have been working was extracting data from mm and sd..now our company is implementing HR module..for that reason i wanted to learn SAP HR module. could anyone let me know  HR topics that are related  to bw hr extraction?

  • Latest iTunes hinders editing file info

    iTunes for Windows v 12.0.1.26 I've been slowly editing my library over the years to "fine tune" genres, ratings, and keywords in comments for smart playlists. Here are a few things I've noticed with this latest release: Some file info fields are hid

  • Problem retreving datetime

    hi how to retrieve datetime with result; if i use rs.getDate("CREATE_DATE") i am getting numberformat exception?i am using oracle database? i want in this format 12-Jul-2003 14:20 format??? can anybody give me code SELECT TO_CHAR(CREATE_DATE, 'DD-MON

  • MPEG 2 encode takes hours, then: 3x crash service down

    Hi everyone, I've got a 2x 2.8 GHz Quad core Intel Xeon box (8 cores) with 16 GB of RAM. I setup compressor to run early yesterday morning, working on a (source) 3 hour MPEG-2 stream (with attached SCC track) to export as both a 300 and an 800 Kbps s