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

Similar Messages

  • How to handle common system crashes in SAP Business One until you upgrade to SAP Business One 9.1?

    SAP Business One 9.1 is about to release in this year with many feature enhancements in various areas, such as in Business Logic and Localization, Reporting and Analytics, Lifecycle Management and Support, SDK Features for extensibility, Infrastructure and Architecture, etc. , with this upgrade every organization using SAP Business One is also expecting that some previous System Crash problems associated with SAP Business One 8.8 or 9.0, will also be resolved with the advent of 9.1.
    But until 9.1 is available in GA, we have to know and follow some procedures to avoid this situation. Through this blog we have addressed ‘How to handle common system crashes in SAP Business One until you upgrade to SAP Business One 9.1’. In below link you can have a look that what common system crash issues been reported and what solution given by the community members:
    common system crashes in SAP Business One

    Hi,
    Thanks for sharing valuable information with us. You may repost this discussion as "Document" or Blog type.
    Thanks & Regards,
    Nagarajan

  • Choose From List From a UDT in SAP Business One 2005 A

    Hi All
    How to develop a Choose From List from a <b>User Defined Table</b> (not from System Tables) in SAP Business One 2005 A.
    I need the Choose From List should display the records stored in the UDT.
    Any Idea ?
    Thanks in Advance.
    Regards.
    Asutosh.

    Hi Asutosh,
    You can add a CFL to a User Defined Object, not a simple User Defined Table.
    In order to do it you only have to set the object type of the CFL to the code of your UDO.
    Here you have a simple:
    oCFLCPuo = SB1_App.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
    oCFLCPuo.ObjectType = "MY_UDO_CODE"
    oCFLCPuo.UniqueID = "UserObjectCFL"
    oCFLuo = oForm.ChooseFromLists.Add(oCFLCPuo)
    Hope it helps
    Trinidad.

  • How to Report a product error in SAP Business One

    Hi Experts
    I have found a product error in SAP Business one
    i need to know how it can be notified to SAP
    Thanks
    Krish

    Hi Krish,
    If You Post a Meessage to SAP Support Center
    Require S-user ID and Password
    First post a message to SAP Support Center with what problem you are facing.
    then he analyse your problem and told its a BUG or some other workaround.
    Check the following thread
    Re: How to Send message to SAP Support center
    *Close the thread if issue solved.
    Regards
    Jambulingam.P
    Edited by: Jambulingam P on Aug 13, 2009 12:35 PM

  • HOW TO USE CRYSTAL VIEWER IN  A SAP BUSINESS ONE FORM

    hI ALL
    iM DOING AN ADDON, AND I WANT TO SHOW A CRYSTAL REPORT IN A FORM OF sap buSINESS oNE, ANYONE COULD HELP ME

    You can define the parameters on crystal report,those parameters be automatically displayed on crystal report when you will integrate with SAP b1.
    Even in SAP 8.8 you can personalise your parameter form .
    Thanks.
    Neetu

  • How to connect crystal report 2013 using sap business one data source

    hello Professionals .
    when i try to use data source sap b1 in crystal report 2011 or 2013 i got no list in company database,
    when i try to write it manual i got error "Connection failed".
    I tried to connect OLE DB and ODBC all work fine with me.
    i attached some snapshots .
    Any Advice Please ?

    Hi Mohamed,
    Please check below link.
    SAP Crystal Reports 2011/2013 doesn't show Company Data Base
    SAP Business One Data Source in Crystal
    Crystal Reports - How To - Connecting to your SAP Database - YouTube
    Migrating Crystal Reports of SAP Business One from SQL Server to SAP HANA
    Hope this helps
    Regards::::
    Atul Chakraborty

  • How to make a field mandatory in SAP Business one ?

    How to make a text field mandatory in SAP Business one?

    hi nishant,
    check this link
    Making fields mandatory
    To Set Mandatory Fields in Documents
    Jeyakanthan

  • How to create Add-On program for SAP Business One 2007

    Hi,
    When I create my Add-On into SBO I have some issues.
    Which program do I use to create an Add-On into SBO?
    Is there a URL or Path where I find the program?
    I am using a 2003 program which is built by my colleague.
    I assume SAP provide the Add-On program for SAP Business One 2007
    Thank you,
    Rune

    Rune,
    At a high level ...
    1) VS2005
    2) Compile your program
    3) Generate and Add-on Identifier
    4) Create a registration datafile
    5) Create the setup program consisting of your .EXE and the .ARD file
    6) Add-On is created and running in SBO
    Again ... the details on deploying and packaging your add-on can be found in the SAP Business One SDK Help Center Documentation and the SDK eLearning.
    Also, you can use B1DE using the Simple Installer or Professional Installer will do most of the work for you after you have coded the add-on.
    Eddy
    Edited by: Edward Neveux on Jan 30, 2008 9:11 PM

  • Print layout design - SAP Business one 2005 B

    I am designing print layout for a sale invoice
    in SAP Business one.
    My question is
    1. How to display excise information like
    Excise duty rate,Excise duty Amount &
    Education cess rate, Edu.Cess Amount
    Sales tax rate,Sales tax Amount for a AR invoice
    in print layout design?
    I have found out respecive table & field, In this
    case(AR Invoice),
    Table name - <b>INV4</b>
    Field Name - <b>Tax Rate,Tax Amount</b>
    When i am connecting respective table & field
    through database field in print layout design,
    It is retreving only one row only.
    For example (Below is database table)
    Document key .......Tax Rate .....Tax Amount.......
    1                    2%              Rs.20
    1                   16%             Rs.100
    1                    4%             Rs.40
    Document key is <b>Invoice #</b>.
    Tax rate - 2%  & Tax Amount - Rs 20 only(ie) is
    first row only.
    In print layout i can't retreive &
    display subsequent rows,
    How to retrieve & display subsequent rows ?
    Expecting your reply.
    Yours,
    A.Jeyakanthan

    Dear Gordon - san,
    Thanks for your reply,
    If  redo A/R Invoice then We loss a lot of time (Our A/R Invoice have about 500 rows).
    Do you have other way to modify A/R Invoice and Link to Sales Order when created mistake.
    I think the SAP B1 have Add-ons for this matter. But I do not kown.
    What add -ons ?
    Can you help me ?
    Thanks

  • Stock transfer Invoice - SAP business one 2005

    From which table I can retreive Warehouse addressess
    (i.e) (Consigner,Consignee address) in stock transfer invoice?
    Expecting your forum members esteemed reply.
    A.Jeyakanthan

    Jeyakanthan,
    You have posted your question in the SAP Business One Integration Technology forum. Your question seems to be related to the SAP Business One SDK. You need to post your question in the SAP Business One SDK Discussion Forum.
    Thank you,
    Eddy

  • How to clear all fixed assets in SAP Business One

    Client wants to clear all fixed assets and create new ones. What is the best way to do it.
    Thanks.

    Hi,
    My assumption is that your customer is using 9.0, is it?
    I assume that the reason is because there was a mistake during the implementation, meaning that assets created using the application or using import fixed assets master data from excel are not what the user wanted.
    The existing rule is that only assets in status 'new' can be removed, and this is a consistency requirement, both technical and from accountancy point of view.
    So if the asset is not in status 'new' , it cannot be removed.
    What you can do is cancel all transactions generated for the asset, acquisitions, retirements, etc, starting from the last, transaction, until you cancel the first.
    Then you execute again depreciation run, to ensure any automatic posted depreciation is reverted.
    This way the asset will remain in the system, but with no value. And you can eneter the new assets that will substitute them.
    Jose

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

  • How to capture carriage return in SAP Business One?

    Hi guys,
    I am using C# for developing a plug-in for SAP business one 2005, I tried to use '\n' to capture carriage return in some fields that are stored in SQL server 2005, but it didn't work. I tried the same code in a C# windows application and it worked. I just want to know that if the carriage return in SAP has a special sequence code for that or not.
    The code I tried is "
    string s = "something";
    if (s.contains('\n'))
       //do something;
    Thanks  a lot

    Hi,
    I guess you did a typo: Chr(9) is TAB... I think you meant Chr(10).
    Regards,
    Eric

  • Hide and activate fields in SAP Business One

    Hi,
    How do I see the following in SAP Business one 2007 A?
    1 - Where do I see the option of hiding or making a filed mandatory, optional etc.? Can i hide some fields in A/P invoice entry? How do I do that?
    2 - How do I create a field or a column which will populate necessary details. For example..How do I create a column named amount in the A/P invoice so that it shows the corresponding amout of the invoice near the column named Invoice number?
    3 - How to access a particular column from a table structure? Do I need to write an SQL query for this?
    4 - How to pull up a field from a table and make is visible for the users? Do I need to be an ABAP expert for this?
    5 - What are stored procedures?
    Please let me know!! Thanks

    3 - How to access a particular column from a table structure? Do I need to write an SQL query for this?
    Try the link below:
    how do make link between query and UDF
    Yes, you write the query by going to Tools->Query Generator.
    You need to know the FMS number for the varialbe AMOUNT you created.
    You can know that by turning on debug info View->Ssystem Info, and then placing your cursor on AMOUNT. At the bottom left know its FMS variable number. There are multiple ways of dealing with.
    Use the above variable in the Query Generator with a $ sign. Save the query. General (some name)
    Then attach the above query to AMOUNT ShiftF2 and click to dril down to saved query and attach it. Choose the type refreshment.
    I am missing out on some small details, but you have to try it you will get there.

  • SAP Business One in SAP NetWeaver Portal?

    Hi,
    We have a customer that will implement SAP Business One for their backoffice.
    They want a package solution for their internet and extranet (clients and suppliers). The extranet will access SAP Business One.
    We are considering to implement SAP NetWeaver Portal for the extranet.
    Do you think this is possible? What about SSO?
    Tahnk you all,
    Olivier Marques.

    Olivier,
    I am not sure about the SAP NetWeaver Portal.  You may want to ask that question in the NetWeaver Discussion Forum.
    With respect to the SAP Business One Integration for SAP NetWeaver product ... this technology is not providing a portal in which to access SAP Business One from a web interface.  The SAP Business One Integration for SAP NetWeaver is a technology that seamlessly integrates SAP Business One with mySAP with respect to the integration of transactions and master data flow between the two systems from a headquarters/subsidiary(s) standpoint.
    HTH,
    Eddy

Maybe you are looking for