Jco business one

hi all,
i'm using jco for connecting to my Business One system.
i installed jco and in my path (C:\Programmi\SAP Manage\SAP Business One DI API\JCO\LIB) i find:
sboapi.jar
sbojc.sda
sbojni.dll
sbowrapper.jar
i've set my classpath in eclipse
but when a run my project
but i get this error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no sbojni in java.library.path
     at java.lang.ClassLoader.loadLibrary(Unknown Source)
     at java.lang.Runtime.loadLibrary0(Unknown Source)
     at java.lang.System.loadLibrary(Unknown Source)
     at com.sap.smb.sbo.wrapper.util.WrapperUtil.loadSBOJNILibrary(Unknown Source)
     at com.sap.smb.sbo.wrapper.com.Dispatch.<clinit>(Unknown Source)
     at com.sap.smb.sbo.api.SBOCOMUtil.newCompany(Unknown Source)
     at JCOConnect.<init>(JCOConnect.java:20)
     at JCOConnect.getConnection(JCOConnect.java:45)
many thanks
     at JCOConnect.main(JCOConnect.java:74)

Hi Nicola,
You must set "java.library.path" value with (C:\Programmi\SAP Manage\SAP Business One DI API\JCO\LIB)
in your VM options for run apps and automatically  when yo call SBOCOMUtil.newCompany(); it's load your library.
Example: -Djava.library.path="C:\Programmi\SAP Manage\SAP Business One DI API\JCO\LIB"
tell me about worked.

Similar Messages

  • 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.

  • Regarding exception in the WebService(Business One)

    Hi all,
        I have installed Business One in my system.My requirement is to display the sales order details.I am using java connector and SAP NetWeaver Developer Studio for this purpose.
    process:
    --I've also included external jar files sboapi.jar and sbowrapper.jar
    --I've written a query to get salesorder details from ORDR table.
    --I am handling the IRecordSet object.
    --I have written a method which returns an object array of SalesOrder class which i have created for this purpose only.
    By writing normal java program it is working fine and records are displaying form that SalesOrder object which i've created.
    I've created a webservice with the same code and deployed in the WAS of SAP.While testing it is showing an exception
    "Exception in method getSalesOrderDetails()".
    Any one please guide me in this issue.
    Thanks and Regards
       Madhu

    Hi Madhu,
    I don't know details about WAS, but regarding Java connector (JCo) for DI API please note the following:
    JCo is just a thin wrapper around the DI API COM library to facilitate using DI API in a Java enviroment.
    Therefore the DLL file which encapsulates the business logic (i.e. OBServerDLL.DLL) will be copied into a local temporary directory on the file system as well - ready to be loaded from the webservice then.
    I could imagine that you would need to apply some settings in WAS to enable creating a directory, copying files into it + loading files from there, but this is beyond what I know.
    ...I assume getSalesOrderDertails() does handle the Logon as well?
    For usage in a WebService, DI Server (DI API exposed as a SOAP capable Windows service = WebService to be built on top of it) may be the better alternative... - though it also works like DI API, but inside the DI Server process - not in your WebService...
    ...despite some limitations (no DB structure can be changed through it etc.) ...
    HTH,
    Frank

  • How to integrate with java connnector in sap business one 2005

    hai,
    i have small doubt,
    how to integrate with java connnector in sap business one 2005
    thankig
    anand

    Anand,
    I am not sure of your exact question, but the SAP Business One SDK Help Center documentation contains all the information that you should need with respect to using the SAP Business One JCO connector.  You should read this documentation.
    Eddy

  • Impressão de Cheques - Padrão Brasileiro - SAP Business One v. 8.8

    Olá Experts!
    O Layout de impressão de cheques default do SAP Business One 8.8 que está pré configurado no PLD imprime cheques nos padrões brasileiros? Ou tenho que customizar o PLD para imprimir os cheques?
    Muito obrigado,
    Ricardo Vieira

    Resolvi o problema alterando o PLD dos cheques.

  • Creation of Add-on package for 64 bit and 32 bit SAP Business One Client

    Please help me creating package for 64 bit and 32 bit SAP Business One. If Add-on executable is compiled with x86 option then there is no issue of connecting Add-on with 32 bit SAP Business one and if Add-on executable is compiled with Any CPU option then there is no issue of connecting Add-on with 64 bit SAP Business one. Problems are mentioned as below
    1. My Add-on uses MS ACCESS connection and the connection is read using Jet OLEDB 4.0 provider. It works fine for x86 compile mode but not when compile mode is Any CPU. I searched for the issue on Google and found a solution to change MS ACCESS connection provider to ACE.OLEDB.12.0 but again ACE provider is installed according to the Office version i.e. 32 bit or 64 bit office suite. If I install 32 bit ACE provider then Add-on executable compiled with x86 version is working fine but with Any CPU option throws error as provider is not registered on current machine.
    2. Secodly, our license validation activex dll is build using vb 6.0 and therefore when Add-on executable is compiled using Any CPU option, Add-on EXE cannot read from license dll. Any suggestion, how the activeX dll can be compiled whose component can be created from for X86 compiled exe and any cpu compiled exe.
    Please help because we are stuck in this issue and cannot move forward.
    Thanks.

    Hi Alejandro,
    That is one solution but did your add on used ms access connection? if you used Jet oledb to connection string or ace oledb connection string? what if 32 bit office is installed and what if 64 office is installed? how did you found the office version in install script? after determining the office version how did you installed Microsoft redistributable for ace oledb (32 bit or 64 bi )?
    I am sorry that I asked many questions but these are the problems where I am stuck with the addon installer?
    Thanks

  • Crystal report not able to see a SQL view in Business One

    Hi all
    I am trying to create a report using views I have created in the Business One database.
    I can run the report fine when using the Crystal Designer, but when I try to Preview the external Crystal report file from within Business One, it comes up with an error 'The table 'xxxx' can not be found'.
    I have tried to make the connect an SAP Business One connection, and also tried it with the OLEDB connection.  Neither worked.
    (I can however preview other 'table' reports fine)
    I am running SAP B1 8.8 SP 0 pl 15 and SQL2005.
    As views are allowable in B1 databases I would hope that we can use them in our Crystal reports.  Can we use views?
    Or is it my setup/Crystal setup that is causing me issues.
    Any help much appreciated.
    Thanks
    Denise

    Hi Gordon and Kevin
    Thank you both for your replies.
    Gordon - great idea to use the Command mechanism. I had not thought of that but will give that a try.
    Kevin - pleased to hear views are allowed as I often use them in my reports.
    I think I have a more basic issue with my setup of Crystal & B1 on the system - and perhaps this is causing my inability to use views. 
    My current approach is to install Crystal Designer on the server.  I know that it is preferable to put the designer elsewhere but I am not able to connect using SAP Business One connection at all from the client machines.  Frustration! (Keeps saying Logon failed and I KNOW I have the correct logon details)
    Will update this thread once I have set up the designer on the server and hopefully succeeded in including a view (or command) in a report.
    Thanks for your help
    Denise

  • Imposto retido na fonte (SAP Business One 2007B)

    Pessoal,
    gostaria de saber como funciona a cumulatividade de imposto retido no SAP Business One 2007B no Módulo de Vendas C/R?
    Preciso saber qual a melhor forma de fazer esse tipo de nota fiscal? Qual o melhor processo?
    Abraço,
    Marcelo.

    Olá Marcelo...
    Voce pode ser mais especific com situação real que voce está vivendo???
    Tenho trabalhado com NF de Serviços e talvez possa te ajudar!!!
    Em relação a cumulatividade, o SAP tem um campo nas configuração de detalhes da empresa, só que não há nenhuma documentção que prove o funcionamento deste parametro e a qual dos IRF ele está ligado.
    Estou estudando uma maneira de fazer isso via conta contabil transitoria individual para cada tipo de IRF em conjunto com a rotina de Alertas, para monitorar os saldos acumulados das contas...
    Atenciosamente,
    Wagner

  • "No data" in SAP Business One

    Hi,
    We have encountered the following issue.
    Using the SAP mobile application (version 1.1.3 (Android) - 1.9.6 iOS)), we connect successfully to database but when we try to open the Business Partners and Items, a "No Data"  message appears.
    If I insert a BP in mobile, the SAP Business One show these BP that I insert, but in the App I have the message "No data".
    What could be causing that?
    Thank you everyone

    Hi Louran,
    Please check below links.
    SAP B1 Mobile Application 1.3.1 - Version too old
    http://help.sap.com/download/businessone/mobileapp/B1_MobileApp_1.9_Guide.pdf
    Hope this help
    Regards::::
    Atul Chakraborty

  • Importing the (active) Fix Asset with ◦Accumulated ordinary depreciation to Sap Business One 9

    Hi all,
    I'm trying to upload the  Active Fix Asset to the SBO (no new).
    for example:
    item:                          FixAsset
    Useful life :                48 (month)
    Remaining Life:        12 (month)
    APC(Historical cost): 10000
    Accumulated Ordinary Depr.: 7500
    So  Value Balance: 1500
    and Life Balance :     12 month
    I have tried to Import active ITEM  by Excel ,follow this link : Importing Fixed Asset Master Data from Microsoft Excel - SAP Business One 9.0 - SAP Library
    every time recieve the message :
    Cannot import asset "fixasset"; a new asset's useful life and remaining life must be the same in depreciation area "AFA"

    Hi,
    Please check SAP note:
    2001876 - The system does not consider the Salvage Value nor the
    Remaining Book Value when you import assets
    Thanks & Regards,
    Nagarajan

  • Addon not loading - B1 Usability Package for all users in SAP Business One

    Hello, I am a new admin to SAP B1 and am about to go live in a few weeks. We are running SAP Business One v. 8.80.227.
    Envirorment details: Dedicated server for SAP database, and Terminal Server for remote connections.
    I have a demo group of users in Active Directory that have permission to Remote Desktop to the TS and load SAP. For now, theses users are local admins on the TS. ( Permissions to be revised once addon issues are worked out ). I am the companies tech, and we have a SAP implementation company leading the project development.
    Currently the addons that we are running are CRSB1Addon SAP 8.8 and B1UP from boyumit.
    For one of the users in the Active Directory Security Group all the addon's work great. However the other users get the error below;
    When logging in the system message window shows the following:
    Failed to assign SAP Business One user license to SAP Add-ons. The Add on is configured to automatically load on startup, yet once I get the error, I open the Add on Manager and I don't see the B1UP in either tab at all.
    The error on the TS in the log is here:
    Log Name:      Application
    Source:        Application Error
    Date:          18/03/2010 10:55:25 AM
    Event ID:      1000
    Task Category: (100)
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      OVCL-TS.laurieroptical.local
    Description:
    Faulting application SAP Business One.exe, version 8.80.227.0, time stamp 0x4b8fadd4, faulting module ole32.dll, version 6.0.6002.18005, time stamp 0x49e037d7, exception code 0xc0000005, fault offset 0x000472da, process id 0x1f14, application start time 0x01cac6a4a2da01c9.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Application Error" />
        <EventID Qualifiers="0">1000</EventID>
        <Level>2</Level>
        <Task>100</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2010-03-18T14:55:25.000Z" />
        <EventRecordID>3778</EventRecordID>
        <Channel>Application</Channel>
        <Computer>OVCL-TS.laurieroptical.local</Computer>
        <Security />
      </System>
      <EventData>
        <Data>SAP Business One.exe</Data>
        <Data>8.80.227.0</Data>
        <Data>4b8fadd4</Data>
        <Data>ole32.dll</Data>
        <Data>6.0.6002.18005</Data>
        <Data>49e037d7</Data>
        <Data>c0000005</Data>
        <Data>000472da</Data>
        <Data>1f14</Data>
        <Data>01cac6a4a2da01c9</Data>
      </EventData>
    </Event>
    Any comments would be greatly appreciated.
    Thanks
    Edited by: dontforgetken on Mar 18, 2010 4:05 PM

    hello Ken - Boyum IT has its own License Administration - path of Administration > Add Ons > B1 Usability Package > License Administration...
    Do all of the users have a checkmark to give them access???
    When a user has only the Main Menu window open, select the "Form Settings" icon and follow the same path on the Form Settings window that is diplayed and make sure they have checkmarks next to the B1 Usability Package to be "Visible".
    Are all of the user set to display Boyum IT on their machines???
    LOL - I am not technical so I have no idea what that other stuff means...
    Hope that helps...
    Zal

  • Creating New Dashboard Packages for SAP Business One

    Hi Experts,
         I am learning how to create my dashboard for Business One on version 9.1PL04.
         In this step.
    http://businessone91:8080/B1iXcellerator/exec/ipo/vP.001sap0004.in_HCSX/com.sap.b1i.vplatform.runtime/INB_HT_CALL_SYNC_X…
            The URL can't returns an XML data sucessfully.So, i try to through IE browser to access this URL.
    SAP B1iP detected an error:
    Emitted HTTP-Code:
    500 - Internal Server Error
    Internal Reason:
    Server side cannot respond your request (No scenario step (vBIU) assigned for step for sender system (SysId) [0009] [incoming identifier = 'io'])
    Recommendation:
    Check for the correctness of your activity or environment or ask your system-administrator for further help.
    tid
    TID: 15031009242239306682A9FEA29322F6
    Full Internal Error Message:
    com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception:
    com.sap.b1i.bizprocessor.BizProcException: BPE001 Nested exception: com.sap.b1i.utilities.UtilException: UTE001 Nested exception: com.sap.engine.lib.xml.util.NestedException: Server side cannot respond your request (No scenario step (vBIU) assigned for step for sender system (SysId) [0009] [incoming identifier = 'io'])
    Log-ID:
    LID15031009242239306858A9FEA2931BD0
        How can i slove this problem?Thanks for your help.

    Hi David,
    I also seek help for the dashboards, no doubt its matter of practise but like we are facing the problems where we have to map our query structure with Excel sheet.
    like I'm facing a problem where my Query accepts two parameters in SAP B1.
    In Xcelsius I mapped almost everything and these two parameters are accumulated by 2 combo's but when I make a XML data connection and use trigger cell option , it just takes one combo into consideration.
    Expected result is : If I change the value in any of the combo then it shud reflect results accrodingly
    Actual result : if I change the value of 2nd combo it doesn't reflect the changes until I select the value from first combo again.
    Any inputs will be really very much appreciated.
    Regards

  • ALD Failed to conect to Sap Business One

    Hi, i install a client in my PC, so when i log in in SBO,so SBO tells me that i need install ALD "its ok, i need it", the install runs rigth, and now i have ALD in my client, i close SBO and openin again.
    Therefore in the init, before i can´t make anything, send me a system message error "Resource error", i click ok, inmediatly another system message "initialization failed" click ok, then another error out of SBO, header "SAP Business One Outlook Advanced Layout Designer", body "Failed to conect to SAP Business One"
    After click Ok, in the last message, i can work with SBO but i can not open ALD, no even print preferences " the 5° check box".
    i did everything i think, reinstall, reg scan, a new DB in sap, nothing works.
    so i someone can help me, thaks to everyone.

    hi Sergio Guillerm... ,
    Check this link with subject Resource error,solution given by Rakesh pati.
    Resource error

  • Crystal Reports Dynamic Parameters with SAP Business One

    Okay, I've got this very strange issue with dynamic parameters in Crystal Reports connected to SAP Business One.
    Let's start with the software versions:
    - Crystal Reports 12.3.0.601
    - SAP Business One 8.8 (8.80.231) SP: 00 PL: 13
    - Windows XP SP3
    (SBO Server on Windows 2003 and SQL 2005)
    What I'm about to describe is something I've tried in several reports and for which I created a very, very simple test report to see if it was reproducible in a very simple situation.
    - I connected to a Business One server through CR's SBO connection type. Logon is successful, tables are shown.
    - I pick OCRD and plac CardCode and CardName in the details section on the report. Previewing the report shows data.
    - I create a dynamic parameter on CardCode and in the Select Expert I select the CardCode field and define that that should be equal to the parameter.
    - I preview the report again. Now it asks me in such a parameter screen for logon credentials. It shows the server and database it tries to connect to and in the username it shows the SQL Server username I used to connect to the SQL Server in the first place. However, the password for that user is not accepted. I also tried to login with the Windows administrator user and with the SBO manager user, but no success with any attempt.
    I also tried to add a static parameter and add all database values to the list. Same screen, different result:
    Crystal Reports 2008 wrote:
    Logon Failed.
    Error in File UNKNOWN.RPT:
    Unable to connect: incorrect log on parameters. (rptcontrollers.dll)
    (On a side note: the report is saved as report1.rpt)
    Anyone else got similar issues and found a solution?

    Hi,
    When you have fixed your crystal installation following the note posted earlier, please take a look at the [how to guide|http://service.sap.com/sapidb/011000358700000882232009E.pdf] and also at the [e-learning|http://service.sap.com/sapidb/011000358700001370262010E] about SAP Business One 8.8 and Crystal Reports.
    There are so called "tokens" which you need to use instead of dynamic parameters.
    Dynamic paramters don't work in SAP Business One 8.8, if they are not defined as a static paramter with token.
    Best regards,
    Darius

  • Crystal Reports background processing for SAP Business One 8.8

    Dear Partners,
    I have an SDK program developed in SAP Business One SDK that works in 2007, it calls crystal reports externally and can be executed as a background task using the windows schedular or from the command prompt.
    My problem is it does not work under SAP Business One SDK 2008 PL18 with SQL Server 2008, Visual Studio 2008.
    I receive the following message after this line in my code,"oReport.PrintToPrinter(CopyNo, False, 0, 0)".
    'CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed.
    Error in File XX_Report_Ver_0.01 {1A6620A2-5D73-49D2-9347-32ED068AA64E}.rpt:
    Unable to connect: incorrect log on parameters. ---> System.Runtime.InteropServices.COMException (0x8004100F): Logon failed.
    Error in File XX_Report_Ver_0.01 {1A6620A2-5D73-49D2-9347-32ED068AA64E}.rpt:
    Unable to connect: incorrect log on parameters.
       at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.GetLastPageNumber(RequestContext pRequestContext)
       at CrystalDecisions.ReportSource.EromReportSourceBase.GetLastPageNumber(ReportPageRequestContext reqContext)
       --- End of inner exception stack trace ---
       at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
       at CrystalDecisions.ReportSource.EromReportSourceBase.
       at CrystalDecisions.ReportSource.EromReportSourceBase.GetLastPageNumber(ReportPageRequestContext reqContext)
       at CrystalDecisions.CrystalReports.Engine.FormatEngine.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)
       at BGProductionRpt.ECR_Common.ECR_PrintReport(Int32 CopyNo) in C:\SDK Development\8.8\test\XX_Rpt\ECR_Common.vb:line 485'
    My Question is what Crystal Reports libraries or other method should I be using ?
    Crystal Reports 2008 for SAP Business One eg. 51038978.zip - downloaded from portal obviously dosn't contain the CrystalDecisions libraries.
    Crystall Reports 2008 - cr2008_sp3_fullbuild, cr2008fp33.exe, cr2008fp33_mm, cr2008fp33_clickonce - also download from the portal, the cr2008_sp3_fullbuild does contain the crystal decisions libraries.
    Finally other choices are crystal reports included with the visual studio 2008 and crystal reports full version direct from Business Objects.
    I have tried different versions of crystal decision libraries- eg, 12.0110 or 12.02 but still no joy.
    Also if I manage to get the report to fire what should the client be running eg, if they have the Crystal Reports 2008 for Business One do they also need to install the Crystal Reports Run time - cr2008fp33_clickonce.
    Any help would be appreciated.
    Thanks.

    Hi John
    Since the SDK works in 2007 it will be using the OLD DB access method.
    Change the Crystal report to use an OLE DB datasource rather than the SAP Business One data source.
    Regards
    Rob

Maybe you are looking for